Click here to Skip to main content
15,919,500 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: implementing ajax in vs.net 2003 Pin
minhpc_bk19-Sep-06 14:53
minhpc_bk19-Sep-06 14:53 
QuestionHow to access the dynamically created check boxes and text boxes Pin
swapnilbhavsar19-Sep-06 1:37
swapnilbhavsar19-Sep-06 1:37 
AnswerRe: How to access the dynamically created check boxes and text boxes Pin
minhpc_bk19-Sep-06 14:45
minhpc_bk19-Sep-06 14:45 
QuestionDownload file Pin
ankamvijaya19-Sep-06 1:32
ankamvijaya19-Sep-06 1:32 
AnswerRe: Download file Pin
_AK_19-Sep-06 1:33
_AK_19-Sep-06 1:33 
Questionembed external device Pin
thelip19-Sep-06 0:37
thelip19-Sep-06 0:37 
AnswerRe: embed external device Pin
minhpc_bk19-Sep-06 14:41
minhpc_bk19-Sep-06 14:41 
QuestionMenuItem in .NET Pin
evlxtc18-Sep-06 23:46
evlxtc18-Sep-06 23:46 
I have a problem. If I have a submenu item in a menu tree and it is not in the FIRST parent menu then it does not work BUT if I add this to the first menu it works in the first as well as any other menuitem I add this submenu too? ANY ideas?

I have a sub running to pickup a onmouseclick on the menuitems.

Sub onclick()
Does something

Menuitem1
Submenu item1
Submenu item2
Submenu item3

Menuitem2
Submenu item4
Submenu item5

Submenu item 1,2,3 works fine and on a mouse click on them the sub runs, but 4,5 does not do anyhting. IF I now do the following.


Menuitem1
Submenu item1
Submenu item2
Submenu item3
Submenu item4

Menuitem2
Submenu item4
Submenu item5

THEN Submenu item 4 works fine in both the Menuitem1 as well as Menuitem2 parents. Both works. I do not WANT Submenu item4 under Menuitem1 but if I do not have it there it does not work.

ANY ideas?

Here is the almost full page code. I had to ADD all the submenues to my first parent manu jsut to get it to work, but if I take them out none of the other parent manues submenues work at all.

----------------------------------------------------------------------------------------------

<%@ Page Language="VB" %>

<script language=vbscript runat="server">

Sub NavigationMenu_MenuItemClick(ByVal sender As Object, ByVal e As MenuEventArgs)
Dim MessageTransfer = e.Item.Value
'MsgBox(e.Item.Value)
'message.text = MessageTransfer
Response.Write("<input type='hidden' id='TestString' value=" & MessageTransfer & ">")

End Sub

</script>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
</head>
<body bgcolor=white>


<!-- Place the Iframe with the top logo/banner and images here. -->
<iframe id="banner" src="images/headers/about.jpg" name="banner" frameborder="no" height="220px" width=100% scrolling=no></iframe>

<table width=100% cellpadding=0 cellspacing=0>
<tr width=100% align=left valign=top>
<td width=150>
<table cellpadding=0 cellspacing=0>
<tr>
<td>
<form id="form1" runat="server">
<div>
<asp:Menu ID="Menu1" runat="server" BackColor="#def7ff" DynamicHorizontalOffset="0" StaticPopOutImageUrl="~/popoutimage.gif"
Font-Size=Small Font-Names="Verdana" Font-Bold=true ForeColor="#2a70d6" StaticSubMenuIndent="0px" onmenuitemclick="NavigationMenu_MenuItemClick">
<Items>

<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Home" Value="home.asp"/>

