locked
How to pass a button click event as a QueryString value. RRS feed

  • Question

  • Is it possible to pass a Button click event as a QueryString value.If it is possible means how can we pass it?.
    Monday, June 1, 2009 9:32 AM

Answers

  • You must be more explicit.

    If you want to pass parameters to a new web page via QueryString: In the .cs mouse event, you can put something like this:

    ...
    string page="NewPage.aspx?Parameter1="+Parameter1Value.ToString()+"&Parameter2="+Parameter2Value.ToString();
    HtmlPage.Window.Navigate(new Uri(page, UriType.AbsoluteOrRelative, "newWindow");

     

    Monday, June 1, 2009 11:22 AM