comicrage
March 16th, 2008, 08:12 AM
About...@gmail.com
View profile
More options Mar 15, 2:25 pm
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: About...@gmail.com
Date: Sat, 15 Mar 2008 11:25:15 -0700 (PDT)
Local: Sat, Mar 15 2008 2:25 pm
Subject: how to add javascript menu.js to usercontrol .ascx
Reply | Reply to author | Forward | Print | Individual message | Show original | Remove | Report this message | Find messages by this author
Hi,
I created a navigation menu.js in javascript. It works with .htm
files, however, I can't get it to work in my .master or .ascx file.
I added the following after the <body> tag in the master file.
<script type="text/javascript">var MenuLinkedBy="AllWebMenus
[4]",awmMenuName="topmenu",awmBN="706";awmAltUrl="";</script>
<script src="/JavaScript/topmenu.js" type="text/javascript"></script>
<script type="text/javascript">awmBuildMenu();</script>
When I run the website in debug mode, I do not see the page which uses
my master file.
I thought about adding it to my ascx header control, which occupies my
top portion of the master file.
When I added the 3 script lines to the follow usecontrol ascx file, I
still can't get it to work. Any help is greatly appreaciated.
<%@ Control Language="C#" AutoEventWireup="true"
CodeFile="Header.ascx.cs" Inherits="UserControls_Header" %>
<p align="center">
</p>
<p>
<asp:Table ID="Table1" runat="server" Width="721px"
BorderStyle="None" Height="34px">
<asp:TableRow runat="server">
<asp:TableCell runat="server">
<asp:ImageMap ID="ImageMap2" runat="server" Height="101px"
ImageUrl="~/Images/SiteLogo3.jpg"
Width="141px">
</asp:ImageMap>
</asp:TableCell>
<asp:TableCell runat="server">
<asp:TextBox ID="srchTextBox" runat="server">Search</
asp:TextBox>
</asp:TableCell>
<asp:TableCell runat="server">
<asp:Button ID="goButton" runat="server"
OnClick="goButton_Click" Text="Go" />
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</p>
Reply Reply to author Forward
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
View profile
More options Mar 15, 2:25 pm
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: About...@gmail.com
Date: Sat, 15 Mar 2008 11:25:15 -0700 (PDT)
Local: Sat, Mar 15 2008 2:25 pm
Subject: how to add javascript menu.js to usercontrol .ascx
Reply | Reply to author | Forward | Print | Individual message | Show original | Remove | Report this message | Find messages by this author
Hi,
I created a navigation menu.js in javascript. It works with .htm
files, however, I can't get it to work in my .master or .ascx file.
I added the following after the <body> tag in the master file.
<script type="text/javascript">var MenuLinkedBy="AllWebMenus
[4]",awmMenuName="topmenu",awmBN="706";awmAltUrl="";</script>
<script src="/JavaScript/topmenu.js" type="text/javascript"></script>
<script type="text/javascript">awmBuildMenu();</script>
When I run the website in debug mode, I do not see the page which uses
my master file.
I thought about adding it to my ascx header control, which occupies my
top portion of the master file.
When I added the 3 script lines to the follow usecontrol ascx file, I
still can't get it to work. Any help is greatly appreaciated.
<%@ Control Language="C#" AutoEventWireup="true"
CodeFile="Header.ascx.cs" Inherits="UserControls_Header" %>
<p align="center">
</p>
<p>
<asp:Table ID="Table1" runat="server" Width="721px"
BorderStyle="None" Height="34px">
<asp:TableRow runat="server">
<asp:TableCell runat="server">
<asp:ImageMap ID="ImageMap2" runat="server" Height="101px"
ImageUrl="~/Images/SiteLogo3.jpg"
Width="141px">
</asp:ImageMap>
</asp:TableCell>
<asp:TableCell runat="server">
<asp:TextBox ID="srchTextBox" runat="server">Search</
asp:TextBox>
</asp:TableCell>
<asp:TableCell runat="server">
<asp:Button ID="goButton" runat="server"
OnClick="goButton_Click" Text="Go" />
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</p>
Reply Reply to author Forward
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.