Hi everybody.
I'm trying to set focus to other textbox when the user clicks button.
I use SetformFocus(Control) on Page_Load to specify the textbox wich needs to get the focus when the page loads, but it doesn't works when the user clicks a button and the focus must change to other textbox.
this is the page_load event
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.LoadTryIf Not Page.IsPostBack Then
DotNetNuke.Common.Globals.SetformFocus(txtNoCliente) End IfCatch exc As Exception 'Module failed to load
ProcessModuleLoadException(
Me, exc)End Try
End Sub
and the button_click event:
Protected Sub Button4_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button4.ClickEnd Sub
DotNetNuke.Common.Globals.SetformFocus(txtBuscaArticulo)
End Sub
If anyone can help me :S
thanks in advance