<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="About Us" Value="">
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="History" Value="about/history.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Constitution" Value="about/constitution.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Executive" Value="about/executive.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Fellow and Honorary Members" Value="about/h_members.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Annual Report" Value="about/annual_report.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="AGM" Value="about/agm.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Why use an IO Psychologist" Value="about_profession/why.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Other professional Bodies" Value="about_profession/professional_bodies.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Statutory Requirements" Value="about_profession/statutory_requirements.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Online Registration" Value="conference/online_registration.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Call for papers" Value="conference/callforpapers.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Urgent" Value="news/urgent.asp" />
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Latest News" Value="news/latest.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Press Releases" Value="news/press.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Archives" Value="news/archives.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Why Join" Value="membership/whyjoin.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Membership Fees" Value="membership/fees.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Application Forms" Value="membership/application.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Gauteng" Value="regions/gauteng.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Western Cape" Value="regions/westerncape.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Kwa-Zulu Natal" Value="regions/kzn.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Advisory Committee" Value="committees/advisory.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Ethics" Value="committees/ethics.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Tariffs" Value="committees/tariffs.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Practice Framework" Value="committees/advisory.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Re-Classification of test" Value="committees/advisory.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Committee volunteer form" Value="committees/volunteer.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Continuing professional development CPD" Value="education_cpd/cpd.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Internship" Value="education_cpd/internships.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="National Board Exams" Value="education_cpd/exams.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Bursary" Value="research/bursaries.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Research Grants" Value="research/grants.asp"/>
</asp:MenuItem>

<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="About the Profession" Value="">
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Why use an IO Psychologist" Value="about_profession/why.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Other professional Bodies" Value="about_profession/professional_bodies.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Statutory Requirements" Value="about_profession/statutory_requirements.asp"/>
</asp:MenuItem>

<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="News" Value="">
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Urgent" Value="news/urgent.asp" />
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Latest News" Value="news/latest.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Press Releases" Value="news/press.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Archives" Value="news/archives.asp"/>
</asp:MenuItem>

<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Membership" Value="">
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Why Join" Value="membership/whyjoin.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Membership Fees" Value="membership/fees.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Application Forms" Value="membership/application.asp"/>
</asp:MenuItem>

<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Regions" Value="">
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Gauteng" Value="regions/gauteng.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Western Cape" Value="regions/westerncape.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Kwa-Zulu Natal" Value="regions/kzn.asp"/>
</asp:MenuItem>

<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Interest Groups" Value="interest_groups/assessment_centres.asp"/>

<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Committees" Value="">
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Advisory Committee" Value="committees/advisory.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Ethics" Value="committees/ethics.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Tariffs" Value="committees/tariffs.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Practice Framework" Value="committees/advisory.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Re-Classification of test" Value="committees/advisory.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Committee volunteer form" Value="committees/volunteer.asp"/>
</asp:MenuItem>

<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Education/ CPD" Value="">
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Continuing professional development CPD" Value="education_cpd/cpd.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Internship" Value="education_cpd/internships.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="National Board Exams" Value="education_cpd/exams.asp"/>
</asp:MenuItem>

<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Research" Value="">
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Bursary" Value="research/bursaries.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Research Grants" Value="research/grants.asp"/>
</asp:MenuItem>

<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Journals" Value="journals/index.asp"/>

<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Events" Value="">
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Online Registration" Value="conference/online_registration.asp"/>
<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Call for papers" Value="conference/callforpapers.asp"/>
</asp:MenuItem>

<asp:MenuItem ImageUrl="~/frontbuttons.gif" Text="Contact Us" Value="contact/index.asp" />

</Items>
<StaticSelectedStyle BackColor="#2a70d6" />
<StaticMenuItemStyle HorizontalPadding="0px" VerticalPadding="0px" />
<DynamicMenuStyle BackColor="#def7ff" />
<DynamicSelectedStyle BackColor="#def7ff" />
<DynamicMenuItemStyle HorizontalPadding="0px" VerticalPadding="0px" />
<DynamicHoverStyle BackColor="#31ade9" Font-Bold="True" ForeColor="#ffffff" />
<StaticHoverStyle BackColor="#31ade9" Font-Bold="True" ForeColor="#ffffff" />
</asp:Menu>
</div>
</form>
</td>
</tr>
<tr>
<td>
<!-- Place the current IFRAME for the loggin and security menu here -->
<iframe id=LoginMenu frameborder=no src="" width="150px" height="300px" scrolling=no></iframe>
</td>
</tr>
</table>
</td>
<!-- the main frame where the different pages needs to be displayed -->
<td align=centre bgcolor="#31ade9">
<iframe id=MainIframe src="home.asp" height=550px width=100% marginwidth=0 frameborder=0 scrolling=auto></iframe>
</td>
</tr>
</table>
<%--<asp:Label ID=message runat=server></asp:Label>--%>
</body>
<script language="javascript">
//alert(TestString.value);
if(TestString.value != ""){
//alert(TestString.value);
MainIframe.location.replace(TestString.value);
}

