cross page posting of data

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

    cross page posting of data

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

    <div id="divNormalVi ew" runat="server">
    <asp:listbox id="listSelecte dMembers" Runat="server"</
    asp:listbox>
    </div>
    <div id="divPrintPre view" 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
  • Fernando Rodriguez

    #2
    Re: cross page posting of data

    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.




    "ArunDhaJ" <arundhaj@gmail .comwrote in message
    news:bf073c67-1da0-4b04-9453-e1d0f4b4127f@w5 g2000prd.google groups.com...
    Hi,
    I'm in need of help for solving the following problem:
    I've a page with two div tag as follows:
    >
    <div id="divNormalVi ew" runat="server">
    <asp:listbox id="listSelecte dMembers" Runat="server"</
    asp:listbox>
    </div>
    <div id="divPrintPre view" 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

    Comment

    Working...