I created TextBox at runtime.
TextBox t1=(TextBox)e.I tem.Cells[no. of the cell].Controls["txtMyTextB ox"];
Iam using above code and using it as below:
mycommand.Param eters["@m_price"].Value=Convert. ToDecimal(txtMy textBox.Text)
it is showing me error that txtMyTextBox not found.
Also, TextBox t1=(TextBox)e.I tem.Cells[no. of the cell].FindControl("t xtMyTextBox");
But in html code,how will I insert txtMyText:
<asp:BoundColum n DataField="pric e" HeaderText="Pri ce"></asp:BoundColumn >
TextBox t1=(TextBox)e.I tem.Cells[no. of the cell].Controls["txtMyTextB ox"];
Iam using above code and using it as below:
mycommand.Param eters["@m_price"].Value=Convert. ToDecimal(txtMy textBox.Text)
it is showing me error that txtMyTextBox not found.
Also, TextBox t1=(TextBox)e.I tem.Cells[no. of the cell].FindControl("t xtMyTextBox");
But in html code,how will I insert txtMyText:
<asp:BoundColum n DataField="pric e" HeaderText="Pri ce"></asp:BoundColumn >
Comment