Paging Datagrid in a Modal Window
It seems to be a bug that if your modal window contains a datagrid that is set for paging that the new page will open in a new window rather than updating the existing.
I have read up and the suggested solution is to open an intermediate window that contains an IFRAME and put the datagrid page inside the IFRAME.
So, my main page (main.aspx) contains something like:
strReturnValue = Window.ShowModalDialog("container.aspx?variable1=A AA&variable2=BBB"... etc)
I will then need to create the 'container.asp' file which is something like
<html>
<iframe src='datagrid.aspx?variable1=AAA&variable2=BBB' height='500' width='500px'></iframe>
</html>
...
Bearing in mind that I need to pass some parameters to the datagrid and capture information back to my main page, my questions come as:
() Is there a simpler way to acheive this result?
If so, advice would be appreciated.
If not, more questions...
() Does anyone have a simple working example they could provide?
() Could you give a simple(ish) step-by-step on what needs to be done?
() How to I pass the variables to/from these pages correctly?
Any help would be greatly appreciated.
Regards,
Sean
__________________
Regards,
Sean
|