N
Nicolas Haenen
Hello,
I'm developping a Barcode Scanning program on ppc. I need to set focus on a textbox at page load (and so scan directly... with no use of the mouse to go in the textbox before).
I tried this but don't works :
public void setFocus(System.Web.UI.MobileControls.MobileControl champ
string s
s = "<script language= \"javascript\">document.getElementById('" +
champ.ClientID + "').focus()</script>";
Page.RegisterClientScriptBlock("Focus", s)
private void Page_Load(object sender, System.EventArgs e
if(Page.IsPostBack==false
this.setFocus(Field_Interet)
Thanks a lot for help, Nicolas
I'm developping a Barcode Scanning program on ppc. I need to set focus on a textbox at page load (and so scan directly... with no use of the mouse to go in the textbox before).
I tried this but don't works :
public void setFocus(System.Web.UI.MobileControls.MobileControl champ
string s
s = "<script language= \"javascript\">document.getElementById('" +
champ.ClientID + "').focus()</script>";
Page.RegisterClientScriptBlock("Focus", s)
private void Page_Load(object sender, System.EventArgs e
if(Page.IsPostBack==false
this.setFocus(Field_Interet)
Thanks a lot for help, Nicolas