As title, how should I do to get the input tool its "Name" from HTML by using asp.net C#.
The HTML code as follow:
<input type="number" Name="patientId" class="form-control" id="input1" runat="server">
What I tried in asp.net C# was this.input1.Name.ToString();
, but the name I got was same with id "input1", not the one "patientId".
Does anyone know how to do that?