ASP.NET does not honor Title nor Javscript options

B

Benton

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
 
B

Benton

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
 
M

Mr Newbie

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top