ASP.NET does not honor Title nor Javscript options

Discussion in 'ASP .Net' started by Benton, Nov 25, 2005.

  1. Benton

    Benton Guest

    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
     
    Benton, Nov 25, 2005
    #1
    1. Advertising

  2. Benton

    Mr Newbie Guest

    Post ur code and lets have a look.

    --
    Best Regards

    The Inimitable Mr Newbie º¿º



    "Benton" <> wrote in message
    news:...
    > 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
    >
    >
    >
    >
    >
    >
     
    Mr Newbie, Nov 25, 2005
    #2
    1. Advertising

  3. Benton

    Benton Guest

    > 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
     
    Benton, Nov 25, 2005
    #3
  4. Benton

    clintonG Guest

    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" <> wrote in message
    news:...
    >> 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

    >
     
    clintonG, Nov 25, 2005
    #4
  5. Benton

    Mr Newbie Guest

    //
    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" <> wrote in message
    news:...
    >> 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

    >
     
    Mr Newbie, Nov 26, 2005
    #5
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jan Danielsson

    Making headers honor images?

    Jan Danielsson, Jul 25, 2005, in forum: HTML
    Replies:
    8
    Views:
    408
    Jonathan N. Little
    Jul 25, 2005
  2. Jure Erznoznik
    Replies:
    3
    Views:
    1,151
    Neredbojias
    Aug 10, 2005
  3. =?Utf-8?B?Sm9zaHVhQmlhZ2lv?=

    aspnet_regiis -pc operation does not honor -size argument (.NET 2.

    =?Utf-8?B?Sm9zaHVhQmlhZ2lv?=, Apr 13, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    440
    =?Utf-8?B?Sm9zaHVhQmlhZ2lv?=
    Apr 13, 2007
  4. Cirene
    Replies:
    4
    Views:
    543
    Cirene
    Aug 17, 2008
  5. Stuart Kendrick
    Replies:
    2
    Views:
    383
    Stuart Kendrick
    Aug 27, 2004
Loading...

Share This Page