W weichung[MCSD,MCDBA] Dec 14, 2004 #2 use the setFocus() in javascript you could find a lot of codes if you search in google. hope it helps weichung
use the setFocus() in javascript you could find a lot of codes if you search in google. hope it helps weichung
R Ralf Müller Dec 14, 2004 #3 Hi Sara! Add this method to your class: public void SetFocus(Control c) { if (!Page.IsStartupScriptRegistered("SetFocus")) { Page.RegisterStartupScript("SetFocus", "<script language=\"JavaScript\">\n\tdocument.forms[0]." + c.ClientID + ".focus();\n</script>"); } } Greetings, Ralf
Hi Sara! Add this method to your class: public void SetFocus(Control c) { if (!Page.IsStartupScriptRegistered("SetFocus")) { Page.RegisterStartupScript("SetFocus", "<script language=\"JavaScript\">\n\tdocument.forms[0]." + c.ClientID + ".focus();\n</script>"); } } Greetings, Ralf