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 ...


Jignesh TrivediRank #16 · 50.3K reputationPosted Jan 18, 2013, 2:35 AM EST
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();
}
sabdhi naik59 reputationPosted Jan 21, 2013, 12:46 AM EST