Hi,
I am working on textbox in asp.net.When in my web application when textbox textchanged event is fitring after that i am focus on particular textbox .
iam using the below line codes its not working
textboxid.focus();
and
setfocus(textboxid);
this are not working.any one know plz tell me ...

sabdhi naikPosted Jan 21, 2013, 5:46 AM
Jignesh TrivediPosted Jan 18, 2013, 7:35 AM
try code my self it working fine for me.
define textbox on aspx page
Register event on page load
protected void Page_Load(object sender, EventArgs e)
{
TextBox1.TextChanged += new EventHandler(TextBox1_TextChanged);
}
writing event
void TextBox1_TextChanged(object sender, EventArgs e)
{
datepicker.Focus();
//throw new NotImplementedException();
}