Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to verify if page is reposting or not
Message
From
21/06/2017 16:53:29
 
General information
Forum:
ASP.NET
Category:
Web forms
Miscellaneous
Thread ID:
01652152
Message ID:
01652156
Views:
33
>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.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform