URL parameters

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When I start the application by entering param1 in the url, I want to be
redirected to webform1, and when I start the application by entering param2
in the url I want to be redirected to webform2.

What event should I use to achieve this kind of processing?

I know that I can use Page Load event,
but if it's possible I want to redirect the user to a certain webform before
showing the startpage.

So is there any other event on application level ?

Thanks
 
Hi,
When I start the application by entering param1 in the url, I want to be
redirected to webform1, and when I start the application by entering param2
in the url I want to be redirected to webform2.

this you can achieve by checking the values of the
Request.QueryString["param1"] in the page load event and do the appropriate
redirecting to the respective pages.
What event should I use to achieve this kind of processing?
do it in the page_load
but if it's possible I want to redirect the user to a certain webform before
showing the startpage.

So is there any other event on application level ?

At the application level if you are using forms authentication possibly you
can redirect the user to a specific page.


HTH
Regards
Ashish M Bhonkiya
 
Hello Trebor,
I know that I can use Page Load event,
but if it's possible I want to redirect the user to a certain webform
before
showing the startpage.
So is there any other event on application level ?

Try Application_BeginRequest in your global.asax file.
 
Back
Top