|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
ASP.NET does not honor Title nor Javscript optionsI have a child webform (with a ASP.NET calendar control) that opens in a javascript popup window when I click a button in the caller form. Child page has a <title> tag, and javascript window open options dictate "statusbar=no" While running the site inside VS 2003, the child page pops up as expected, with the specified title and no status bar. So far so good. However, once I take the binary and aspx files to the production machine, the child page pops up with the browser's default title and the status bar visible! If I inspect the source code, my title tag *is* there. If I inspect the calling form's source code, the "statusbar=no" option in the "onclick" attribute is there as well. I am puzzled. Any ideas? -Benton Using VS 2003 / Framework 1.1 Post ur code and lets have a look.
-- Show quoteHide quoteBest Regards The Inimitable Mr Newbie º¿º "Benton" <conver***@gmail.com> wrote in message news:3up28mF127t2kU1@individual.net... > Hi there, > > I have a child webform (with a ASP.NET calendar control) that opens in a > javascript popup window when I click a button in the caller form. Child > page has a <title> tag, and javascript window open options dictate > "statusbar=no" > > While running the site inside VS 2003, the child page pops up as expected, > with the specified title and no status bar. So far so good. > > However, once I take the binary and aspx files to the production machine, > the child page pops up with the browser's default title and the status bar > visible! If I inspect the source code, my title tag *is* there. If I > inspect the calling form's source code, the "statusbar=no" option in the > "onclick" attribute is there as well. I am puzzled. > > Any ideas? > > -Benton > Using VS 2003 / Framework 1.1 > > > > > > > Post ur code and lets have a look. Child web form:<%@ Page language="c#" Codebehind="DatePicker.aspx.cs" AutoEventWireup="false" Inherits="DatePicker.DatePicker" EnableSessionState="True" enableViewState="False"%> <%@ Register TagPrefix="cc1" Namespace="WCL" Assembly="WCL" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <HTML> <HEAD> <title>Calendar</title> <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"> <meta name="CODE_LANGUAGE" Content="C#"> <meta name="vs_defaultClientScript" content="JavaScript"> <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"> </HEAD> <body MS_POSITIONING="GridLayout"> <form id="Form1" method="post" runat="server"> <asp:Calendar id="Calendar" style="Z-INDEX: 101; LEFT: 0px; POSITION: absolute; TOP: 0px" runat="server" BorderWidth="1px" BackColor="#FFFFCC" Width="220px" DayNameFormat="FirstLetter" ForeColor="#663399" Height="200px" Font-Size="8pt" Font-Names="Verdana" BorderColor="#FFCC66" ShowGridLines="True"> <TodayDayStyle ForeColor="White" BackColor="#FFCC66"></TodayDayStyle> <SelectorStyle BackColor="#FFCC66"></SelectorStyle> <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC"></NextPrevStyle> <DayHeaderStyle Height="1px" BackColor="#FFCC66"></DayHeaderStyle> <SelectedDayStyle Font-Bold="True" BackColor="#CCCCFF"></SelectedDayStyle> <TitleStyle Font-Size="9pt" Font-Bold="True" ForeColor="#FFFFCC" BackColor="#990000"></TitleStyle> <OtherMonthDayStyle ForeColor="#CC9966"></OtherMonthDayStyle> </asp:Calendar> </form> </body> </HTML> HTML from the caller web form (excerpt) : <input name="txtDesde" type="text" value="11/25/2005" readonly="readonly" id="txtDesde" title="Click for calendar" onclick="window.open('../DatePicker.aspx?f=txtDesde', 'calendarPopup', 'width=220,height=200,resizable=no,statusbar=no');" /> Regards, -Benton Show quoteHide quote > -- > Best Regards > > The Inimitable Mr Newbie º¿º > > > >> Hi there, >> >> I have a child webform (with a ASP.NET calendar control) that opens in a >> javascript popup window when I click a button in the caller form. Child >> page has a <title> tag, and javascript window open options dictate >> "statusbar=no" >> >> While running the site inside VS 2003, the child page pops up as >> expected, with the specified title and no status bar. So far so good. >> >> However, once I take the binary and aspx files to the production machine, >> the child page pops up with the browser's default title and the status >> bar visible! If I inspect the source code, my title tag *is* there. If I >> inspect the calling form's source code, the "statusbar=no" option in the >> "onclick" attribute is there as well. I am puzzled. >> >> Any ideas? >> >> -Benton >> Using VS 2003 / Framework 1.1 I've had a problem with 2.0. It doesn't like relative pathing it seems.
<%= Clinton Gallagher METROmilwaukee (sm) "A Regional Information Service" NET csgallagher AT metromilwaukee.com URL http://metromilwaukee.com/ URL http://clintongallagher.metromilwaukee.com/ Show quoteHide quote "Benton" <conver***@gmail.com> wrote in message news:3upcodF11bvstU1@individual.net... >> Post ur code and lets have a look. > > Child web form: > > <%@ Page language="c#" Codebehind="DatePicker.aspx.cs" > AutoEventWireup="false" Inherits="DatePicker.DatePicker" > EnableSessionState="True" enableViewState="False"%> > <%@ Register TagPrefix="cc1" Namespace="WCL" Assembly="WCL" %> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > > <HTML> > <HEAD> > <title>Calendar</title> > <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"> > <meta name="CODE_LANGUAGE" Content="C#"> > <meta name="vs_defaultClientScript" content="JavaScript"> > <meta name="vs_targetSchema" > content="http://schemas.microsoft.com/intellisense/ie5"> > </HEAD> > <body MS_POSITIONING="GridLayout"> > <form id="Form1" method="post" runat="server"> > <asp:Calendar id="Calendar" style="Z-INDEX: 101; LEFT: 0px; POSITION: > absolute; TOP: 0px" runat="server" > BorderWidth="1px" BackColor="#FFFFCC" Width="220px" > DayNameFormat="FirstLetter" ForeColor="#663399" > Height="200px" Font-Size="8pt" Font-Names="Verdana" > BorderColor="#FFCC66" ShowGridLines="True"> > <TodayDayStyle ForeColor="White" BackColor="#FFCC66"></TodayDayStyle> > <SelectorStyle BackColor="#FFCC66"></SelectorStyle> > <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC"></NextPrevStyle> > <DayHeaderStyle Height="1px" BackColor="#FFCC66"></DayHeaderStyle> > <SelectedDayStyle Font-Bold="True" > BackColor="#CCCCFF"></SelectedDayStyle> > <TitleStyle Font-Size="9pt" Font-Bold="True" ForeColor="#FFFFCC" > BackColor="#990000"></TitleStyle> > <OtherMonthDayStyle ForeColor="#CC9966"></OtherMonthDayStyle> > </asp:Calendar> > </form> > </body> > </HTML> > > HTML from the caller web form (excerpt) : > > <input name="txtDesde" type="text" value="11/25/2005" readonly="readonly" > id="txtDesde" title="Click for calendar" > onclick="window.open('../DatePicker.aspx?f=txtDesde', 'calendarPopup', > 'width=220,height=200,resizable=no,statusbar=no');" /> > > Regards, > > -Benton > >> -- >> Best Regards >> >> The Inimitable Mr Newbie º¿º >> >> >> > >>> Hi there, >>> >>> I have a child webform (with a ASP.NET calendar control) that opens in a >>> javascript popup window when I click a button in the caller form. Child >>> page has a <title> tag, and javascript window open options dictate >>> "statusbar=no" >>> >>> While running the site inside VS 2003, the child page pops up as >>> expected, with the specified title and no status bar. So far so good. >>> >>> However, once I take the binary and aspx files to the production >>> machine, the child page pops up with the browser's default title and the >>> status bar visible! If I inspect the source code, my title tag *is* >>> there. If I inspect the calling form's source code, the "statusbar=no" >>> option in the "onclick" attribute is there as well. I am puzzled. >>> >>> Any ideas? >>> >>> -Benton >>> Using VS 2003 / Framework 1.1 > //
HTML from the caller web form (excerpt) : <input name="txtDesde" type="text" value="11/25/2005" readonly="readonly" id="txtDesde" title="Click for calendar" onclick="window.open('../DatePicker.aspx?f=txtDesde', 'calendarPopup', 'width=220,height=200,resizable=no,statusbar=no');" /> // Q. How is the ?f=txtDesde being used during the loading of the child form, As far as the status bar is concerned, this is pretty odd -- Show quoteHide quoteBest Regards The Inimitable Mr Newbie º¿º "Benton" <conver***@gmail.com> wrote in message news:3upcodF11bvstU1@individual.net... >> Post ur code and lets have a look. > > Child web form: > > <%@ Page language="c#" Codebehind="DatePicker.aspx.cs" > AutoEventWireup="false" Inherits="DatePicker.DatePicker" > EnableSessionState="True" enableViewState="False"%> > <%@ Register TagPrefix="cc1" Namespace="WCL" Assembly="WCL" %> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > > <HTML> > <HEAD> > <title>Calendar</title> > <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"> > <meta name="CODE_LANGUAGE" Content="C#"> > <meta name="vs_defaultClientScript" content="JavaScript"> > <meta name="vs_targetSchema" > content="http://schemas.microsoft.com/intellisense/ie5"> > </HEAD> > <body MS_POSITIONING="GridLayout"> > <form id="Form1" method="post" runat="server"> > <asp:Calendar id="Calendar" style="Z-INDEX: 101; LEFT: 0px; POSITION: > absolute; TOP: 0px" runat="server" > BorderWidth="1px" BackColor="#FFFFCC" Width="220px" > DayNameFormat="FirstLetter" ForeColor="#663399" > Height="200px" Font-Size="8pt" Font-Names="Verdana" > BorderColor="#FFCC66" ShowGridLines="True"> > <TodayDayStyle ForeColor="White" BackColor="#FFCC66"></TodayDayStyle> > <SelectorStyle BackColor="#FFCC66"></SelectorStyle> > <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC"></NextPrevStyle> > <DayHeaderStyle Height="1px" BackColor="#FFCC66"></DayHeaderStyle> > <SelectedDayStyle Font-Bold="True" > BackColor="#CCCCFF"></SelectedDayStyle> > <TitleStyle Font-Size="9pt" Font-Bold="True" ForeColor="#FFFFCC" > BackColor="#990000"></TitleStyle> > <OtherMonthDayStyle ForeColor="#CC9966"></OtherMonthDayStyle> > </asp:Calendar> > </form> > </body> > </HTML> > > HTML from the caller web form (excerpt) : > > <input name="txtDesde" type="text" value="11/25/2005" readonly="readonly" > id="txtDesde" title="Click for calendar" > onclick="window.open('../DatePicker.aspx?f=txtDesde', 'calendarPopup', > 'width=220,height=200,resizable=no,statusbar=no');" /> > > Regards, > > -Benton > >> -- >> Best Regards >> >> The Inimitable Mr Newbie º¿º >> >> >> > >>> Hi there, >>> >>> I have a child webform (with a ASP.NET calendar control) that opens in a >>> javascript popup window when I click a button in the caller form. Child >>> page has a <title> tag, and javascript window open options dictate >>> "statusbar=no" >>> >>> While running the site inside VS 2003, the child page pops up as >>> expected, with the specified title and no status bar. So far so good. >>> >>> However, once I take the binary and aspx files to the production >>> machine, the child page pops up with the browser's default title and the >>> status bar visible! If I inspect the source code, my title tag *is* >>> there. If I inspect the calling form's source code, the "statusbar=no" >>> option in the "onclick" attribute is there as well. I am puzzled. >>> >>> Any ideas? >>> >>> -Benton >>> Using VS 2003 / Framework 1.1 >
Other interesting topics
ASP.NET 2.0 Frustration - MS Please Help
Web.Config file seems to be ignored Wizard Control How to receive keyboard input? DataGrid Nightmare http 1.1/ 403 access forbidden after framework 2.0 installed About KB Article 831150 Bind DropDownList to XmlDataSource User Right configuration in asp .net deployment project Q: moving project folder |
|||||||||||||||||||||||