Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

NewBee Q: Saving TextBox data to Table and display a new page.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Martin Arvidsson, Visual Systems AB - 18 Mar 2008 11:28 GMT
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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.