i have a textbox named txtrateperUnit inside Gridview and i have used Itemtemplate on .Aspx page like below
and on Code behind i have raised the event:
protected void txtrateperUnit_TextChanged(object sender, EventArgs e)
{
string a=a+10;
}
but when i add some value in the textbox in runtime the event doesnt get raised...
what could be the Probs.
Pl reply
regards,
aamir
Jignesh TrivediPosted Jul 5, 2012, 12:01 AM
I hvae check code on my test project it is working fine and yes Agree with Shen Points.
I tried following code.
protected void txtrateperUnit_TextChanged(object sender, EventArgs e)
{
}
hope this will help.
Shen HengbinPosted Jul 4, 2012, 10:03 PM
2 , If it havnt been invoked when lost the focus. I think it is because you havnt add if (!IsPostBack) in your Page_Load event.