Hi agerled,
Try put the Jquery dialog code into method "CuteWebUI_AjaxUploader_OnInitialize". Like the example below.
- <%@ Page Language="vb"%>
-
- <%@ Register Assembly="CuteWebUI.AjaxUploader" Namespace="CuteWebUI" TagPrefix="cc1" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head runat="server">
- <title></title>
-
- <script language="javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"
- type="text/javascript"></script>
-
- <script language="javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js"
- type="text/javascript"></script>
-
- <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" />
-
- <script language="javascript" type="text/javascript">
-
- function CuteWebUI_AjaxUploader_OnInitialize()
- {
- $(function() {
-
- $("#dialog").dialog({
- height: 450,
- width: 850,
- modal: true,
- autoOpen: true
- });
- });
-
- }
-
- </script>
- </head>
- <body>
- <form id="form1" runat="server">
-
-
- <div>
-
- <div id="dialog" title="Dialog">
- <div>
- </div>
- <div style="width: 500px;">
- <div id="divAddFiles">
- <asp:Button runat="server" ID="btnAddFiles" Text="Select files" />
- </div>
- <div id="divCancelUpload" style="margin-top: 4px;">
- <asp:Button runat="server" ID="btnCancelUpload" Text="Cancel" />
- </div>
- </div>
- </div>
-
- <cc1:Uploader runat=server ID=
-
- </div>
-
- </form>
- </body>
-
- </html>
Regards,
ken