Click here to Skip to main content
15,899,474 members

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