15,899,474 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by asbis (Top 9 by date)
asbis
7-Jan-14 3:38am
View
When u select any image you want to display Pre-View of that image
Is that you looking for ??
asbis
5-Dec-13 5:40am
View
what error you are getting while uploading image?
asbis
3-Sep-13 8:33am
View
try to use servwer.mappath
asbis
6-Mar-13 23:37pm
View
Himy code ..
1) css code
<style type="text/css">
.MenuDefaultMenuItemStyle
{
background-color: #D5DCE1;
color: #234875;
padding: 2px;
width: 100%;
}
.MenuDefaultSelectedStyle
{
background-color: #3C5778;
color: #FFFFFF;
padding: 2px;
width: 100%;
}
.MenuDefaultHoverStyle
{
background-color: #666666;
color: #FFFFFF;
padding: 2px;
width: 100%;
}
.MenuVerticalMenuItemStyle
{
background-color: #FFFFFF;
border: 1px solid #D5DCE1;
color: #234875;
height: 30px;
padding: 2px;
width: 100%;
}
.MenuVerticalSelectedStyle
{
background-color: #003366;
border: 1px solid #D5DCE1;
color: #FFFFFF;
height: 30px;
padding: 2px;
width: 100%;
}
.MenuVerticalHoverStyle
{
background-color: #EEEEEE;
border: 1px solid #000000;
color: #234875;
height: 30px;
padding: 2px;
width: 100%;
}
</style>
2) This is my menu
<asp:Menu ID="myCustomMenu" runat="server" RenderingMode="Table" Orientation="Horizontal"
Width="1005" IncludeStyleBlock="true">
<items>
<asp:MenuItem Text="Menu1" Value="Menu1">
<asp:MenuItem Text="Menu1.1" Value="Menu1.1" NavigateUrl="~/Default.aspx">
<asp:MenuItem Text="Menu1.2" Value="Menu1.2">
<asp:MenuItem Text="Menu1.3" Value="Menu1.3">
<asp:MenuItem Text="Menu2" Value="Menu2">
<%--<asp:MenuItem Text="Menu2.1" Value="Menu2.1">--%>
<asp:MenuItem Text="Menu3" Value="Menu3">
<asp:MenuItem Text="Menu3.1" Value="Menu3.1">
<asp:MenuItem Text="Menu3.2" Value="Menu3.2">
<asp:MenuItem Text="Menu3.3" Value="Menu3.3">
<asp:MenuItem Text="Menu4" Value="Menu4">
<%--<asp:MenuItem Text="Menu4.1" Value="Menu4.1">--%>
<%-- <staticmenuitemstyle horizontalpadding="40px" verticalpadding="5px" width="20pt"
="" backcolor="#C3C3C3" borderwidth="1.1pt" bordercolor="#323232">
<dynamicmenuitemstyle horizontalpadding="40px" verticalpadding="5px" width="80pt"
="" backcolor="#C3C3C3" borderwidth="1.1pt" bordercolor="#323232">--%>
<staticmenuitemstyle cssclass="MenuDefaultMenuItemStyle">
<dynamicmenuitemstyle cssclass="MenuDefaultMenuItemStyle" width="80pt">
<staticselectedstyle cssclass="MenuDefaultSelectedStyle">
<dynamicselectedstyle cssclass="MenuDefaultSelectedStyle">
<statichoverstyle cssclass="MenuDefaultHoverStyle">
<dynamichoverstyle cssclass="MenuDefaultHoverStyle">
when i click on Text "Menu1.1" it redirect to "Default.aspx" page,But when i click outside the text it is not redirecting.
Actualy i want if user clicks on Text or outsite the text of any menu item page get reidirects.
Any idea how do i achive this functionality.
asbis
10-Dec-12 11:03am
View
Any other better solution for this
asbis
21-Nov-12 0:22am
View
Still it is not wrorking for me in IE7
Actualy i have to use Dropdownlist instead of listbox.
Any idea why it is not working for me?
asbis
16-Nov-12 8:11am
View
I am also using same IE7 ,but still it is not working for me :(
asbis
16-Nov-12 8:10am
View
Hi Ravi
which browser you are using for this?
Bcz im using iE7 and it not working for me
:(
asbis
16-Nov-12 8:09am
View
HI Rabi
this same code which im using but still it is not working for me in IE7.
I am using IE7 browser.
Any idea ???
Show More