Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to verify if page is reposting or not
Message
 
 
To
21/06/2017 16:53:29
General information
Forum:
ASP.NET
Category:
Web forms
Miscellaneous
Thread ID:
01652152
Message ID:
01652158
Views:
30
>>Where do I put this code? in the Page_Load method? Also, how do I instantiate the oRequest?
>
>We assume you have an entry point for the Web page in your code. And, that entry point would then inherit from the page itself:
>
>
>   Inherits System.Web.UI.Page
>
>
>With that in place, down below, you can initialize an object in reference to the Request object:
>
>
>oProcess.oRequest = Request
>
>
>...or, you can use the Request object as is. I always recommend to bounce it off to an object. In my case, oProcess is the global object into which the hit ties into.
>
>In the same place, you can also initialize the page into an oPage object such as:
>
>
>oProcess.oPage = Me
>
>
>Me, in this case, is the page as that code would inherit from the ASP.NET page object such as mentioned above.

I use C# so in my case Me=this. Please see my reply to myself as to how I tested and let me know if this test makes sense. Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform