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

PageObject and Session Variables fail me.

Status
Not open for further replies.

TheDrParker

Programmer
Nov 21, 2001
55
US
Im using "function thisPage_onbeforeserverevent(obj,evnt)" in a Javascript block for an onblur event. I'm trying to find out how I can capture a value from a textbox that I will need when the page calls itself again. I can't use Session('MyVar') and thisPage.setMyVal doesn't work as according to Microsoft "...in client script, you use the thisPage object only for accessing the properties and methods for page objects." I'm kinda stuck because once it completes the function it calls the page again with the onblur event.
 
If you right-click on your Page Object, go into Properties and click on the Properties tab of the properties window (a bit confusing, but try it, and you will see :)... you can define the properties of the Page Object. You could make a myVal property, then you can use the thisPage.setmyVal(...) to capture the text box value in your event handling function.

I hope this makes sense.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top