PDA

View Full Version : Open external website from <not ext>:button click event



rach
Aug 19, 2012, 4:56 PM
I want to open a website into a window, as a result of click on <OfficeWebUI:LargeItem> that i guess it is actually a button like asp:button. In your examples you gave an example of ext:button and call the show() function from listener.

What should i do in my case?

this is the code:


<OfficeWebUI:LargeItem ID="rbnBtnUpload" runat="server" Text="Upload" ImageUrl="~/Library/Img/Upload.png"
OnClick="rbnBtnUpload_Click" />

And where should i build the ext:window? in the html? or in page_load? (than also in postback?)

thanks!

Rachel

geoffrey.mcgill
Aug 20, 2012, 5:50 AM
Hi,

The following sample should help:

http://examples2.ext.net/#/XRender/Basic/New_Window/

rach
Aug 20, 2012, 8:53 AM
Thanks.
But, my button is in updatePanel and it doesn't work. Why? and what should i do?

rach
Aug 21, 2012, 12:43 PM
Thanks.
But, my button is in updatePanel and it doesn't work. Why? and what should i do?

I also tried to add myWindow.update() after it, maybe in the postback it is required - but nothing..