473,406 Members | 2,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

ASP.NET does not honor Title nor Javscript options

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


Nov 25 '05 #1
4 1532
Post ur code and lets have a look.

--
Best Regards

The Inimitable Mr Newbie º¿º

"Benton" <co*******@gmail.com> wrote in message
news:3u*************@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


Nov 25 '05 #2
> 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


Nov 25 '05 #3
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" <co*******@gmail.com> wrote in message
news:3u*************@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

Nov 25 '05 #4
//
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" <co*******@gmail.com> wrote in message
news:3u*************@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

Nov 26 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Olly | last post by:
I've found a basic script, however I also need to add alt and title attributes as well, how would I go about doing this? Here's the script I found: Thanks <script language="JavaScript"> <!--...
2
by: JehanNYNJ | last post by:
I have found that the onclick does not fire for Option elements in IE. Clicking on an option only fires the Select's onclick. Can someone please confirm this? If it is so then how would we best...
2
by: mark4asp | last post by:
Why does this not work in Mozilla ? <http://homepage.ntlworld.com/mark.pawelek/code/animals.html> The optHabitat_change() event does not fire. What am I doing wrong here? PS: It should...
8
by: McKirahan | last post by:
Firefox does not reflect selected option via innerHTML How do I get Firefox to reflect selected option values? <html> <head> <title>FFinner.htm</title> <script type="text/javascript">...
1
by: David C. Allen | last post by:
I am trying to insert an xml data island into a htm file that I am using for a help file. When I insert the lines of xml, the <xml> tag is underlined in red in VS2003 and the message says "The...
9
by: rolandgust | last post by:
I've written some code that creates a pop-up window to play back QuickTime movies and then pushes HTML into that window so I don't have to have a separate HTML file for every movie. The code works...
2
by: Poten Tate | last post by:
The script below doesn't bring the window to the front using Firefox2. Using IE7, it works fine. What am I doing wrong? Thanks. <script language="JavaScript"> <!-- /* tcwin is name of this...
7
by: prash.marne | last post by:
Hello, I have a simple form <form method="POST"> <select name="activity"> <option value="0">None</option> <option value="M" onclick="popup_onclick()">Select Multiple</option> <option...
2
by: swissreporter | last post by:
Hi - I have a really stupid failure of code, can't figure it out. Two fields in a form, Textinput and select; if text is written into input, select changes "selected" to a matching option. This...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.