Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > Pro VB.NET 2002/2003
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Pro VB.NET 2002/2003 For advanced Visual Basic coders working .NET version 2002/2003. Beginning-level questions will be redirected to other forums, including Beginning VB.NET.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old January 12th, 2005, 09:44 AM
Registered User
 
Join Date: Dec 2004
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Retrive values to Drop down list from DB when Back

Hi guys,
On a form i have dropdown lists, when selected and the continue button is pressed the values from dropdown are inserted on to the database. On the next web page i have a back button, if pressed it goes to the previous page (Form 1) with requesting the id that was submitted from the DB.
I now also want to retrive what was selected on the dropdown list to show up when the back button is pressed. So if Yes was selected and passed, the DB will insert the value true. When i press the back button that Yes will need to load on theat drop down list.

Can someone help me on how i could do this.

The continue button:
Response.Redirect("showtable.aspx?tid=" & tmid & "&pc=" & strPostCode)

The Back Button:
Private Sub btnback_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnback.Click
Response.Redirect("TelephoneUsage.aspx?tid=" & TM.TelephoneInputFormID & "&pc=" & strPostCode)
End Sub

these are getting inserted into the database:
With Signup
.TelephoneCallPlanID = numberofcalls.SelectedItem.Value
.TelephoneUsageTimeID = whencallsaremade.SelectedItem.Value
.TelephoneUsageLocationID = wherecallsaremade.SelectedItem.Value
.SpecificMobileNetworks = callstomobile.SelectedItem.Value
.TelephoneCallsPerDayID = numberofcalls.SelectedItem.Value
.InternationalCalls = callstointernational.SelectedItem.Value

End With


when the back button is pressed these needs to be retrived back on the drop down list.

Thanks
Mac
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Create a drop down list using database values erinrox JSP Basics 1 September 4th, 2007 06:59 AM
Drop down list text value not posting back with co binici ASP.NET 2.0 Basics 0 December 12th, 2006 07:38 PM
drop down list values based on another drop down noor ASP.NET 1.0 and 1.1 Basics 3 July 5th, 2005 09:57 AM
Post Back Required For Drop Down List alyeng2000 ASP.NET 1.0 and 1.1 Professional 4 March 14th, 2005 12:15 PM
Create drop down list from SQL DB lshamba Classic ASP Databases 2 August 26th, 2004 10:49 PM



All times are GMT -4. The time now is 07:51 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.