Drop Down and Button - please help

D

DiLwALi

Hello,

I am pretty new to asp.net and have been given the task to create and
internal website.
There is a drop down list on the site and a submit button.
The user selects a report from the dropdown and clicks on the button -
this should now open up the page associated with the selection. (hope
this makes sense)
I am not sure how to accomplish this - this is a very basic page and
does not need anything fancy. I am assuming i need response.redirect
(i think) but not sure how to make it work.


Thanks
 
G

Guest

Hello DiLwAli,

Provided that you don't want to open the report in a new browser window, you
can use the Response.Redirect() method to open the report.

You can also use the Server.Transfer() method provided you're staying on the
server and you're going to another aspx page without a query string. This
will eliminate a round trip back to the client browser which sounds great but
I find that it rarely works out ideally (for example, the url in the browser
navigation window doesn't reflect the new url).

If you want to open the report in an additional popup window, then you're
going to have to write some client-side javascript to open the window when
the button is pushed.
 

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

Similar Threads


Members online

No members online now.

Forum statistics

Threads
474,143
Messages
2,570,822
Members
47,368
Latest member
michaelsmithh

Latest Threads

Top