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:55:37
 
 
À
21/06/2017 16:53:29
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Divers
Thread ID:
01652152
Message ID:
01652158
Vues:
31
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform