C# - Web App - how to call another page...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JLC
    New Member
    • Sep 2006
    • 34

    C# - Web App - how to call another page...

    Hi,

    This seems like this would be easy, but I am not getting what I thought I should.

    I have a GridView_RowCom mand where inside I am doing a comparison of a couple of things...if one of them is true, then I want to open a separate page that I have already written code for.

    So to avoid the cut and paste...how do I call this page?

    I thought I could do something like:

    UpdateClusterSt atus ucr = new UpdateClusterSt atus();
    then call ucr.pageload or something like that...but it doesn't work.

    Here is my page I want to open:

    Code:
    public partial class UpdateClusterStatus : System.Web.UI.Page
    {
         /// <summary>
        /// Fires every time the page is loaded
        /// </summary>
        protected void Page_Load(object sender, EventArgs e)
        {
    rest of code here...
          }
    Seems like I am making this harder than it needs to be..but not sure how to make it work...anyone help?

    I should add: I don't need to pass any data to this page, I just need it to open.

    Thanks!
    Last edited by JLC; Mar 11 '08, 05:20 PM. Reason: added one line at end
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    You want the clients browser to go to that page yes?
    Look at the Response.Redire ct() function

    Comment

    • JLC
      New Member
      • Sep 2006
      • 34

      #3
      I want to have the site open a new window with that page in it...

      is that still the same way to do it? with a redirect?

      Thanks!

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        The only way to get a new window to pop open on the client's computer is to trigger a javascript element on the browser.
        How you go about doing that is sort of tricky I think.

        Comment

        Working...