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


Top 5 Contributors of the Month
Easy Web
Imran Ghani
Post New Web Links

Sharepoint Webpart Drop Down Menu

Posted By:      Posted Date: October 25, 2010    Points: 0   Category :SharePoint
 

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>
<center>
<form>
  <p><select name="section" size="1" language="javascript" onChange="gotoPage(this.selectedIndex);">
  <option selected>Select Website:</option>
  <option>- - - - - - - - - - - - - - - - -</option>
  <option>Microsoft Home Page</option>
  <option>Google</option>
  </select></p>

</center>
<script language="JavaScript">
<!--
function gotoPage(varItem)
{
  switch(varItem)
  {
    case 0:
      window.parent.self.status="Goes Nowhere";
      break;
    case 1:
.      window.parent.self.status="Goes Nowhere";
      break;
    case 2:
      window.op


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?


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

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.

Drop Down menu connected to Sharepoint list with multiple columns

  

Hello,

 

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!

 

Kyle


Can I open the "new" menu in a SharePoint Document Library using Dragon NaturallySpeaking?

  

When a user, who uses Dragon NaturallySpeaking, says "new" when viewing a Document Library the default content type is selected and the associated application (e.g. Microsoft Word) is launched. This scenario is okay for Content Type selection since the Microsoft Office applications will prompt for the metadata once the file is saved.

If the user needs to create new folders in the Document Library however they need to expand the "new" dropdown menu.

What is the best way for someone using Dragon NaturallySpeaking to expand the "new" menu for a Document Library in SharePoint?


how do i create a webpart for sharepoint 2010 that allows users to create their own subsite..

  

hi!

how do i create a webpart for sharepoint 2010 that allows users to create their own subsite..

for e.g..

i create a webpage in vs 2010 which allows users to create their account by specifying username and password..and make it a webpart and after that for that user a subsite should be created under sharepoint 2010 top level site.....how could i achieve that..


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?


Displaying the Server Ribbon and Site Actions Menu on Customized Search Pages Upgraded to SharePoint

  
Learn how to add the Site Actions menu and SharePoint Server ribbon to SharePoint Server 2007 search pages that you upgrade to SharePoint Server 2010 by using visual upgrade.

the problem of silverlight sildeshow webpart in sharepoint

  

I added this silverlight sildeshow webpart (http://www.sharepointevolved.com/blog/Lists/Posts/Post.aspx?List=0586f39d%2Dc3f2%2D4f6c%2Db61f%2D2a33a3fcd95c&ID=27) which  customized a SharePoint data form web part with XML and XSLT to my sharepoint site which uses Active Directory authentication. it looks great (I published the webpage). but after I logout the system account, and login as my regular account with Read permission. the silverlight webpart can't show up. I check the permission of the Picture Library. there is no problem. I can see the pictures in the Picture Library with my regular account.
Anybody has the same problem? how to fix it?

Thanks
Sean


No "Site Actions" Menu Available in Sharepoint 2007

  
I installed Sharepoint Designer 2007 on my home pc. It does not have the "Site Actions" menu. I originally created my Web site (I upload files via FTP) using MS Frontpage. How do I change the theme created in MS Frontpage? Or, how do I find the "Site Actions" menu?

Any help will be appreciated.

B Goldberg

the problem silverlight sildeshow webpart in sharepoint

  

I added this silverlight sildeshow webpart (http://www.sharepointevolved.com/blog/Lists/Posts/Post.aspx?List=0586f39d%2Dc3f2%2D4f6c%2Db61f%2D2a33a3fcd95c&ID=27) which  customized a SharePoint data form web part with XML and XSLT to my sharepoint site which uses Active Directory authentication. it looks great (I published the webpage). but after I logout the system account, and login as my regular account with Read permission. the silverlight webpart can't show up. I check the permission of the Picture Library. there is no problem. I can see the pictures in the Picture Library with my regular account.
Anybody has the same problem? how to fix it?

Thanks
Sean


silverlight sildeshow webpart in sharepoint

  

I added this silverlight sildeshow webpart (http://www.sharepointevolved.com/blog/Lists/Posts/Post.aspx?List=0586f39d%2Dc3f2%2D4f6c%2Db61f%2D2a33a3fcd95c&ID=27) which  customized a SharePoint data form web part with XML and XSLT to my sharepoint site which uses Active Directory authentication. it looks great (I published the webpage). but after I logout the system account, and login as my regular account with Read permission. the silverlight webpart can't show up. I check the permission of the Picture Library. there is no problem. I can see the pictures in the Picture Library with my regular account.
Anybody has the same problem? how to fix it?

Thanks
Sean


PowerShell script to add/edit ContentEditor webpart on SharePoint 2010

  
Hi all, I'm new to PowerShell scripting with SharePoint. Following are the requirements that were given to me. Can any one direct me in the right direction interms of writing the script and how to save and execute the script? I am aware of Cmdlets. 1. Cycle through all sites in site collection 2. For each site, retrieve all document libraries 3. Look for specific CMV document library name (ie value communication, key business drivers, etc)          o add content editor web part if doesn't exist          o add/update appropriate description based on the document library name Thanks in advance...

Overriding web.config in sharepoint webpart/using custom membership in web part

  
I'm developing a web part for MOSS 2007. The web part is being deployed to a web application which utilizes forms-based authentication, and role/membership providers to control users. The membership table has been edited to include addition user info (I am aware, that this isn't the best way to handle additional user, i.e. profiles etc., however, this is a requirement from another department). Since my web part needs to access this information, I was thinking of implementing a custom membership provider. So far I've followed: http://msdn.microsoft.com/en-us/library/6tc47t75.aspx and I've got my custom membership class, and a very stripped down membershipprovider-class. But how do I enable/use this membership provider in my web part? I've tried creating a simple web.config in the "WebPartCode" folder of my solution, next to my webpart code file, with connection string and membership provider tags. But I don't even really know how to build/reference/use the membership provider itself, so I don't know what else I need to do. I've built a C# class library project with the two classes (membershipprovider and custom membershipuser) and compiled it and installed it in the global assembly cache - is this correct? and how do I access them from here? Hope someone can help

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

Sharepoint Crystal Report Webpart

  
Hi, I have deployed crystal report web part in live server sharepoint site.using .rpt file method. When i select the rpt file the system does not show the data and graph anything So kindly give me the idea to recover from this issue Regards S.Madeswaran    

Add webpart programmatically to page in sharepoint

  
Hi How to add webpart programmaticaly in sharepoint ? CheersMomo
Categories: 
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