ASP.Net Cross Page Posting

Posted by John on Stack Overflow See other posts from Stack Overflow or by John
Published on 2009-07-08T16:02:22Z Indexed on 2011/01/14 22:53 UTC
Read the original article Hit count: 345

Filed under:
|

Currently I have two pages:

The first page contains an input form, and the 2nd page generates an excel document. The input form's button posts to this 2nd page.

What I'd like to do is add a second button which also posts to the 2nd page; however, I'll need requests created from this new button to act differently, which brings me to my question:

Is there a way I can tell, from the 2nd page, which button was pressed to submit the request?

The main reason I'm asking is I'd like to re-use the 2nd page's logic in parsing the information from the first page if possible; I'd rather not have to copy it to a new page and have the new button post to that.

Thanks!

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about cross-page-posting