Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP.NET does not honor Title nor Javscript options

Reply
Thread Tools

ASP.NET does not honor Title nor Javscript options

 
 
Benton
Guest
Posts: n/a
 
      11-25-2005
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






 
Reply With Quote
 
 
 
 
Mr Newbie
Guest
Posts: n/a
 
      11-25-2005
Post ur code and lets have a look.

--
Best Regards

The Inimitable Mr Newbie



"Benton" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>
>
>
>
>



 
Reply With Quote
 
 
 
 
Benton
Guest
Posts: n/a
 
      11-25-2005
> 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


 
Reply With Quote
 
clintonG
Guest
Posts: n/a
 
      11-25-2005
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/



"Benton" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>> 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

>



 
Reply With Quote
 
Mr Newbie
Guest
Posts: n/a
 
      11-26-2005
//
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







--
Best Regards

The Inimitable Mr Newbie
"Benton" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>> 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

>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
aspnet_regiis -pc operation does not honor -size argument (.NET 2. =?Utf-8?B?Sm9zaHVhQmlhZ2lv?= ASP .Net 2 04-13-2007 04:12 PM
How 2 place page title into window title using sitemap in master page? bednar.tomas@gmail.com ASP .Net 0 11-30-2006 03:17 PM
Does anyone know the title of the first ever DVD title released? (UK/US) Mikey DVD Video 12 09-23-2006 07:14 PM
Sea and Sea MX-10 DID NOT honor warranty on manufacturing defect Reef Fish Digital Photography 10 05-04-2004 04:35 AM
Fastest way to get a the string between <title> </title> Andreas Klemt ASP .Net 1 08-10-2003 01:58 AM



Advertisments