As stated, these two do not work (from Page_Load
):
Textbox1.Focus ();
or
page .Setfocus (textbox1);
Any ideas why?
This is the control itself:
& asp: text box id = "textbox 1" client idmode = "static" cssClass = "textbox1" runat = "server" maxlend = "80" & gt; & Lt; / Asp: text box & gt;
It is located on one page, the two master pages are deep, the form tag is on the second master page, so this is why the focus is not being set there.
Not working in it: i.e., Firefox, Chrome and Safari (all latest version).
Help! Thnx
Edit: Need any more information? I'll do anything / post, just tell me what to do to help you help me, I tried everything so that Google is out of the results and it is showing my question is.
OK, here seems to be the real problem.
& asp: Content ID = "PlaceHolder1" content placeholder id = "place holder 1" runat = "server" & gt;
I do not know what those IDs (ID = "PlaceHolder1") can be found there, but they seem to be having problems.
I understood it by remaking it from project scratch and if the focus method works there, (except for other things, then I can post here) I found this difference.
This works:
& lt; ASP: Content Content PlaceholderID = "Place Holder 1" Runat = "Server" & gt;
Hope this helps someone, some time ...
Comments
Post a Comment