URL parameters

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
 
A

Ashish M Bhonkiya

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
 
M

Matt Berther

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top