sakir
sakir

Reputation: 3502

ExtJs:how can I create a window and load A.aspx page inside it

how can I create a window and load A.aspx to the inside of this window,but I wanna render window to the form1 element.(Main.aspx).when I clcik the button run my script and load it.(I need to iframe also)

something like this.

    function CretaeWindow(Id, title, path, width, height, icon) {
        var win = new Ext.Window({
            title: title
            , width: width
            , height: height
            , renderTo: Ext.getBody()
            , flex: "1"
            , closeAction: "destroy"
             , Layout: "Anchor"
             , iconCls: icon
            , modal: true
            , loader: {
                url: path,
                renderer: "frame",
                loadMask: {
                    showMask: true,
                    msg: "loading.."
                }
            }
        });
        win.show();

    }

however I at this time I coulnt reach the this window Id from codebehind :)

Upvotes: 0

Views: 998

Answers (1)

Mahmoud Darwish
Mahmoud Darwish

Reputation: 1161

From your code, it seem you are not assigning any id to the window, this will make ext generate a random ID for it, assign an ID to be able to find it

Upvotes: 1

Related Questions