Can you help me in asp.net? Thank you
-
I am new entry in asp.net programming with VB. I did work in VB past two years. Now I want some help from your knowledge. I am creating form with three text box using address typing textbox1 as name textbox2 as address line 1 textbox3 as address line 2 I type name then press enter key. The cursor go to next textbox2. How to made it in this action? In VB do this action using KeyPress event, but how to made in asp.net Please give your suggestions with sample coding. Thanking you, abglorie
-
I am new entry in asp.net programming with VB. I did work in VB past two years. Now I want some help from your knowledge. I am creating form with three text box using address typing textbox1 as name textbox2 as address line 1 textbox3 as address line 2 I type name then press enter key. The cursor go to next textbox2. How to made it in this action? In VB do this action using KeyPress event, but how to made in asp.net Please give your suggestions with sample coding. Thanking you, abglorie
check TabIndex property for controls
siri
-
I am new entry in asp.net programming with VB. I did work in VB past two years. Now I want some help from your knowledge. I am creating form with three text box using address typing textbox1 as name textbox2 as address line 1 textbox3 as address line 2 I type name then press enter key. The cursor go to next textbox2. How to made it in this action? In VB do this action using KeyPress event, but how to made in asp.net Please give your suggestions with sample coding. Thanking you, abglorie
do the follwing steps step1: step2: function change_focus(e) { var keycode; if (window.event) keycode = window.event.keyCode; else if (event) keycode = event.keyCode; else if (e) keycode = e.which; else return true; if( keycode == 13 ) { document.form1.TextBox2.focus(); } } this steps solve ur problem
-
I am new entry in asp.net programming with VB. I did work in VB past two years. Now I want some help from your knowledge. I am creating form with three text box using address typing textbox1 as name textbox2 as address line 1 textbox3 as address line 2 I type name then press enter key. The cursor go to next textbox2. How to made it in this action? In VB do this action using KeyPress event, but how to made in asp.net Please give your suggestions with sample coding. Thanking you, abglorie
abglorie wrote:
I type name then press enter key. The cursor go to next textbox2. How to made it in this action?
hi abglorie, If you are doing asp.net that means by pressing Enter you call round trip OR make page to visit server. So either you use TabIndex property of textbox or call javascript function on keypress event which changes focus of textboxes. But according to me it's better to use TabIndex property becuase Enter button is important for sever side execution also no need to call javascript function each time after pressing Enter. Hope you will choose best solution. Dilip Kumar Vishwakarma
Programmer .Net Consulting