PDA

View Full Version : [CLOSED] Window control with aspx



vmehta
Jun 13, 2014, 10:38 AM
Hello,

I need to open a aspx page in a window on button click. I alreay have a window control and the aspx page. On button click I am doing "#{window1}.show();" this. Now I need to call the aspc page inside this window.

I have refered this example.

http://examples1.ext.net/#/Window/Basic/AutoLoad_Website/

But like in this example, there is no Autoload property for a window control. So i changed it to this.


win.Loader.Url = "test.aspx";
win.Loader.Mode = LoadMode.Frame;
win.Render(this.Form);

It throws an object reference error. Also this.Form is not recognised. Any other way of doing it?

Daniil
Jun 13, 2014, 11:12 AM
Hi @vmehta,

As far as you use Ext.NET v2, you should use v2 Examples Explorer, not v1.
http://examples2.ext.net/#/Window/Basic/Load_External_Website/