locked
Cant get Responce from modalDialogWindow RRS feed

  • Question

  • Here is flow - i have modalDialogWindow with some controls there ... after i click some button i need that xml stream have been created and write this stram to Responce and user have dialog ( Do u whant to save this file ? ) . It works fine with simple window but in modalWindow code goes throw without exeptions but dialog abot do u whant save this file is not shown
    Thsi is some code to understand better 

    SaveXml()
    {
    xmlWriter =
    new XmlTextWriter(Response.OutputStream, System.Text.Encoding.UTF8);

    xmlWriter.Formatting = Formatting.Indented ;

    xmlWriter.WriteStartDocument();

    const string strPI = "type='text/xsl' href='questionnaire.xsl'";

    xmlWriter.WriteProcessingInstruction("xml-stylesheet", strPI);

    {

    WriteContentDescXml(xmlWriter);

    xmlWriter.WriteEndDocument();

    }
    }
    ............

    Response.ContentType = "text/xml";

    Response.AppendHeader("Content-Disposition", "attachment; filename=questionnary.xml");

    SaveXml();

    Response.End();


    and now is modal window creation script 

    var strOpenParameters = "dialogwidth:" + iWidth.toString() + "px;" +

    "dialogheight:" + iHeight.toString() + "px;" +

    "center:1;" +

    "resizable:0;" +

    "status:0;" +

    "scroll:0;" +

    "edge:sunken;";

    objRet = window.showModalDialog(

    strUrl,

    "title",

    strOpenParameters);


     

    • Moved by jack 321 Monday, August 18, 2008 7:10 AM off topic (Moved from JScript for the .NET Framework to Off-Topic Posts (Do Not Post Here))
    Thursday, August 14, 2008 1:01 PM

Answers