Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
90
Have page load run everytime modal window is opened.
posted

Hey Guys,

     I have an ultrawebgrid on an aspx page.  I've tried this with a link column and with a templated column with link buttons. Here's the situation:

The links or buttons (whichever) has a ClientScript.RegisterStartupScript statement that calls javascript to open another aspx page in a modal window at a set height and width, which all works just fine. I create the column of links in the initialize layout handler and do the scripting in intitialize row.

Problem: I need the page load to run in the other aspx page in the modal window, everytime it is called. However, it needs a post back to get to the server, and that happens only the first time a link is clicked.

How do I make it post everytime? I have limited experience with these grids and haven't touched one in  a couple of months, so I need enough detail to get what suggest I do.

Thanks in advance for your help.

 

Parents
No Data
Reply
  • 1923
    posted

    I might not be understanding this, but it seems like the issue has nothing to do with the grids but instead with the page that opens in the modal dialog...

    If you mean that the page that opens in the modal dialog doesn't seem to load correctly or post back correctly it may be related to caching...you might want to add an extra querystring parameter that is always changing into the javascript code that opens the modal dialog...something like this perhaps:

    function openModal(url) {

         // this assumes you've already attached some parameters
         // and therefore have a ? character in the url although some clever string checking will help
         // e.g.    mypage.aspx?id=4&transactiondate=... etc
         url += "&transactiondate=" + new Date().getTime();
       
         // code to open the dialog etc etc
         open(url);

    }

    apologies if i've missed the point!

Children
No Data