cross page posting of data

  • Thread starter Thread starter ArunDhaJ
  • Start date Start date
A

ArunDhaJ

Hi,
I'm in need of help for solving the following problem:
I've a page with two div tag as follows:

<div id="divNormalView" runat="server">
<asp:listbox id="listSelectedMembers" Runat="server"</
asp:listbox>
</div>
<div id="divPrintPreview" runat="server">
<asp:datagrid>
</div>


on normal flow divNormalView would be visible and divPrintPreview
would be made as invisible. On click of a print image button
available
on the page, I am poping-up the same page with divPrintPreview made
visible and divNormalView made invisible.


Now I need to bind this grid with the members in Listbox.


I tried with cross-page posting using PreviousPage property but
couldnt able to solve it...


Please help me in


Thanks in advance
ArunDhaJ
 
If I understand you correctly you did a postback to a new browser window (by
setting the forms "target" attribute to "_blank" or something like that) and
you want to access information from the dropdown on the original page?

If that's correct, understand first that both pages are the same page,
although you made the first DIV invisible it is still there, and unless you
have re-bound it or made any changes to it, it is still the exact same way
as it was before you made it invisible so you can access it programatically
as you would if it where still visible.

The server doesn't even knows that you opened it on a new window so for all
it cares it is still the same window. Once the server sends the page to you
it forgets about it, so there's no way to access a previous page
programatically (unless it's done on the client-side with javascript).

I hope that answers your question, please post more details if it doesn't.
 
Back
Top