I have a master page with a ultrawebtoolbar and a webdialog window.
I have a default.aspx page that has nothing on it but the contentpane area. It uses the masterpage file.
When I run the application, I get a javascript error. the code that is being rendered is as follows
<html xmlns="http://www.w3.org/1999/xhtml" >
<link href='ig_res/default/ig_shared.css' type='text/css' rel='stylesheet' />
<style type="text/css">
.ig_d89f9d0c_r0{font-family:Arial;font-size:12pt;color:White;width:100%;height:30px;}
.ig_d89f9d0c_0{font-family:Arial;font-size:12pt;width:100px;height:20px;}
.ig_d89f9d0c_3{width:100px;height:20px;}
.ig_d89f9d0c_6{width:100px;height:20px;}
.ig_d89f9d0c_9{width:100px;height:20px;}
.ig_d89f9d0c_12{width:100px;height:20px;}
.ig_d89f9d0c_15{width:100px;height:20px;}
.ig_d89f9d0c_18{width:100px;height:20px;}
.ig_d89f9d0c_r1{width:100px;}
.ig_d89f9d0c_1{font-family:Arial;font-size:12pt;width:100px;}
.ig_d89f9d0c_4{width:100px;}
.ig_d89f9d0c_7{width:100px;}
.ig_d89f9d0c_10{width:100px;}
.ig_d89f9d0c_13{width:100px;}
.ig_d89f9d0c_16{width:100px;}
.ig_d89f9d0c_19{width:100px;}
.ig_d89f9d0c_r2{width:100px;}
.ig_d89f9d0c_2{font-family:Arial;font-size:12pt;width:100px;}
.ig_d89f9d0c_5{width:100px;}
.ig_d89f9d0c_8{width:100px;}
.ig_d89f9d0c_11{width:100px;}
.ig_d89f9d0c_14{width:100px;}
.ig_d89f9d0c_17{width:100px;}
.ig_d89f9d0c_20{width:100px;}
.ig_d89f9d0c_r3{width:100px;}
.ig_d89f9d0c_r4{width:100px;}
.ig_d89f9d0c_r6{width:100px;}
<link rel="stylesheet" type="text/css" media="screen" href="layout.css" /><title>
Untitled Page
</title>
<script type="text/javascript" id="ClockScript">
//<!--
var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
function getthedate(){
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var hours=mydate.getHours()
var minutes=mydate.getMinutes()
var seconds=mydate.getSeconds()
var dn="AM"
if (hours>=12)
dn="PM"
if (hours>12){
hours=hours-12
}
if (hours==0)
hours=12
if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
//change font size here
var cdate="<small><font color='FFFFFF' face='Arial'><b>"+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+" "+hours+":"+minutes+":"+seconds+" "+dn
+"</b></font></small>"
if (document.all)
document.all.clock.innerHTML=cdate
else if (document.getElementById)
document.getElementById("clock").innerHTML=cdate
else
document.write(cdate)
if (!document.all&&!document.getElementById)
getthedate()
function goforit(){
if (document.all||document.getElementById)
setInterval("getthedate()",1000)
function window_onload() {
goforit();
// -->
<script type="text/javascript" id="igClientScript">
function tlbrMain_Click(oToolbar, oButton, oEvent) {
if (oButton.Key == "back")
history.back()
return false;
.style1
{
width: 100%;
.style2
.style4
width: 15px;
.style5
.style6
width: 64px;
.style7
width: 5px;
<body onload="return window_onload()">
<div>
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['aspnetForm'];
if (!theForm) {
theForm = document.aspnetForm;
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
//]]>
<!--
var ig_pi_imageUrl='/WebResource.axd?d=tz3XyHirhLxPZD70f__q9i-UNInB0Kolrg64Upj0PsXFaNIz3K8GtSogGIGBz3l9pUDhCy01UUq9dhc6qIDsu0mi4WhNbEEPt4RKyNJAC-hsM66OpLgHrL3nLVv2esfUbiECoZbnG4LqkEdSJOjVfnGnpiIpHC3aOEbHVbDNK5Y1&t=633577579952656250';try{(new Image()).src=ig_pi_imageUrl;}catch(ex){}
<script src="/ScriptResource.axd?d=tquYWlw-VvlilWLOCwVzh5GdgOHED5_k5qmTssc_JpWOcOX6WepJdwSxuqz7iqXALCOabv2ha85les0D0swarzy9Xf5WkcNM7H2Ta5YeNxIcrHOc4TgHt6EyYsqEBLgmJCrcBMNowGCnoBXNmMI60g2&t=633577579952656250" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=-aPpguiJ1XS5oolevpYxcQjpKjJIbeRKBgiXXvXrPEDUmMdhv30Ce6Hk3-veOjlroWhI07ZZDd6n1MG1kVl6nVx3RvXidct4irUojEePSxW5Bm2WqdWitN1TZ2FfMW9I0&t=633577639347968750" type="text/javascript"></script>
<div class="wrapper" >
<!-- Header Info -->
<table width="100%" >
<tr>
<td align="center">
<img id="ctl00_imgLogo" src="images/mylogo.jpg" style="height:117px;border-width:0px;" />
</td>
<td align="right" >
</td>
</tr>
<tr >
style="height: 22px; background-image: url('./Images/GradientBar.JPG');">
<font color="#FFFFFF" style="vertical-align: middle"> <span id="clock"></span></font>
</table>
<!-- END header info -->
<div id="ctl00xtlbrMain" class=" ig_Control igtb_Control ig_d89f9d0c_r0" style="z-index:1000;font-family:Arial;font-size:12pt;color:White;width:100%;height:30px; text-align:left;" >
<colgroup>
<col style="width:100px"></col>
<tbody>
<td onselectstart='BLOCKED SCRIPT{return false;}' id="ctl00xtlbrMain_Item_0"
onmouseover='BLOCKED SCRIPTigtbar_mouseOver(this,event,true);'
onmousedown='BLOCKED SCRIPTigtbar_mouseDown(this,event,true,false);'
onmouseup='BLOCKED SCRIPTigtbar_mouseUp(this,event,true);'
onmouseout='BLOCKED SCRIPTigtbar_mouseOut(this,event,true,false);'
class="ig_Item igtb_Button ig_d89f9d0c_0 igtb_Item ig_d89f9d0c_r1 ig_Button ig_d89f9d0c_r2" >
<span igtxt='1'>Back</span>
<td onselectstart='BLOCKED SCRIPT{return false;}' id="ctl00xtlbrMain_Item_1"
class="ig_Item igtb_Button ig_d89f9d0c_3 igtb_Item ig_d89f9d0c_r1 ig_Button ig_d89f9d0c_r2" >
<span igtxt='1'>Internal Ship</span>
<td onselectstart='BLOCKED SCRIPT{return false;}' id="ctl00xtlbrMain_Item_2"
class="ig_Item igtb_Button ig_d89f9d0c_6 igtb_Item ig_d89f9d0c_r1 ig_Button ig_d89f9d0c_r2" >
<span igtxt='1'>My Items</span>
<td onselectstart='BLOCKED SCRIPT{return false;}' id="ctl00xtlbrMain_Item_3"
class="ig_Item igtb_Button ig_d89f9d0c_9 igtb_Item ig_d89f9d0c_r1 ig_Button ig_d89f9d0c_r2" >
<span igtxt='1'>Quick Search</span>
<td onselectstart='BLOCKED SCRIPT{return false;}' id="ctl00xtlbrMain_Item_4"
class="ig_Item igtb_Button ig_d89f9d0c_12 igtb_Item ig_d89f9d0c_r1 ig_Button ig_d89f9d0c_r2" >
<span igtxt='1'>External Ship</span>
</tbody>
</div>
Sys.WebForms.PageRequestManager._initialize('ctl00$ScriptManager1', document.getElementById('aspnetForm'));
Sys.WebForms.PageRequestManager.getInstance()._updateControls([, [, [, 90);
on this line:
I get an error saying "SYS" is undefined...
can you put a webdialog window on a master page?
here is my master page code:
<%@ Register tagprefix="igtxt" namespace="Infragistics.WebUI.WebDataInput" Assembly="Infragistics2.WebUI.WebDataInput.v8.2, Version=8.2.20082.1000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" %>
<%@ Register assembly="Infragistics2.WebUI.UltraWebGrid.v8.2, Version=8.2.20082.1000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.WebUI.UltraWebGrid" tagprefix="igtbl" %>
<%@ Register assembly="Infragistics2.WebUI.UltraWebNavigator.v8.2, Version=8.2.20082.1000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.WebUI.UltraWebNavigator" tagprefix="ignav" %>
<%@ Register assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="System.Web.UI" tagprefix="cc1" %>
<%@ Register assembly="Infragistics2.Web.v8.2, Version=8.2.20082.1000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.Web.UI.LayoutControls" tagprefix="ig" %>
<head runat="server">
<link rel="stylesheet" type="text/css" media="screen" href="layout.css" />
<title>SCLIntra Enterprise</title>
<form id="form1" runat="server" >
ImageUrl="~/Images/mylogo.jpg" />
BackgroundImage="" ImageDirectory="" ItemWidthDefault="100px"
EnableTheming="True" Width="100%" EnableAppStyling="True" StyleSetName="Default"
DefaultStyle-TextAlign="Left" Font-Names="Arial" Font-Size="12pt"
TextBoxStyle-TextAlign="Left" Font-Bold="False">
<HoverStyle TextAlign="Left" Width="100px" >
</HoverStyle>
<ClientSideEvents Click="tlbrMain_Click" />
<TextBoxStyle TextAlign="Left" Width="100px" />
<SelectedStyle TextAlign="Left" Width="100px" >
</SelectedStyle>
<DefaultStyle TextAlign="Left" Width="100px" >
</DefaultStyle>
<ButtonStyle TextAlign="Left" Width="100px">
</ButtonStyle>
<SeparatorStyle TextAlign="Left" />
<LabelStyle TextAlign="Left"></LabelStyle>
<Items>
SelectedImage="" Text="Back" DefaultStyle-TextAlign="Left" HoverStyle-TextAlign="Left" SelectedStyle-TextAlign="Left">
Font-Size="12pt">
<HoverStyle TextAlign="Left" Width="100px" Font-Names="Arial" Font-Size="12pt">
</igtbar:TBarButton>
SelectedImage="" Text="Internal Ship">
<DefaultStyle Height="20px" TextAlign="Left" Width="100px">
<HoverStyle TextAlign="Left" Width="100px">
<SelectedStyle TextAlign="Left" Width="100px">
SelectedImage="" Text="My Items" >
<DefaultStyle Height="20px" TextAlign="Left" Width="100px" >
SelectedImage="" Text="Quick Search">
SelectedImage="" Text="External Ship" >
SelectedImage="" Text="Help" Visible="False">
SelectedImage="" Text="Log Out" >
</Items>
</igtbar:UltraWebToolbar>
InitialLocation="Centered" Modal="True" Width="444px">
<header>
<maximizebox visible="True" />
</header>
<ContentPane>
<Template>
<table class="style1">
<td class="style5" colspan="4">
Visible="False"></asp:Label>
Text="Please select a profile before continuing." Visible="False"></asp:Label>
<td class="style6">
Font-Names="Arial" Font-Size="Small" Text="Profiles:" Width="75px"></asp:Label>
<td class="style7">
BorderWidth="1px" EnableAppStyling="True" EnableTheming="True"
SelForeColor="Black" StyleSetName="default" Version="4.00" Width="80px">
<Columns>
<igtbl:UltraGridColumn BaseColumnName="ProfileName" Key="ProfileName">
<header caption="Profile Name">
</igtbl:UltraGridColumn>
<igtbl:UltraGridColumn BaseColumnName="ProfileID" Hidden="True" Key="ProfileID">
<header caption="Profile ID">
<rowlayoutcolumninfo originx="1" />
<footer>
</footer>
</Columns>
<expandeffects shadowcolor="LightGray" />
rowheightdefault="20px" rowsizing="Free" version="4.00">
<framestyle font-names="Arial" height="130px" width="130px">
</framestyle>
</dropdownlayout>
</igcmbo:WebCombo>
<td class="style4">
<asp:Label ID="Label3" runat="server" ForeColor="Red" Text="*"></asp:Label>
<td>
Font-Names="Arial" Font-Size="Small" Text="User Name:" Width="75px"></asp:Label>
<font face="Arial, Helvetica, sans-serif" size="2">
BorderColor="White" BorderStyle="Inset" BorderWidth="2px"
Height="20px" MaxLength="50" SelectionOnFocus="SelectAll"
Width="80px">
styleleft="Ridge" styletop="Ridge" />
<clientsideevents keypress="TextSearch_KeyPress" />
</igtxt:WebTextEdit>
</font>
<asp:Label ID="Label4" runat="server" ForeColor="Red" Text="*"></asp:Label>
Font-Names="Arial" Font-Size="Small" Text="Password:"></asp:Label>
ToolTip="Please enter a password" UseBrowserDefaults="true" Width="80px">
<asp:Label ID="Label5" runat="server" ForeColor="Red" Text="*"></asp:Label>
<td class="style2" colspan="2">
<font size="1">
Text=" Fields marked with an asterisk * are required."></asp:Label>
ImageTextSpacing="0" style="height: 21px" Text="Enter" Width="70px">
<disabledappearance>
font-strikeout="False" font-underline="False">
</buttonstyle>
</disabledappearance>
<appearance>
font-overline="False" font-strikeout="False" font-underline="False">
</appearance>
<focusappearance>
</focusappearance>
<pressedappearance>
</pressedappearance>
<hoverappearance>
</hoverappearance>
</igtxt:WebImageButton>
</Template>
</ContentPane>
</ig:WebDialogWindow>
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:ContentPlaceHolder ID="MainContent" runat="server">
</asp:ContentPlaceHolder>
<div class="push"></div>
<!-- Footer Info -->
<div class="footer" style="background-image: url('./Images/GradientBar.JPG');" >
style="vertical-align: middle" >
<!-- END footer info -->
</html>
here is the code behind
imgLogo.ImageUrl = "~/images/mylogo.jpg"
If Not IsPostBack Then
WDLogin.WindowState = _
Infragistics.Web.UI.LayoutControls.DialogWindowState.Hidden
WDLogin.Visible = False
' Setup default values
dsProfile = WebService.ProfileList
cboProfileList.DataSource = dsProfile
cboProfileList.DataBind()
If dsProfile.Tables(0).Rows.Count = 1 Then
cboProfileList.SelectedIndex = 0
lblPickProfile.Visible = False
Else
lblPickProfile.Visible = True
End If
End sub
my original problem was the inability to use the script manager control on the master page.
I think you can take a look at ScriptManagerProxy - this could be exactly what you need.
see post http://forums.infragistics.com/forums/t/14627.aspx.