I'm trying to add a new seller into database but all the values i get from the input text are null
this is the form
<div class="mb-3">
<label for="SNameTb" class="form-label">Seller FirstName</label>
<input type="text" class="form-control" id="Snametb" runat="server">
</div>
And this how i'm trying to get the values
string Sname = Snametb.Value;
runat="server"implies web forms, and if that's true you want to use an<asp:TextBoxinstead of an<input type="text"element. It also matters quite a bit where that second code snippet is located.<input type="text" runat="server" />in WebForms - it just means the runtime type isSystem.Web.UI.HtmlControls.HtmlInputTextinstead ofWebControls.TextBox.objdirectory?