.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Force a menu NOT to drop OR to roll up again ???

Posted By:      Posted Date: October 22, 2010    Points: 0   Category :Windows Application

I have an app. running in different modes - normally it runs in DRIVE mode and normal users should ONLY use this mode.

I have a menu where "a skilled user CAN change the mode" and I shows a messagebox to ask if he's sure he wants to change the mode and there is a YES and NO button.

If he clicks the menu is allready down and he can choose new mode - that's OK.

But if he chooses NO then I want to FORCE the menu to roll up again - sometimes it does but mostly it don't automatically (it seems like it rolls up automatic every 2. time )

How can I force it up OR better, not drop it down until the user clicks YES-button ?

Best regards KSor, Denmark

View Complete Post

More Related Resource Links

Add edit drop down menu so I can edit pdf files in SharePoint


I have a pdf file that I'd like to open and edit.  The pdf file just opens, and doesn't ask if it should be opened as a read only or edit option.  My colleague is able to select edit mode as a drill down, but I can't figure out how to add this functionality into my document library... does anyone have a solution?

wss2.0 edit drop-down menu does not display


Hi all

I have a user who is unable to view the edit drop-down menu next to documents in a document library.

The user was able to view the drop-down before, but it seems since upgrading to either Office 2007 or IE7 that the problem is occuring. The user is an administrator on the site so it doesn't seem to be permissions issue.

I have had the user run an Office Diagnostics but this did not resolve the problem.

Any ideas please?

drop down menu is hidden

