Hello all,
I'm using some ascx controls I made, which i load within an aspx page (loader.aspx).
The problem I have is that I don't know how to apply most of the JavaScript code I find, because the controls have no <form> tag, so I cannot use the onload event of the form, for example.
the scheme:
loader:
<body>
<form>...
ascx control:
<div>
<asp:textbox>
....
One of the things that I want to do and I can't figure out: I want to set the focus on the textbox just when loading the page, which is pretty easy if working with a normal page. In this case, I don't know how to do it... div onload event?
Thanks in advance
kyuss.
I'm using some ascx controls I made, which i load within an aspx page (loader.aspx).
The problem I have is that I don't know how to apply most of the JavaScript code I find, because the controls have no <form> tag, so I cannot use the onload event of the form, for example.
the scheme:
loader:
<body>
<form>...
ascx control:
<div>
<asp:textbox>
....
One of the things that I want to do and I can't figure out: I want to set the focus on the textbox just when loading the page, which is pretty easy if working with a normal page. In this case, I don't know how to do it... div onload event?
Thanks in advance
kyuss.