Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to verify if page is reposting or not
Message
De
21/06/2017 16:53:29
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Divers
Thread ID:
01652152
Message ID:
01652156
Vues:
34
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform