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 MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrive data from the database on to a web page

Status
Not open for further replies.

choudhmh

Programmer
Aug 9, 2004
34
GB
Iam doing a bit of database testing. I have four web pages, the first three web pages by a click of a button stores values from the form to the database and redirect the page to the next page. On the fouth page i want to retrive some of the data onto the forms which has been stored in the database.

i.e. web page 3:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Signup = New BoilerCoverSignup()

With Signup
.SortingCode = txtsortingcode.Text
.AccountNumber = txtaccountnumber.Text
.BankAccountHolderName = txtBankAccountHolderName.Text
.PaymentDate = txtPaymentDate.SelectedItem.Value

End With


Response.Redirect("signup_4.aspx")
End Sub

on the fouth form i have these labels, i need information from the database to be inserted onto these label.The label ID identifies what needs to be stored:

Protected WithEvents txttitle As System.Web.UI.WebControls.Label
Protected WithEvents txtaddress1 As System.Web.UI.WebControls.Label
Protected WithEvents txtaddress2 As System.Web.UI.WebControls.Label
Protected WithEvents txttown As System.Web.UI.WebControls.Label
Protected WithEvents txtcounty As System.Web.UI.WebControls.Label
Protected WithEvents txtpostcode As System.Web.UI.WebControls.Label

Protected WithEvents txtdayphone As System.Web.UI.WebControls.Label
Protected WithEvents txtevephone As System.Web.UI.WebControls.Label
Protected WithEvents txtemail As System.Web.UI.WebControls.Label



#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

End Sub

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()


End Sub

Does anyone know how i could go about doing this.
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top