locked
Open as Modal RRS feed

  • Question

  • Hello everyone, 

    How can i open as modal (target as _self) in below redirection, 

    SPUtility.Redirect(strr, SPRedirectFlags.Static, Context);

    note: this is inside the button onclick event.

    Thursday, October 24, 2013 12:01 PM

All replies

  • The SPUtility is calling the function

     context.Response.Redirect(urlRedirect, !flag2);
    

    Which is response for the client request , to open in a new window it should be from the client initiation the request.


    try to create a Linkbutton instead and add the target attribute to it to initiate the request in a new window



    Hope that helps|Amr Fouad|MCTS,MCPD sharePoint 2010

    • Proposed as answer by Amr FouadMVP Monday, November 11, 2013 4:00 PM
    Saturday, November 9, 2013 10:38 PM