</script>
<script language="vbscript">

'Place the session code here to determin what menu for logged in users to display.
Sub window_onload()
Dim PersonID
Dim Member
Dim AdminMenu
PersonID = "<%=Session("person_id")%>"
Member = "<%=Session("Member")%>"
AdminMenu = "<%=Session("AdminUser")%>"
if AdminMenu = "yes" then
top.document.all.LoginMenu.contentWindow.location = "AdminMenuFrame.asp"
elseif Member = "yes" then
top.document.all.MenuFLoginMenurame.contentWindow.location = "MemberMenuFrame.asp"
else
if Member = "no" then
top.document.all.LoginMenu.contentWindow.location = "GuestMenuFrame.asp"
else
top.document.all.LoginMenu.contentWindow.location = "Login.aspx"
end if
end if
End Sub
</script>
</html>


this is me
AnswerRe: MenuItem in .NET Pin
minhpc_bk19-Sep-06 14:38
minhpc_bk19-Sep-06 14:38 
GeneralRe: MenuItem in .NET Pin
evlxtc19-Sep-06 19:49
evlxtc19-Sep-06 19:49 
QuestionCaleneder problem Pin
dany.s18-Sep-06 23:17
dany.s18-Sep-06 23:17 
AnswerRe: Caleneder problem Pin
Karmendra Suthar19-Sep-06 0:42
Karmendra Suthar19-Sep-06 0:42 
QuestionMouse click in Treeview control(ASP.net server control) Pin
SysJey18-Sep-06 22:46
SysJey18-Sep-06 22:46 
AnswerRe: Mouse click in Treeview control(ASP.net server control) Pin
minhpc_bk19-Sep-06 1:41
minhpc_bk19-Sep-06 1:41 
QuestionTextbox with newline Pin
Socheat.Net18-Sep-06 22:15
Socheat.Net18-Sep-06 22:15 
AnswerRe: Textbox with newline Pin
Karmendra Suthar18-Sep-06 22:20
Karmendra Suthar18-Sep-06 22:20 
AnswerRe: Textbox with newline Pin
_AK_18-Sep-06 22:32
_AK_18-Sep-06 22:32 
QuestionWhy isn't Linq working? Pin
dy1318-Sep-06 22:11
dy1318-Sep-06 22:11 
AnswerRe: Why isn't Linq working? Pin
minhpc_bk19-Sep-06 1:02
minhpc_bk19-Sep-06 1:02 
QuestionPopulating ImageBox from dataset Pin
Irshad Sulaimani18-Sep-06 20:40
Irshad Sulaimani18-Sep-06 20:40 
AnswerRe: Populating ImageBox from dataset [modified] Pin
Vicky Roberts18-Sep-06 22:26
Vicky Roberts18-Sep-06 22:26 
QuestionMore than one web.config Pin
psamy18-Sep-06 20:22
psamy18-Sep-06 20:22 
AnswerRe: More than one web.config Pin
_AK_18-Sep-06 20:28
_AK_18-Sep-06 20:28 
QuestionPlz check !!!! EMail Failure for some domains. *****Very Urgent***** [modified] Pin
cups18-Sep-06 19:51
cups18-Sep-06 19:51 
QuestionUnable to start debugging on WebServer Pin
Karmendra Suthar18-Sep-06 19:50
Karmendra Suthar18-Sep-06 19:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.