Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reterive Data from database for the back button

Status
Not open for further replies.

mchoudhury

Programmer
Nov 26, 2004
71
GB
Hi guys,
On this form i have dropdown list, when selected and the continue button is the values are inserted on to the database. On the next web page i have a back button, if pressed it goes to the last page view with requesting the id it 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 on 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

Thanks
Mac
 
Sorry these are getting inserted into the database:

.TelephoneCallPlanID = numberofcalls.SelectedItem.Value
.TelephoneUsageTimeID = whencallsaremade.SelectedItem.Value
.TelephoneUsageLocationID = wherecallsaremade.SelectedItem.Value
.SpecificMobileNetworks = callstomobile.SelectedItem.Value
.TelephoneCallsPerDayID = numberofcalls.SelectedItem.Value
.InternationalCalls = callstointernational.SelectedItem.Value

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

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top