showModalDialog and asp.net

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • VV

    showModalDialog and asp.net

    I' am having a problem with reloading asp.net page. First time when I open
    dialog with



    window.showModa lDialog("dialog .aspx", [window], dlgfeat);



    Everything works fine, Page_Load is executed in dialog.aspx, but the second
    time, nothing happens and page is retrieved (probably from cache). How can I
    force dialog.aspx to reload (Page_load needs to be executed) each time when
    the dialog is opened.




  • Curt_C [MVP]

    #2
    Re: showModalDialog and asp.net

    how are you loading it a second time?

    --
    Curt Christianson
    Owner/Lead Developer, DF-Software
    Site: http://www.Darkfalz.com
    Blog: http://blog.Darkfalz.com


    "VV" <VV@zg.htnet.hr > wrote in message news:cqudot$356 $1@sunce.iskon. hr...[color=blue]
    > I' am having a problem with reloading asp.net page. First time when I open
    > dialog with
    >
    >
    >
    > window.showModa lDialog("dialog .aspx", [window], dlgfeat);
    >
    >
    >
    > Everything works fine, Page_Load is executed in dialog.aspx, but the
    > second time, nothing happens and page is retrieved (probably from cache).
    > How can I force dialog.aspx to reload (Page_load needs to be executed)
    > each time when the dialog is opened.
    >
    >
    >
    >[/color]


    Comment

    • VV

      #3
      Re: showModalDialog and asp.net

      Huh, this always happens - I've found it... On detail page_load I need to
      add following code:


      Response.Cache. SetNoServerCach ing()

      Response.Cache. SetCacheability (System.Web.Htt pCacheability.N oCache)

      Response.Cache. SetNoStore()

      Response.Cache. SetExpires(New DateTime(1900, 1, 1, 0, 0, 0, 0))



      "VV" <VV@zg.htnet.hr > wrote in message news:cqudot$356 $1@sunce.iskon. hr...[color=blue]
      > I' am having a problem with reloading asp.net page. First time when I open
      > dialog with
      >
      >
      >
      > window.showModa lDialog("dialog .aspx", [window], dlgfeat);
      >
      >
      >
      > Everything works fine, Page_Load is executed in dialog.aspx, but the
      > second time, nothing happens and page is retrieved (probably from cache).
      > How can I force dialog.aspx to reload (Page_load needs to be executed)
      > each time when the dialog is opened.
      >
      >
      >
      >[/color]


      Comment

      Working...