HTML Control in asp.net, C#
-
Hi friends, I am trying to use a form with html control in asp.net2.0 and c#, how can we use those control (html control) in our c# code for inserting records in database... Please suggest me... Thanks, Abbas
-
Hi friends, I am trying to use a form with html control in asp.net2.0 and c#, how can we use those control (html control) in our c# code for inserting records in database... Please suggest me... Thanks, Abbas
use runat="server" for controls
modified on Wednesday, January 20, 2010 2:14 AM
-
Hi friends, I am trying to use a form with html control in asp.net2.0 and c#, how can we use those control (html control) in our c# code for inserting records in database... Please suggest me... Thanks, Abbas
put runat = "server" tag in your form element and also in all element whose values you are going to fetch
-
put runat = "server" tag in your form element and also in all element whose values you are going to fetch
thanks.... it's working now with txt.value
-
use runat="server" for controls
modified on Wednesday, January 20, 2010 2:14 AM
thanks.
-
Hi friends, I am trying to use a form with html control in asp.net2.0 and c#, how can we use those control (html control) in our c# code for inserting records in database... Please suggest me... Thanks, Abbas
Add this attribute to html controls. runat="server". also you get posted values in server using request.form['controlname']