Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3338
webdialog window and master pages
posted

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

<!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>

<link href='ig_res/default/ig_shared.css' type='text/css' rel='stylesheet' />

<link href='ig_res/default/ig_toolbar.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;}

</style>

<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>

<script type="text/javascript" id="igClientScript">

//<!--

function tlbrMain_Click(oToolbar, oButton, oEvent) {

if (oButton.Key == "back")

history.back()

return false;

 

}

// -->

</script>

<style type="text/css">

.style1

{

width: 100%;

}

.style2

{

}

.style4

{

width: 15px;

}

.style5

{

}

.style6

{

width: 64px;

}

.style7

{

width: 5px;

}

</style> </head>

<body onload="return window_onload()">

<form name="aspnetForm" method="post" action="test.aspx" id="aspnetForm">

<div>

<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />

<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />

<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTEwMDUyNjYzM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bmZyYWdpc3RpY3MuV2ViVUkuVWx0cmFXZWJHcmlkLlBhZ2VyU3R5bGVNb2RlLCBJbmZyYWdpc3RpY3MyLldlYlVJLlVsdHJhV2ViR3JpZC52OC4yLCBWZXJzaW9uPTguMi4yMDA4Mi4xMDAwLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPTdkZDVjMzE2M2YyY2QwY2IAHhBDaGFuZ2VMaW5rc0NvbG9yaGRkFBQrAAJkFgE8KwAUAgAWBh8GBQVUYWJsZR8BBQVUYWJsZR4QQWRkQnV0dG9uQ2FwdGlvbgUFVGFibGUNPCsABAEBFgJkPCsACQEAFgIeCERhdGFUeXBlBQxTeXN0ZW0uSW50MzIVFCsABBYCD2QoKVpTeXN0ZW0uVUludDY0LCBtc2NvcmxpYiwgVmVyc2lvbj0yLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkLMjE0NzQ4MzY0ODAPZCgrCgEwFgE8KwAFAQQUKwACFgIoKwoBMCgrCgExFgIUKwACFgIeBVZhbHVlBQhNYWlscm9vbWQUKwACFgIfHQIBZGRkFxYCHg9YbWxIVFRQUmVzcG9uc2UFFmlnY21ib19YbWxIVFRQUmVzcG9uc2VkAgEPFCsABBQrAAJkZGQWAh4BdmdkZBgBBR5fX0NvbnRyb2xzUmVxdWlyZVBvc3RCYWNrS2V5X18WAgUNY3RsMDAkV0RMb2dpbgUOY3RsMDAkdGxick1haW4wHuGgZNGhISt2e6ERYTNylAR6Rw==" /> </div>

<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();

}

}

//]]>

</script>

 

<
script src="/WebResource.axd?d=aYmkgbwu6PYDDey7U2b95w2&amp;t=633577554534531250" type="text/javascript"></script>

<script type="text/javascript">

<!--

var ig_pi_imageUrl='/WebResource.axd?d=tz3XyHirhLxPZD70f__q9i-UNInB0Kolrg64Upj0PsXFaNIz3K8GtSogGIGBz3l9pUDhCy01UUq9dhc6qIDsu0mi4WhNbEEPt4RKyNJAC-hsM66OpLgHrL3nLVv2esfUbiECoZbnG4LqkEdSJOjVfnGnpiIpHC3aOEbHVbDNK5Y1&t=633577579952656250';try{(new Image()).src=ig_pi_imageUrl;}catch(ex){}

// -->

</script>

<script src="/ScriptResource.axd?d=tquYWlw-VvlilWLOCwVzh5GdgOHED5_k5qmTssc_JpWOcOX6WepJdwSxuqz7iqXALCOabv2ha85les0D0swarzy9Xf5WkcNM7H2Ta5YeNxIcrHOc4TgHt6EyYsqEBLgmJCrcBMNowGCnoBXNmMI60g2&amp;t=633577579952656250" type="text/javascript"></script>

