[CLOSED] load page with querystring in a extnet window

  1. #1

    [CLOSED] load page with querystring in a extnet window

    hi.

    i have 2 stand alone pages that contains a ext.net window object and try to load on it a 2nd page that receive as parameter in the query string a value, lets say

    one.aspx
    ---------------------
    <body>
    <form>
    
       <ext:FormPanel>
          <Items>
    
                 <ext:TextField ID="contactid" runat="server" />
                 <ext:Button ID="xx" runat="server" Text="Contacts">
                         <DirectEvents>
                                    <Click OnEvent="ShowContacts" />
                           </DirectEvents>
                 </ext:Button>
          </Items>
       </ext:FormPanel>
       <ext:window id="windowCn" runat="server" Hidden="true" X="300" Y="300" Width="300" Height="300" AutoRender="false" />
    </form>
    </body>

    one.aspx.cs
    -------------------------
    protected void ShowContacts( object sender, EventArgs e)
    {
       WindowCn.Loader = new ComponentLoader{
              Url=string.Format("http://localhost/frm/frmContacts.aspx?cn={0}",contactid.Text),
              Mode=LoadMode.Frame
       };
       WindowCn.Show();
    }
    if i load the page http://localhost/frm/frmContacts.aspx?cn=1 right into the browser it shows data, but when i run the one.aspx page and click the button, the window is shown but no content is shown ( the contactid textbox = 1 )

    any clue?
    Last edited by Daniil; Sep 03, 2013 at 4:59 AM. Reason: [CLOSED]
  2. #2
    Hi @onsite,

    Please predefine a Loader:
    <ext:Window ID="windowCn">
        <Loader runat="server" AutoLoad="false" />
    </ext:Window>
    and use
    protected void ShowContacts(object sender, EventArgs e)
    {
        windowCn.Show();
        windowCn.LoadContent(new ComponentLoader
        {
            Url = string.Format("http://localhost/frm/frmContacts.aspx?cn={0}", contactid.Text),
            Mode = LoadMode.Frame
        });
    }

Similar Threads

  1. [CLOSED] Runtime client error in /extnet/extnet-core-js/ext.axd?v=0
    By vadym.f in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Aug 26, 2012, 7:13 AM
  2. Replies: 2
    Last Post: Oct 11, 2011, 1:15 PM
  3. Replies: 4
    Last Post: Sep 08, 2011, 5:56 PM
  4. Open window on page load
    By Kamal in forum 1.x Help
    Replies: 4
    Last Post: Nov 04, 2009, 10:49 AM
  5. Replies: 3
    Last Post: Mar 12, 2009, 3:09 PM

Posting Permissions