i have a drop down menu which opens onMouseOver but it is hidden even after setting the z-index property ... Menu is in master page and in the content page it is hidden i am using IE7.   Master Page    <head runat="server"> <title>Welcome to SLK Video Library</title> <meta http-equiv="Page-Enter" content="blendTrans(Duration=0.1)" /> <link href="styles/style.css" rel="Stylesheet" type="text/css" /> <asp:ContentPlaceHolder ID="head" runat="server"> </asp:ContentPlaceHolder> <style type="text/css"> .style1 { width: 662px; } </style> <script type="text/javascript" language="javascript"> function DoPostBack() { // alert('hi'); // __doPostBack('btnSearch'); $get('btnSearch').click(); } var DDSPEED = 10; var DDTIMER = 15; // main function to handle the mouse events // function ddMenu(id, d) { var h = document.getElementById(id + '-ddheader'); var c = document.getElementById(id + '-ddcontent'); clearInterval(c.timer); if (d == 1) { clea

Change language, or change homepage? And drop down menu?

Hello I just startet using Sharepoint Server 2010, and im having a little problem with the default homepage. I want to change the language to danish or make a new home page in danish? I also want to make drop down menu's at the top bar?   Thanks in advice...

Can not show image in Filter drop down menu in SPGridView - Sharepoint 2007

Hi, I can not show image in the filter drop down menu (at header) of SPGridView in Sharepoint 2007.  For example: I have 3 rows as "_layout/images/1.gif", "_layout/images/2.gif", "_layout/images/3.gif". When user click on the column's header, the SPGridView just displayed filter menu and it always displayed the text (_layout/images/1.gif) not an image as I expected. So please help me to solve this problem. Thanks a lot Dan

Is it possible to add the drop down edit menu that appears from a single page to the page edit toolb


I am running Sharepoint 2007 and wondered if it is possible to add the "edit" drop down menu that appears from a single page—the one that contains edit properties, check out, publish a major version, etc—into the page edit toolbar, which is the one that contains the page, workflows, and tools drop downs.  I found the article that provided the code to add a "links" menu and quick buttons, but didn't know if it was possible to add the edit menu or, if so, what code would be necessary.

The reason I want to add it is for page creators to be able to access that menu's options without having to first navigate back to the pages library.

Thanks in advance!

Sharepoint Webpart Drop Down Menu


I have created a content editor webpart with a dropdown menu where the user chooses a website from the list to go to. When I choose any of the options it will not open the page/website selected. I must be missing something in the following source editor code:

<h3 align="center">Select Website:</h3>
  <p><select name="section" size="1" language="javascript" onChange="gotoPage(this.selectedIndex);">
  <option selected>Select Website:</option>
  <option>- - - - - - - - - - - - - - - - -</option>
  <option>Microsoft Home Page</option>

<script language="JavaScript">
function gotoPage(varItem)
    case 0:
      window.parent.self.status="Goes Nowhere";
    case 1:
.      window.parent.self.status="Goes Nowhere";
    case 2:

Display subsites as drop down menu in top navigation



I want to display subsites as drop down menu in top navigation can any one help me please

Edit in Microsoft SharePoint Designer on the drop-down menu doesn't work


I am trying to launch Designer via Site Actions > Site Settings > Master Pages Gallery > right click and select Edit In SharePoint Designer.  Instead of launching Designer it launchs Microsoft word.  I am the site collection administrator and I do have Designer on my computer.  Can anyone tell me why this short cut doesn't work? 

There are no mistakes; every result tells you something of value about what your are trying to accomplish.

Null values doesnot show up in custom edit form in a drop down choice menu


Hello guys,

I have a problem. I don't know why custom edit form is behaving like that.

I have a choice drop down with values  " ","Yes","No". For custom  new form, I can insert null values and everything is working fine.

But coming to this custom edit form which I created.  While editing, if we set a value to null and submit the form. It is getting the "Yes" as the value. It is skipping the null value and placing the "Yes" value. I have kept the default value for choice drop down as " ".(null too).

I don't know why it is not showing null value. Do guys have any idea or if came across anything like this. Please help

Creating a drop down menu with a variable range of cells in excel using Visual Basic


I can create a drop down menu using a range of cells as follows:

    With Selection.Validation
        .Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
        xlBetween, Formula1:="=$G$2:$G$10"
        .IgnoreBlank = True
        .InCellDropdown = True
        .InputTitle = ""
        .ErrorTitle = ""
        .InputMessage = ""
        .ErrorMessage = ""
        .ShowInput = True
        .ShowError = True
    End With

I would like to create the drop down with a range of cells using variables.  For instance, in the line which contains $G$2:$G$10, I would like to substitute something like range(cells(1,2),cells(x,2)) to allow me to change the length of the menu depending on how much data has been entered.  Does anyone know how I can do this?


Drop Down menu connected to Sharepoint list with multiple columns




I have a sharepoint list with 2 columns (employee name and employee phone #).  Is there any way to have a drop down list with the employee name and then right next to it have a text box show the employee telephone number?  i.e. if I choose my name from the drop down list, my phone number will show up right next to my name.  Thanks!



Using Drop down menu in a grid view control for entering new data


I wish to use drop down menu(based on a table of my database) to update/insert data in a web form. The data is then fetch in to SQL table (Express).

How to do it ? 

Simple search with drop down menu to choose which column to search on?


Hi - just getting back in to web development after several years away from it (and the last time I did this it was classic ASP, help!).

Basically using Microsoft web developer 2010 to do a simple search against a db. I have one textbox and one drop down menu (which will be used to choose which column in the db to search against).

I have the textbox only search working but don't know how to implement the dropdown menu part?

Code so far (the drop down has just been added to the form here nothing more):

Really appreciate any help thanks:

<%@ Page Language=&quot;VB&quot; AutoEventWireup=&quot;false&quot; CodeFile=&quot;Default.aspx.vb&quot; Inherits=&quot;Bield_Projects_Telephone_Default&quot; %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Binding the multiple drop down boxes in GridView using JQuery in ASP.NET

Here is the code for binding the multiple drop down boxes in GridView using JQuery in ASP.NET

ASP.NET Menu with jQuery Superfish

Choosing the right type of menu for a website is not easy at all. The ASP.NET Menu Control is definitely NOT a good starting point due to the horrendous markup it renders, nor is it good for SEO because of the Markup/Content ratio, neither can it be easily styled.

Problem making Role based Menu in MVC application



 I want to make Rolebase menu in MVC such that if user doesnot have permission for some action then that Action name shouldnot be shown in the Menu.

 I have used the code in the url(http://forums.asp.net/t/1566328.aspx) in my MVC application.My application is a Discussion Forum(in MVC) same functionality as in this forum forums.asp.net

 I have used Controllers for post, thread etc.In each controller there are some actions that are using [Authorize(Roles)] attribute

 but this coding does not count  those Actions in Controllers having Authorize attribute according to the url http://forums.asp.net/t/1566328.aspx 

 In the code, Authorize attribute is applied to Controller class, but my requirement is of Applying Authorize attribute to some actions in controller so that some are available for all users and  some links are available rolewise.Now what is the solution for that?



ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend