Hi!
I have a couple of newbee questions.
I have a .aspx page with a couple of TextBoxes and a submit button.
Now...
When i press the submitbutton i want the data in the TextBoxes to be saved
in my Sql Table.
Do i have to manually create an insert statement and get the text with the
Text property from each TextBox
or is there a way to set a DataSet and then issue a save statement?
Next question is.
When i submit the page and the information is stored i want to go to a new
page
How can i do that?
Any links, code samples, points to the right direction would be greatly
appreciated.
Regards
Martin
David Wier - 18 Mar 2008 14:51 GMT
either way, you'll still have to assign the data from the textboxes as the
source of the data, to be inserted into the database. You might check out
this code sample:
http://www.aspnet101.com/aspnet101/aspnet/codesample.aspx?code=showinsert
though it was created with v1.1 of ASP.Net, it gives you the basics.
David Wier
http://aspnet101.com
http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
bloated markup
> Hi!
>
[quoted text clipped - 20 lines]
> Regards
> Martin