<script src="/ScriptResource.axd?d=tquYWlw-VvlilWLOCwVzh09XHOeRQwsFQ5yuqxAn3fNMPB5fZ6P2pOCJxIRg4BZ7IoQuTnPEe07KQlnqCMYSB72W8iULOJKGI9_vvIZpFZGiLgLcv7usIyjvBbU_5w2t9GTxn52ZsbsuD_DLl9wrOnvnn_AuZ5zLVBhvJT0VMAN4CmMNOn6A87YtEd5-pJoa0&amp;t=633577579950000000" type="text/javascript"></script> <script src="/ScriptResource.axd?d=-aPpguiJ1XS5oolevpYxcQjpKjJIbeRKBgiXXvXrPEDUmMdhv30Ce6Hk3-veOjlroWhI07ZZDd6n1MG1kVl6nVjzOe90dBFLdC6Com6lh4M1&amp;t=633577639347968750" type="text/javascript"></script>

<script src="/ScriptResource.axd?d=-aPpguiJ1XS5oolevpYxcQjpKjJIbeRKBgiXXvXrPEDUmMdhv30Ce6Hk3-veOjlroWhI07ZZDd6n1MG1kVl6nVx3RvXidct4irUojEePSxW5Bm2WqdWitN1TZ2FfMW9I0&amp;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" >

&nbsp;</td>

</tr>

<tr >

<td colspan="2"

style="height: 22px; background-image: url('./Images/GradientBar.JPG');">

<font color="#FFFFFF" style="vertical-align: middle"> <span id="clock"></span></font>

</td>

</tr>

 

</table>

<!-- END header info -->

<input type="hidden" name="ctl00xtlbrMain_hidden" id="ctl00xtlbrMain_hidden" value="" />

<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;" >

<table border="0" cellpadding="1" style="font-family:Arial;font-size:12pt;table-layout:fixed;height:100%;">

<colgroup>

<col style="width:100px"></col>

<col style="width:100px"></col>

<col style="width:100px"></col>

<col style="width:100px"></col>

<col style="width:100px"></col> </colgroup>

<tbody>

<tr>

<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>

<td onselectstart='BLOCKED SCRIPT{return false;}' id="ctl00xtlbrMain_Item_1"

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_3 igtb_Item ig_d89f9d0c_r1 ig_Button ig_d89f9d0c_r2" >

<span igtxt='1'>Internal Ship</span>

</td>

<td onselectstart='BLOCKED SCRIPT{return false;}' id="ctl00xtlbrMain_Item_2"

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_6 igtb_Item ig_d89f9d0c_r1 ig_Button ig_d89f9d0c_r2" >

<span igtxt='1'>My Items</span>

</td>

<td onselectstart='BLOCKED SCRIPT{return false;}' id="ctl00xtlbrMain_Item_3"

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_9 igtb_Item ig_d89f9d0c_r1 ig_Button ig_d89f9d0c_r2" >

<span igtxt='1'>Quick Search</span>

</td>

<td onselectstart='BLOCKED SCRIPT{return false;}' id="ctl00xtlbrMain_Item_4"

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_12 igtb_Item ig_d89f9d0c_r1 ig_Button ig_d89f9d0c_r2" >

<span igtxt='1'>External Ship</span>

</td>

</tr>

</tbody>

</table>

</div>

 

 

 

<script type="text/javascript">

//<![CDATA[

Sys.WebForms.PageRequestManager._initialize('ctl00$ScriptManager1', document.getElementById('aspnetForm'));

