-1

example:

<input id="txtEntQty" type="number" min="1" max='<%# Eval("RemQty")%>' value='<%# Eval("RemQty")%>'>

code behind:

int ASSIGNQTY = Convert.ToInt32((row.Cells[12].FindControl("txtQty") as **?????**).value);
Soner Gönül
  • 97,193
  • 102
  • 206
  • 364
Ketan mevada
  • 152
  • 1
  • 12

1 Answers1

0

Try this make your input runat="server"

<input type="number" id="txNUm" runat="server" />

And in .cs code where you want to get value write thiss

System.Web.UI.HtmlControls.HtmlInputControl input = (System.Web.UI.HtmlControls.HtmlInputControl)gvrow.Cells[5].FindControl("txNUm");
int ASSIGNQTY = Convert.ToInt32(input.Value);
Mairaj Ahmad
  • 14,434
  • 2
  • 26
  • 40