Drop Down web part

I need to create a sharepoint dropdown web part. It is going to display a field for one of my lists. When someone selects a value it is going to display the display page for that item.  I just want to make sure there is not some great way that I am
missing to do this. Any insight would be appreciated.

DropDownList drpList;
        protected
override void CreateChildControls()
            drpList
= new DropDownList();
            SPSite site
= SPContext.Current.Site;
            SPWeb web
= site.RootWeb;
            SPList list1
= web.Lists["Courses"];
            var listitems
= list1.Fields["Course Name"];
            drpList.DataSource
= listitems;
            drpList.DataTextField
= "Course Name";
            drpList.DataValueField
= "Course Name";
            drpList.DataBind();
            Controls.Add(drpList);
On dropdown selected index change set the value.
void ddlAllLists_SelectedIndexChanged(object sender,
EventArgs e)
            try
               //set the selected value and logic
            catch
(Exception ex)
LogManager.WriteLog(" Error in EventCalendarWebPart.cs ddlAllLists_SelectedIndexChanged()"
+ ex.ToString());

Similar Messages

  • Drag'n'Drop on Web Parts In Edit Mode Not Working When X-US-Compatible Is IE=11

    Hello,
    when the compatibility settings are above IE=10 the web parts cannot be moved between/within the web part zones.
    Steps I have done to reproduce this on clean environment:
    Created a new sharepoint publishing portal
    Tested on the default page that web parts can be moved in IE 11
    Downloaded the master page seattle from gallery
    Replaced the following line:
     <meta http-equiv="X-UA-Compatible" content="IE=10"/>
    with:
      <meta http-equiv="X-UA-Compatible" content="IE=11"/>
    Uploaded the master page to the gallery.
    Published major version.
    Entered edit mode on the default page.
    The web parts cannot be drag'n'dropped.
    Do you have any idea about a fix for this?
    Thanks.

    Every application can't come automatically configured to work with every other application, even if they're both from MS. Tweaks here and there are going to be required. If you go in and make a settings change and then everything works fine, I would call
    that "fully supported."
    Also, you WANT a solution that doesn't require IE changes, fine. But did you at least try and see if these changes affect anything? We need to at least do our due diligence in troubleshooting and root causing before we can ask for particular solutions my
    friend.

  • The tabs have been moved to the top of the screen. I want to move them to the bottom like before. I am having a continuous battle with my drop down webcamera command box dropping over my tabs.

    The Firefox tabs used to be at the bottom of my screen. Now they are at the top and as I open more sites the tabs walk from left to right across the top. There comes a point where the pointer command triggers a drop down web camera box to appear. This box does not disappear quickly nor can I can access to the tabs under the camera command box. No, I can move the camera command box as then it is in the way on either the right or left hand side of the screen impacting other commands.

    For some reason it's the new FF default. Follow this menu chain to toggle it off. <br />
    For Mac:<br />
    View | Toolbars | Tabs on Top. <br />
    For Win:<br />
    Control-Click on any empty area of the Tab Strip to bring up the Customize Toolbar window.<br />
    Click Tabs on Top.<br />
    Now is also a good time to move the Home, Refresh and Stop icons back over to the left. Click Customize ... , grab them, drag them over, click Done.<br />
    Cheers.

  • Display look up column as drop down list in a web part in SharePoint 2013

    Hi,
    I have a look up column in SharePoint 2013 calendar list.I want to show that field with values in the page as drop down list to filter the data based in selected value.
    Is it possible through OOB or javascript.
    Please help .
    Thank you.

    Hi  ,
    According to your description, my understanding is that you want to  filter a calendar based a look up column in SharePoint 2013.
    Calendar View not support OOTB filters connection. it is disabled for calendar view, you need to change view(not calendar view) so OOTB filters works and get connected to your view.
    You can achieve this using combination of jQuery and SharePoint OOB techniques.
    For jQuery filters refer to the  blog: enter SharePoint List Filters using jQuery
    Also you can filter Calendar View Web Part using JQuery and SPServices:
    http://blogs.visigo.com/chriscoulson/filter-a-sharepoint-calendar-list-with-a-date-picker/
    http://joshmccarty.com/2011/11/sharepoint-jquery-and-fullcalendar%E2%80%94now-with-spservices/
    http://spservices.codeplex.com/discussions/258846
    Another  way, you can have a look at the SPFilterCalendar :
    http://www.aasoftech.com/SitePages/How%20to%20Filter%20SharePoint%20Calendar%20Dynamically.aspx
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Drop down arrows on web parts don't appear to do anything. Bad installation? (2 questions)

    I am working with SharePoint 2010 Foundation.  When I add a web part (a library, list, calendar, etc.) to the main page of my site, the body of the web part is fine.  However, there's a problem with the drop down arrow on the far right side of
    the Title of the web part.  The last installation of SharePoint 2010 I worked with, that drop down arrow called up the Web Part Menu.  In this current installation, it does nothing.  This makes it difficult to define a view for the web page.
    I'm assuming that the installation of SharePoint Foundation 2010 didn't quite work right or my security is set incorrectly.  (SharePoint is new to the organization and I have the best user skills.)  What does IT need to do to make the menu appear?
    I also have SharePoint Designer 2010 installed on my desktop.  I can open Web Part Properties in SharePoint Designer 2010, but Views does not appear on this menu, either.  Is this just a limitation with SharePoint Designer 2010, or is this something
    that IT also needs to fix (and how)?
    Fredrik V Coulter MOS (Excel 2007), MOCMI (2003), MOCE (Acess, PowerPoint, Word, Excel 97), MCP (2.0)

    Hi Fredrik,
    add the sharepoint site to the  Compatibility View mode in your browser.
    I'm sure that you know how to do it but well... here: http://windows.microsoft.com/en-us/internet-explorer/use-compatibility-view#ie=ie-11
    It looks like you are using Internet Explorer 11...
    Best regards.

  • Drop Down Filter Web Part

    In Order to improve navigation of my Share point list I need drop down filter web part. How can I make one? Is there an out of the box Filter web part to provide that function? I used Choice Filter web part that is not exactly do what I need. 

    Hi Karan,
    With OOB filter web part, we have the following kinds:
    Text filter   
    Date filter   
    Choice filter   
    Current user   
    SharePoint list
    You could refer more information about them in the article below:
    https://support.office.com/en-au/article/Connect-a-Filter-Web-Part-to-a-List-View-Web-Part-1aabfd67-2e2e-4912-9230-6cb43a2c140a
    If Choice filter web part does not match your situation, please provide more specific information about your requirement.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Where is the drop down list with "edit web part" for a list??

    In Sharepoint 2010, there was a drop down list to the far right of a list.  One of the options was to Edit Web Part.  In Sharepoint 2013, I can't find the drop down list.  Nothing is to the right of my list and mouse overs down't reveal
    anything.  I am trying to get to that area to change my toolbar type.  Any clues as to where the "edit web part" has gone to?

    I've been able to edit Web Part properties for weeks, but a few days ago, I could no longer do it, either by using the checkbox in the upper right corner of the web part or by using Web Part Properties in the Web Part tab.  It's greyed out.
    Then yesterday I could do it again and today I can't.   An intermittent problem!
    No one has changed any Sharepoint Admin settings.
    Anyone have any ideas?  They would be greatly appreciated.

  • My home page is MSN and whenever I scroll down the page, the "Bing Web Search" menu drops down and covers part of the page in Windows XP. How can I prevent this from happening?

    ''locking as a duplicate - https://support.mozilla.com/en-US/questions/811325''
    This only happens on the home page. The drop down appears as soon as the "Bing Web Search" at the top of the page disappears as one scrolls down the page and remains visible until I scroll all the way back to the top of the home page.

    Try to use the SearchReset extension to reset some preferences to the default values.
    *https://addons.mozilla.org/firefox/addon/searchreset/
    Note that the SearchReset extension only runs once and then uninstalls automatically, so it won't show on the "Firefox > Add-ons" page (about:addons).
    If you do not keep changes after a restart then see:
    *http://kb.mozillazine.org/Preferences_not_saved

  • Refreshing drop down list in a web template based on a query view

    Refreshing drop down list in a web template based on a query view  
    I have just developed my first set of portal pages displaying the results of Bex queries and query views in the SAP Netweaver portal. I developed the pages using web application designer. Each web template created with W.A.D is using a query or query view. In one template I have that is using a query view I am using a variable in my Bex query. This variable is of type customer exit, is set to variable is ready for input and calls some ABAP code which returns the current fiscal week number and year. When I run the query or query view in isolation through Bex analyzer the variables gets populated correctly. In my web template I have associated my variable from my query view to a drop down list box. However when I run the Iview created from this template the query results get refreshed but my drop down list box does not, it still shows last weeks week number. How do I get the drop down list box to refresh with the latest result from my customer exit variable?
    Regards
    Collin

    Hi  ,
    According to your description, my understanding is that you want to  filter a calendar based a look up column in SharePoint 2013.
    Calendar View not support OOTB filters connection. it is disabled for calendar view, you need to change view(not calendar view) so OOTB filters works and get connected to your view.
    You can achieve this using combination of jQuery and SharePoint OOB techniques.
    For jQuery filters refer to the  blog: enter SharePoint List Filters using jQuery
    Also you can filter Calendar View Web Part using JQuery and SPServices:
    http://blogs.visigo.com/chriscoulson/filter-a-sharepoint-calendar-list-with-a-date-picker/
    http://joshmccarty.com/2011/11/sharepoint-jquery-and-fullcalendar%E2%80%94now-with-spservices/
    http://spservices.codeplex.com/discussions/258846
    Another  way, you can have a look at the SPFilterCalendar :
    http://www.aasoftech.com/SitePages/How%20to%20Filter%20SharePoint%20Calendar%20Dynamically.aspx
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • SharePoint Hosted App - Creating cascaded drop down on hosted web lists

    Hi,
    I have created an SharePoint Hosted App(Javascript Object Model) that creates lists on the host web.
    I need to put some javascript into new and edit forms in order to create the cascaded drop down effect on 2 lookup fields.
    Can you please give me some advise?
    Regards,
    Marian

    Hope below article should help you
    http://blog.pentalogic.net/2010/11/editing-the-sharepoint-list-item-menu-part-2-using-javascript/
    http://www.getinthesky.com/2014/03/hide-text-field-sharepoint-form-using-jquery/
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/030471b2-d19a-470f-9a9e-0fd8a229138b/how-do-i-create-a-new-item-form-that-allows-to-save-and-continue-editing?forum=sharepointcustomizationlegacy

  • Drop down in allready displaying table in web dynpro

    Hi Experts,
    We have  a requirement where we are displaying the data of the table KNA1 in a table form (Web dynpro) which is editable.for the field NAME1 there must be drop down box which contain some values , so that for any row user can select one of the value and then when press SAVE button the table KNA1 should be updated with the new value of NAME1.
    Can you please let us know how to do this.
    Thanks
    Mahesh

    >Can you please let us know how to do this.
    Which part of what you describe and what exactly are you having problems with.  You can of course change the cell editor of your column to DDLB.  Is that where you are having problems.  Or are you trying to decied between DDLBByKey and DDLBByIndex.  For that I would suggest you read the following:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/bb/69b441b0133531e10000000a155106/frameset.htm

  • SCCM web Report drop down

    hi ALL 
    I have sccm 2012 in my setup , i have given web access for certain reports to helpdesk team
    when they are looking for report drop down shows all collections created .i need to limit only collection required view for them in Drop down box  
    ankith

    no CM12 Sp1
    is there any thing new for R2 on reporting parts
    Yes, I know this is an old post, I'm trying to clean them up. <o:p></o:p>
    Yes, in CM12R2, RBA is now implemented in reporting (default report; for custom report they
    will need to be re-write to leverage RBA.)<o:p></o:p>
    This blog post will show you more details. <o:p></o:p>
    http://be.enhansoft.com/post/2013/10/21/Role-Based-Administration-(RBA)-Reporting-Feature-in-SCCM-2012-R2.aspx<o:p></o:p>
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • Drop-down box does not work with Web GUI

    Situation:
      On CE5 (ECC 5.)-> transaction "MM02"
                     -> click on drop-down for "Material"
                     -> see distorted pop-up
    Solution:
      apply kernel patch #144.
      ITS is part of the Basis, starting with WebAS 6.40

    You wouldn't happen to be using Vista's Home Edition are you?  I work from home and have Vista Home on one of my PC's and it has the same issue when I'm connected to 2004s systems.  Vista Home isn't supported.  Only Vista Prof.  Oddly, if I'm using the same GUI to attach to 4.6C releases, I don't have this issue.

  • How do I create a dependant drop down in a web form?

    I am trying to add a web form to a web page that includes a dependant drop down menu. For example, I'd like there to be a drop down menu called "Interested Class" with three fields: "Tribe Fit", "Tribe Life" and "Tribe Core". When a user selects one of these fields ("Tribe Fit" for example), I want a new drop down menu to appear with the following choices: "7:00am", "12:30pm", "7:00pm".
    I have attempted this here and as you can see it's not working at the moment. The time drop down fields should be hidden until an "Interested Class" has been selected.
    http://www.cityfitness.com.au/nicole-form-test?Preview=True
    I've placed my JS code in the HTML view of the actual web page as I noticed when I place it in the actual custom form it doesn't carry through to the page. I don't know if I'm placing my JS in the correct place though.
    Here is a snippet of my code if it helps:
    <tr>
                            <td><label for="CAT_Custom_328771">Interested Class</label><br />
                            <select name="CAT_Custom_328771" id="CAT_Custom_328771" class="cat_dropdown">
                            <option value=" ">-- Please select --</option>
                            <option value="Tribe Fit">Tribe Fit</option>
                            <option value="Tribe Life">Tribe Life</option>
                            <option value="Tribe Core">Tribe Core</option>
                            </select>
                            </td>
                        </tr>
                        <tr>
                            <td>
                            <div id="fit" class="times">
                            <select>
                            <option value="7:00am">7:00am</option>
                            <option value="12:30pm">12:30pm</option>
                            <option value="7:00pm">7:00pm</option>
                            </select>
                            </div>
                            <div id="life" class="times">
                            <select>
                            <option value="7:00am">7:00am</option>
                            <option value="8:00am">8:00am</option>
                            <option value="11:30am">11:30am</option>
                            </select></div>
                            <div id="core" class="times">
                            <select>
                            <option value="8:00am">8:00am</option>
                            <option value="11:30am">11:30am</option>
                            <option value="12:30pm">12:30pm</option>
                            </select>
                            </div>
                            </td>
                        </tr>
                        <tr>
                            <td><input class="cat_button" type="submit" value="Submit" id="catwebformbutton" /></td>
                        </tr>
                    </tbody>
                </table>
                <script type="text/javascript" src="/CatalystScripts/ValidationFunctions.js"></script>
                <script type="text/javascript">
    $(function () {
        $('#CAT_Custom_328771').change(function () {
            $('.times').hide();
            $('#' + $(this).val()).show();
    //<![CDATA[
    var submitcount67919 = 0;function checkWholeForm67919(theForm){var why = "";if (theForm.FirstName) why += isEmpty(theForm.FirstName.value, "First Name"); if (theForm.LastName) why += isEmpty(theForm.LastName.value, "Last Name"); if (theForm.EmailAddress) why += checkEmail(theForm.EmailAddress.value); if (theForm.HomePhone) why += isEmpty(theForm.HomePhone.value, "Home Phone Number"); if (theForm.HomeAddress) why += isEmpty(theForm.HomeAddress.value, "Home Address"); if (theForm.HomeCity) why += isEmpty(theForm.HomeCity.value, "Home City"); if (theForm.HomeState) why += isEmpty(theForm.HomeState.value, "Home State"); if (theForm.HomeZip) why += isEmpty(theForm.HomeZip.value, "Home Zipcode"); if (theForm.HomeCountry) why += checkDropdown(theForm.HomeCountry.value, "Home Country"); if(why != ""){alert(why);return false;}if(submitcount67919 == 0){submitcount67919++;theForm.submit();return false;}else{alert("Form submission is in progress.");return false;}}
    //]]>
    </script>
            </form>
    Can anyone please help explain to me how I can make this work? I am only a JS beginner - so please try to explain in simple terms if possible.
    Thank you!
    Nicole

    This wont work, Needs to be a lot more then this and CSS to hide things rather then script hiding them.
    Nicole, The times that are availible I gather differ depending on the type of the dropdown?
    You do not need multiple time dropdowns.
    Steps you need to do first on the form:
    1. Ensure the custom form field dropdown for interested class exists.
    2. Have custom dropdown with all the times that any of them can be. This is CSS hidden by default.
    3. Also CSS hide all the options in the select as well in your CSS.
    Next can you show what classes have what times as an example then can put the code more relevent to your example you can work off.
    The code will follow along the lines of....
    Dropdown On Change
              If selected options is xxx class then
              fade in option times  dropdown 
              Show these otpion times
            if selected option is zzz class then
              fade in option times dropdown
                   show these times
    More control as you need to work properly, only two dropdowns needed.

  • How to Change a Default Value from Drop Down Box displayed in Web Dynpro?

    Hi,
    How to Change a Default Value from 'High' to 'Low'  in a Drop Down Box for RANGE field displayed in Standard Web Dynpro Component.  I saw a Default Value set for a RANGE field  in View Context When I select that field and click on Display. I am seeing Default Value set it to 'HI'. Please let me know how to change from HIgh to Low.
    I appreciate your help!
    Thanks,
    Monica

    hi,
    use the set_attribute( ) method now to set the attribute with a particular key eg HIGH in ur case
    // u can use the code wizard( control +f7) this code will be auto generated when u select the
    //radio button to read the context node
    DATA lo_nd_cn_node TYPE REF TO if_wd_context_node.
      DATA lo_el_cn_node TYPE REF TO if_wd_context_element.
      DATA ls_cn_node TYPE wd_this->element_cn_node.
    * navigate from <CONTEXT> to <CN_NODE> via lead selection
      lo_nd_cn_node = wd_context->get_child_node( name = wd_this->wdctx_cn_node ).
    * get element via lead selection
      lo_el_cn_node = lo_nd_cn_node->get_element(  ).
    * set single attribute
      lo_el_cn_node->set_attribute(
          name =  `ATTribute name.`
          value = 'LOW' ).
    it will solve ur query ..
    also refer to this component
    wdr_test_events -> view dropdownbyidx and dropdownbykey ->method name onactionselect.
    regards,
    amit

Maybe you are looking for

  • ITunes could not copy "" to the iPhone "" because an unknown error occorred (-50).

    This is a very annoying problem. I've followed everything by the books and cannot figure it out. I'm getting the warning     iTunes could not copy "[Song Name]" to the iPhone "[Phone Name]" because an unknown error occorred (-50)   and don't know wha

  • Export PDF creates 0kb file and Print Error.

    By "Print Error", I mean a simple pop-up window with the pages logo and the sentence "Print. Error while printing" even though I haven't asked for anything to be printed. The resulting pdf file is zero k in size and useless. I had this problem in iW

  • Where are the iPod Classic games?

    I just got my dads old ipod classic. I looked in the maunel and saw that there were games for it on itunes. I go there and there isnt any. This is false advertising. Where are they in itunes and/or what website could i get some?

  • Problems getting a higher framebuffer refresh rate

    Hello everyone just changed from Gentoo to Arch    Anyway here is my problem, I usually use a framebuffer resolution of 1280x1024-32@75. I used to use a Nvidia BFG Geforce Ti4200SE 128MB and it had no problem of booting into the above resolution. I r

  • .mp3 or .wav email attachments won't open

    how stupid is this? it's a media player! so, why can't the email app open .wav or .mp3 attachments... i want to listen to my vonage voicemails when they arrive in my inbox. please fix this apple... does the iphone have this same fallback?