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

Shen Hengbin94 reputationPosted Jul 4, 2012, 6:03 PM EDT
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.
Jignesh TrivediRank #16 · 50.3K reputationPosted Jul 4, 2012, 8:01 PM EDT
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.