Datagrid paging and IFRAME
-
Hi, I have a master datagrid in an asp.net page. Selecting a record in the master datagrid loads the details datagrid. This worked fine as long as I had both the datagrids on the same asp.net page. Now I moved the details datagrid to a seperate asp.net page that I included in an IFRAME element in the asp.net page that contains the master datagrid. On doing this I have taken care that when a record is selected on the master datagrid the id is passed to the details datagrid in the IFRAME. So selecting a record is now properly loading the data in the details datagrid in the IFRAME page. Both the Master and the Details datagrid have paging enabled. Now after using the IFRAME I am facing the following problems: 1> I select the record in the Master datagrid and the Details datagrid loads with paging in the IFRAME. If I click on any of the pages of the Master datagrid, paging has stopped working properly : the postback takes place but the next page is not loaded for the datagrid. 2> If I click on any page no. of the Details datagrid in the IFRAME I get the following exceptiion: Invalid CurrentPageIndex value. It must be >= 0 and < the PageCount. The paging for the Master Datagrid works fine if I do not have the IFRAME element The paging for the Details datagrid works fine if I independently load the page with the required params passed. In case if anyone has faced such a problem before and knows the solution please let me know Thanks in advance :) Sid
-
Hi, I have a master datagrid in an asp.net page. Selecting a record in the master datagrid loads the details datagrid. This worked fine as long as I had both the datagrids on the same asp.net page. Now I moved the details datagrid to a seperate asp.net page that I included in an IFRAME element in the asp.net page that contains the master datagrid. On doing this I have taken care that when a record is selected on the master datagrid the id is passed to the details datagrid in the IFRAME. So selecting a record is now properly loading the data in the details datagrid in the IFRAME page. Both the Master and the Details datagrid have paging enabled. Now after using the IFRAME I am facing the following problems: 1> I select the record in the Master datagrid and the Details datagrid loads with paging in the IFRAME. If I click on any of the pages of the Master datagrid, paging has stopped working properly : the postback takes place but the next page is not loaded for the datagrid. 2> If I click on any page no. of the Details datagrid in the IFRAME I get the following exceptiion: Invalid CurrentPageIndex value. It must be >= 0 and < the PageCount. The paging for the Master Datagrid works fine if I do not have the IFRAME element The paging for the Details datagrid works fine if I independently load the page with the required params passed. In case if anyone has faced such a problem before and knows the solution please let me know Thanks in advance :) Sid
The Iframe's view state will not be maintained. Why do you have to use an Iframe? If you need to refresh only part of the page then use AJAX via the Atlas toolkit or other method. I would stay away from the iframe unless you like headaches.
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things --thedailywtf 3/21/06