[CLOSED] Cross-page Postback

  1. #1

    [CLOSED] Cross-page Postback

    Hello guys.

    Typically to accomodate Cross-page postbacks, you could add a PostbackUrl item to a normal ASP button to accomplish this and then use the PreviousPageType directive to access the postback data from the previous page.

    Now, my question is, how can I accomplish this with an EXT button or any EXT control (row click, etc)? I've tried several different things and can't get it to honor the PostbackUrl.

    Any help?

    Thanks.
    Last edited by Daniil; Oct 20, 2011 at 6:26 PM. Reason: [CLOSED]
  2. #2
    Found it just after I hit Submit.

    I set the AutoPostback property to true and the AutoPostbackUrl to the Url I need.

    Now, how can this be accomplished, say clicking on a Grid row, etc?

    Thanks.
  3. #3
    Hi,

    I can suggest the following solution:

    1. Add a hidden button:
    <ext:Button 
        ID="Button1" 
        runat="server" 
        AutoPostBack="true" 
        Hidden="true"
        PostBackUrl="someUrl" />
    2. Set up a RowSelect listener of SelectionModel:
    <ext:RowSelectionModel runat="server">
        <Listeners>
            <RowSelect Handler="Button1.fireEvent('click');" />
        </Listeners>
    </ext:RowSelectionModel>

Similar Threads

  1. How to maintain page index after postback.
    By itskvini in forum 1.x Help
    Replies: 3
    Last Post: Jul 05, 2012, 1:27 PM
  2. Ext control invisible after postback of page.
    By Rupesh in forum 1.x Help
    Replies: 7
    Last Post: Sep 17, 2010, 5:11 AM
  3. Replies: 0
    Last Post: Aug 26, 2010, 2:58 PM
  4. VB.NET Code Behind Page Postback Problem!
    By infastruct in forum 1.x Help
    Replies: 5
    Last Post: Dec 01, 2009, 1:58 AM
  5. [CLOSED] PostBack inside autoloaded page
    By Rod in forum 1.x Help
    Replies: 3
    Last Post: Sep 26, 2008, 6:40 AM

Posting Permissions