Sys.WebForms.PageRequestManager.getInstance()._updateControls([, [, [, 90);

//]]>

 

on this line:

Sys.WebForms.PageRequestManager._initialize('ctl00$ScriptManager1', document.getElementById('aspnetForm'));

I get an error saying "SYS" is undefined...

 

can you put a webdialog window on a master page?

here is my master page code:

<%@ Master Language="VB" AutoEventWireup="false" CodeBehind="SCLIntra.master.vb" Inherits="SCLIntraWebApp.SCLIntra" %>

<%@ 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.WebCombo.v8.2, Version=8.2.20082.1000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.WebUI.WebCombo" tagprefix="igcmbo" %>

<%@ 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.Misc.v8.2, Version=8.2.20082.1000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.WebUI.Misc" tagprefix="igmisc" %>

<%@ Register assembly="Infragistics2.WebUI.UltraWebNavigator.v8.2, Version=8.2.20082.1000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.WebUI.UltraWebNavigator" tagprefix="ignav" %>

<%@ Register assembly="Infragistics2.WebUI.UltraWebToolbar.v8.2, Version=8.2.20082.1000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.WebUI.UltraWebToolbar" tagprefix="igtbar" %>

<%@ Register assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="System.Web.UI" tagprefix="cc1" %>

<%@ Register assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI" tagprefix="asp" %>

<%@ Register assembly="Infragistics2.Web.v8.2, Version=8.2.20082.1000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.Web.UI.LayoutControls" tagprefix="ig" %>

<!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">

<link rel="stylesheet" type="text/css" media="screen" href="layout.css" />

<title>SCLIntra Enterprise</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>

<script type="text/javascript" id="igClientScript">

//<!--

function tlbrMain_Click(oToolbar, oButton, oEvent) {if (oButton.Key == "back")

history.back()

return false;

 

}

// -->

</script>

<style type="text/css">

.style1

{

width: 100%;

}

.style2

{

}

.style4

{

width: 15px;

}

.style5

{

}

.style6

{

width: 64px;

}

.style7

{

width: 5px;

}

</style> </head>

<body onload="return window_onload()">

<form id="form1" runat="server" >

 

 

<div class="wrapper" >

<!-- Header Info -->

 

<table width="100%" >

<tr>

<td align="center">

<asp:Image ID="imgLogo" runat="server" Height="117px"

ImageUrl="~/Images/mylogo.jpg" />

</td>

<td align="right" >

&nbsp;</td>

</tr>

<tr >

<td colspan="2"

style="height: 22px; background-image: url('./Images/GradientBar.JPG');">

<font color="#FFFFFF" style="vertical-align: middle"> <span id="clock"></span></font>

</td>

</tr>

 

</table>

<!-- END header info -->

<igtbar:UltraWebToolbar ID="tlbrMain" runat="server"

BackgroundImage="" ImageDirectory="" ItemWidthDefault="100px"

MovableImage=""

EnableTheming="True" Width="100%" EnableAppStyling="True" StyleSetName="Default"

Height="30px" ItemPadding="1" ForeColor="White"

DefaultStyle-TextAlign="Left" Font-Names="Arial" Font-Size="12pt"

Font-Overline="False" HoverStyle-TextAlign="Left" LabelStyle-TextAlign="Left" SelectedStyle-TextAlign="Left" SeparatorStyle-TextAlign="Left"

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>

<igtbar:TBarButton DisabledImage="" HoverImage="" Image="" Key="back"

SelectedImage="" Text="Back" DefaultStyle-TextAlign="Left" HoverStyle-TextAlign="Left" SelectedStyle-TextAlign="Left">

<DefaultStyle Height="20px" TextAlign="Left" Width="100px" Font-Names="Arial"

Font-Size="12pt">

</DefaultStyle>

<HoverStyle TextAlign="Left" Width="100px" Font-Names="Arial" Font-Size="12pt">

</HoverStyle>

<SelectedStyle TextAlign="Left" Width="100px" Font-Names="Arial"

Font-Size="12pt">

</SelectedStyle>

</igtbar:TBarButton>

<igtbar:TBarButton DisabledImage="" HoverImage="" Image="" Key="internalship"

SelectedImage="" Text="Internal Ship">

<DefaultStyle Height="20px" TextAlign="Left" Width="100px">

</DefaultStyle>

<HoverStyle TextAlign="Left" Width="100px">

</HoverStyle>

<SelectedStyle TextAlign="Left" Width="100px">

</SelectedStyle>

</igtbar:TBarButton>

<igtbar:TBarButton DisabledImage="" HoverImage="" Image="" Key="recipsrch"

SelectedImage="" Text="My Items" >

<DefaultStyle Height="20px" TextAlign="Left" Width="100px" >

</DefaultStyle>

<HoverStyle TextAlign="Left" Width="100px" >

</HoverStyle>

<SelectedStyle TextAlign="Left" Width="100px" >

</SelectedStyle>

</igtbar:TBarButton>

<igtbar:TBarButton DisabledImage="" HoverImage="" Image="" Key="quicksearch"

SelectedImage="" Text="Quick Search">

<DefaultStyle Height="20px" TextAlign="Left" Width="100px" >

</DefaultStyle>

<HoverStyle TextAlign="Left" Width="100px" >

</HoverStyle>

<SelectedStyle TextAlign="Left" Width="100px" >

</SelectedStyle>

</igtbar:TBarButton>

<igtbar:TBarButton DisabledImage="" HoverImage="" Image="" Key="externalship"

SelectedImage="" Text="External Ship" >

<DefaultStyle Height="20px" TextAlign="Left" Width="100px" >

</DefaultStyle>

<HoverStyle TextAlign="Left" Width="100px" >

</HoverStyle>

<SelectedStyle TextAlign="Left" Width="100px" >

</SelectedStyle>

</igtbar:TBarButton>

<igtbar:TBarButton DisabledImage="" HoverImage="" Image="" Key="help"

SelectedImage="" Text="Help" Visible="False">

<DefaultStyle Height="20px" TextAlign="Left" Width="100px" >

</DefaultStyle>

<HoverStyle TextAlign="Left" Width="100px" >

</HoverStyle>

<SelectedStyle TextAlign="Left" Width="100px" >

</SelectedStyle>

</igtbar:TBarButton>

<igtbar:TBarButton DisabledImage="" HoverImage="" Visible="False" Image="" Key="logout"

SelectedImage="" Text="Log Out" >

<DefaultStyle Height="20px" TextAlign="Left" Width="100px" >

</DefaultStyle>

<HoverStyle TextAlign="Left" Width="100px" >

</HoverStyle>

<SelectedStyle TextAlign="Left" Width="100px" >

</SelectedStyle>

</igtbar:TBarButton>

 

</Items>

</igtbar:UltraWebToolbar>

 

<ig:WebDialogWindow ID="WDLogin" runat="server" Height="300px"

InitialLocation="Centered" Modal="True" Width="444px">

<header>

<maximizebox visible="True" />

</header>

<ContentPane>

<Template>

<table class="style1">

<tr>

<td class="style5" colspan="4">

<asp:Label ID="lblLoginFailed" runat="server" BackColor="Red" Font-Bold="True" Font-Names="Arial" Font-Size="Medium" ForeColor="White" Text="Login Failed: "

Visible="False"></asp:Label>

</td>

</tr>

<tr>

<td class="style5" colspan="4">

<asp:Label ID="lblPickProfile" runat="server" BackColor="#039684" Font-Bold="True" Font-Size="Medium" ForeColor="White"

Text="Please select a profile before continuing." Visible="False"></asp:Label>

</td>

</tr>

<tr>

<td class="style6">

<asp:Label ID="lblProfiles" runat="server" Font-Bold="True" Font-Italic="True"

Font-Names="Arial" Font-Size="Small" Text="Profiles:" Width="75px"></asp:Label>

</td>

<td class="style7">

<igcmbo:WebCombo ID="cboProfileList" runat="server" BorderStyle="Solid"

BorderWidth="1px" EnableAppStyling="True" EnableTheming="True"

Font-Names="Arial" Font-Size="10pt" Height="18px" SelBackColor="243, 177, 66"

SelForeColor="Black" StyleSetName="default" Version="4.00" Width="80px">

<Columns>

<igtbl:UltraGridColumn BaseColumnName="ProfileName" Key="ProfileName">

<header caption="Profile Name">

</header>

</igtbl:UltraGridColumn>

<igtbl:UltraGridColumn BaseColumnName="ProfileID" Hidden="True" Key="ProfileID">

<header caption="Profile ID">

<rowlayoutcolumninfo originx="1" />

</header>

<footer>

<rowlayoutcolumninfo originx="1" />

</footer>

</igtbl:UltraGridColumn>

</Columns>

<expandeffects shadowcolor="LightGray" />

<dropdownlayout allowrowsizing="Free" autogeneratecolumns="False" bordercollapse="Separate" dropdownwidth="130px" headerclickaction="NotSet"

rowheightdefault="20px" rowsizing="Free" version="4.00">

<framestyle font-names="Arial" height="130px" width="130px">

</framestyle>

</dropdownlayout>

</igcmbo:WebCombo>

</td>

<td class="style4">

<asp:Label ID="Label3" runat="server" ForeColor="Red" Text="*"></asp:Label>

</td>

<td>

&nbsp;</td>

</tr>

<tr>

<td class="style6">

<asp:Label ID="lblUsername" runat="server" Font-Bold="True" Font-Italic="True"

Font-Names="Arial" Font-Size="Small" Text="User Name:" Width="75px"></asp:Label>

</td>

<td class="style7">

<font face="Arial, Helvetica, sans-serif" size="2">

<igtxt:WebTextEdit ID="txtUserName" runat="server" AllowAltPlusDigits="False"

BorderColor="White" BorderStyle="Inset" BorderWidth="2px"

EnableAppStyling="True" Enabled="False" FocusOnInitialization="True"

Height="20px" MaxLength="50" SelectionOnFocus="SelectAll"

StyleSetName="Default" ToolTip="Enter user name" UseBrowserDefaults="False"

Width="80px">

<borderdetails colorleft="0, 160, 160, 160" colortop="0, 160, 160, 160"

styleleft="Ridge" styletop="Ridge" />

<clientsideevents keypress="TextSearch_KeyPress" />

</igtxt:WebTextEdit>

</font>

</td>

<td class="style4">

<asp:Label ID="Label4" runat="server" ForeColor="Red" Text="*"></asp:Label>

</td>

<td>

&nbsp;</td>

</tr>

<tr>

<td class="style6">

<asp:Label ID="LabelPwd" runat="server" Font-Bold="True" Font-Italic="True"

Font-Names="Arial" Font-Size="Small" Text="Password:"></asp:Label>

</td>

<td class="style7">

<igtxt:WebTextEdit ID="txtPassword" runat="server" AllowAltPlusDigits="False"

BorderColor="White" BorderStyle="Inset" BorderWidth="2px"

EnableAppStyling="True" Enabled="False" Height="20px" MaxLength="50" PasswordMode="True" SelectionOnFocus="SelectAll" StyleSetName="Default"

ToolTip="Please enter a password" UseBrowserDefaults="true" Width="80px">

</igtxt:WebTextEdit>

</td>

<td class="style4">

<asp:Label ID="Label5" runat="server" ForeColor="Red" Text="*"></asp:Label>

</td>

<td>

&nbsp;</td>

</tr>

<tr>

<td class="style2" colspan="2">

<font size="1">

<asp:Label ID="lblMessage" runat="server" Font-Names="Arial"

Text=" Fields marked with an asterisk * are required."></asp:Label>

</font>

</td>

<td class="style4">

&nbsp;</td>

<td>

<igtxt:WebImageButton ID="btnEnter" runat="server" ImageDirectory="/ig_res"

ImageTextSpacing="0" style="height: 21px" Text="Enter" Width="70px">

<disabledappearance>

<buttonstyle font-bold="False" font-italic="False" font-overline="False"

font-strikeout="False" font-underline="False">

</buttonstyle>

</disabledappearance>

<appearance>

<buttonstyle backcolor="Orange" font-bold="False" font-italic="False"

font-overline="False" font-strikeout="False" font-underline="False">

</buttonstyle>

</appearance>

<focusappearance>

<buttonstyle font-bold="False" font-italic="False" font-overline="False"

font-strikeout="False" font-underline="False">

</buttonstyle>

</focusappearance>

<pressedappearance>

<buttonstyle backcolor="OrangeRed" font-bold="False" font-italic="False"

font-overline="False" font-strikeout="False" font-underline="False">

</buttonstyle>

</pressedappearance>

<hoverappearance>

<buttonstyle backcolor="Bisque" font-bold="False" font-italic="False"

font-overline="False" font-strikeout="False" font-underline="False">

</buttonstyle>

</hoverappearance>

</igtxt:WebImageButton>

</td>

</tr>

 

</table>

</Template>

</ContentPane>

</ig:WebDialogWindow>

 

<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

 

 

<asp:ContentPlaceHolder ID="MainContent" runat="server">

 

</asp:ContentPlaceHolder>

<div class="push"></div>

</div>

<!-- Footer Info -->

<div class="footer" style="background-image: url('./Images/GradientBar.JPG');" >

<font face="Arial, Helvetica, sans-serif" size="1" color="White"

style="vertical-align: middle" >

 

</font>

 

</div>

<!-- END footer info -->

 

</form> </body>

</html>

 

here is the code behind

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

imgLogo.ImageUrl = "~/images/mylogo.jpg"

If Not IsPostBack Then

Dim WebService As New SCLIntraWebService.Service1Dim dsProfile As DataSet

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

SCLSession.ProfileID =
CInt(cboProfileList.SelectedRow.Cells(1).Text)

lblPickProfile.Visible = False

Else

lblPickProfile.Visible = True

End If

End If

End sub