PDA

View Full Version : [CLOSED] Change url codebehind



gs_user
May 10, 2012, 6:41 AM
I want to change the url when the window show up
but can't work...



<ext:Window ID="WinDocShow" runat="server" Height="185" Icon="Application"
Title="Title" Width="350">
<Loader ID="Loader2" runat="server" Mode="Frame" AutoLoad="false" />

</ext:Window>




[DirectMethod]
public void CommandSet(string command, string sid)
{
if (command == "UploadDoc")
{
string myurl = "http://ext.net";
WinDocUpload.Hidden = false;
WinDocUpload.Loader.Url = myurl;
WinDocUpload.Reload();
}
}

Daniil
May 10, 2012, 9:05 AM
Hi,

Please use:

string myurl = "http://ext.net";
WinDocShow.Hidden = false;
WinDocShow.LoadContent(myurl);

gs_user
May 11, 2012, 3:33 AM
It's worked, thank you


Hi,

Please use:

string myurl = "http://ext.net";
WinDocShow.Hidden = false;
WinDocShow.LoadContent(myurl);