Hi,
I want to add a value from front end into a table. I want to do it in asp.net. I have a table which is as below:-
CategoryId int
CategoryName nvarchar(50) not null
ParentId int null
Also see the code:-
<asp:TextBox ID="txtCategory" runat="server"></asp:TextBox>
<asp:Button ID="btnCategoryUpload" runat="server" Text="Upload Category" Width="110" />
I tried with my code :-
<form id="form1" runat="server">
<asp:TextBox ID="txtCategory" runat="server"></asp:TextBox>
<asp:Button ID="btnSubmit" runat="server" Text="Submit" Width="110" OnClick="btnSubmit_Click" />
</form>
Code behind:-
Go to the complete details ...