2
Answers

Textbox inside the Gridview doesnt raise an event

Photo of Aamir Khan

Aamir Khan

12y
2.2k
1
Hi friends,
i have a textbox named txtrateperUnit inside Gridview and i have used Itemtemplate on .Aspx page like below
<ItemTemplate>
  <asp:TextBox ID="txtrateperUnit" runat="server" ontextchanged="txtrateperUnit_TextChanged" AutoPostBack="true"></asp:TextBox>
</ItemTemplate>
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

Answers (2)

0
Photo of Shweta Lodha
NA 15.7k 879.6k 10y
Hello RayMir Sor,
A very nice article on integration is available on MSDN:
https://code.msdn.microsoft.com/Getting-Started-Windows-c0d4a596

Please have a look.