Answer the question
In order to leave comments, you need to log in
How to get values of all textbox in asp page and write them to sql?
There is a form from a bunch of TextBoxes that looks something like this:
<tr>
<td><label>Название </label></td>
<td><label>Параметр 1 </label></td>
<td><asp:textBox ID="tb650a" runat="server" Text=""/></td>
<tr>
string query = "INSERT INTO [table](field1, field2, field3, bla-bla-bla... ) VALUES(N'" + field1.Text + "', N'" + field2.Text + "', N'" + field3.Text + "', N'" + bla-bla-bla...")";
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question