|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Asp.Net AutoPostback and control focusIn Asp.Net v1.1 web form I have a number of controls which have the
autopostback enabled. Is it possible after the autopostback has run that the control that caused the autopostback to get the focus? I am not sure if there is a built-in way to do that, but you could generate
JavaScript that runs right away (not a function) that calls the focus() method of the appropriate control. To do this, try using the following: TextBox2.Page.RegisterClientScriptBlock("refocus", "<script type=""text/javascript"">" & TextBox2.ClientID & ".focus();</script>") I have not tested this code, but I would expect that it would work. Good Luck! -- Show quoteHide quoteNathan Sokalski njsokal***@hotmail.com http://www.nathansokalski.com/ <robin9***@hotmail.com> wrote in message news:1150897394.254204.63660@i40g2000cwc.googlegroups.com... > In Asp.Net v1.1 web form I have a number of controls which have the > autopostback enabled. Is it possible after the autopostback has run > that the control that caused the autopostback to get the focus? >
Problem updating with TableAdapter in Detailsview.
Validators - error message not showing when JS disabled & only server side validation occurs "AJAX" techniques for the ASPNET 2.0 TreeView control? aspx and ascx ASP.NET 2.0 Intrinsic Treeview control errors on a specific machine I need a chart control with a special feature Event from one WebControl triggering an event in another Web control HttpContext.Current.Session problem Sorting DataView problem Interactivity between placeholders & objectdatasouces |
|||||||||||||||||||||||