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

referencing controls on another page

Status
Not open for further replies.

critical5

Programmer
Dec 13, 2006
37
GB
Hi,

I am having a problem redirecting to another page and referencing textboxes on another aspx page.

on page1: I have a form with applicant details on the same page i have syntax like these:

inp.creditrequest.applicant(1).address(1).premisename = Me.txtPremiseName.Text
inp.creditrequest.applicant(1).address(1).premiseno = Me.txtPremiseNum.Text

then make request to a web service....on page two I would like to display the results from the web service

Anybody knows how to do this??

Thanks
 
You'll have to either pass the through to the second page (i.e. via querystring, post, session etc) or have your web service store them somewhere that any other page can retrieve them (i.e. cache, a database, a file, global variables etc).


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Thanks this now works...but as inevitable I have to use a loop which I am unfamiliar to...Could someone help in doing the equivalent of this:

I want to display each element of the address of an applicant.

At the moment I am doing it like this but it is not efficient:

Label1.Text = inp.creditreport.applicant(0).summary.address(0).buildingno
Label2.Text = inp.creditreport.applicant(0).summary.address(0).street1

and so on....Could someone help with a loop(ForEach... for example)??

Thanks

Critical
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top