Adding welcome Menu Box in custom webpart

Hi
i want to add the OOB welcome menu box in a custom webpart.
Am developing a webpart for adding  in the master page which should have the default welcome note included. In default master page, i checked and it was having <wssuc:welcome> tag. I tried adding this tag in webpart, it is throwing error.
Please help me to add this in the custom webpart
Harikrishna Baskaran

this might help you .
http://blogs.msdn.com/b/richin/archive/2012/07/04/how-to-display-profile-thumbnail-photo-next-to-welcome-message-in-sharepoint.aspx
Thanks and Regards
Er.Pradipta Nayak
Visit my Blog
Xchanging

Similar Messages

  • About Me link is not visible in Welcome Menu if placed on custom location in Custom Master Page

    Experts,
    I am facing a problem in my -ongoing SP 2013 project's branding. The problem is with Welcome Menu. I need to put the welcome menu at a custom place rather than in ribbon area. for this I added welcome menu snippet inside my Master Page HTML but there is
    a problem with it. On ribbon link "About Me" is visible while at the same time link "About me" is not visible on welcome menu which has been inserted on custom place. below images describe my problem more accurately.
    I need help in this regard if some one can help me. For your information My User Profiles are properly configured and working. 
    HBkhan

    Hi Haris,
    I tested the same scenario in my environment, and the link will display My Settings link instead of About Me link when there is more than one welcome menu in the page.
    If you want to put the welcome menu at a custom place rather than in ribbon area, I recommend you remove the welcome menu in the ribbon area(suitebar) after putting the other welcome menu at the custom place.
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • Adding Custom WebPart in AllUsersWebPart in SharePoint 2013

    Hi 
    I am trying to add the Custom WebPart to Custom PageLayout using 
    AllUsersWebPart.But the webpart is not adding to the page when created. The same code if i am adding to Pages AllUsersWebPart , its coming.Is there any thing need to do with PageLayout AllUsersWebPart property  <![CDATA[              
            <?xml version="1.0" encoding="utf-8"?>
            <webParts>
              <webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
                <metaData>
                  <type name="SolutionX.ProjectY.WebParts.MyWebPart, $SharePoint.Project.AssemblyFullName$" />
                  <importErrorMessage>$Resources:core,ImportErrorMessage;</importErrorMessage>
                </metaData>
                <data>
                  <properties>
                    <property name="Title" type="string">My WebPart</property>
                    <property name="Description" type="string">My WebPart for XYZ</property>
                    <property name="ListName" type="string">ExampleList</property>
                    <property name="RowLimit" type="string">5</property>
                  </properties>
                </data>
              </webPart>
            </webParts>
            ]]>
          </AllUsersWebPart>Thanks SPKids

    Hi,
    I assume you are attempting to add this to a standard page layout and not a HTML Page Layout.
    My suggestion is that you add your webpart to a standard content page in the browser first. Save the content page and check in / publishing a major version. Now open your site in SPD and navigate to the Pages library. Your content page should be listed.
    Right click this content page and "Detach" the page from its page layout. You will receive a warning, ok that.
    Once the content page has been detached from the page layout, open the content page in SPD and view the HTML source. Look for your custom webpart in the source. This is the tags / source that you need to add to your custom page layout. You can reattach this
    content page to its page layout now if you wish.
    Eric Overfield - PixelMill -
    ericoverfield.com -
    @EricOverfield

  • Adding a custom Webpart in Application Page

    Hi , 
    I have an Application page, now i have got a requirement to add another custom webpart in that.
    I tried editing them in Sharepoint designer and adding a zone.. but its not supproting "runat=server" tag.
    Hence i m failing to add a custom webpart.
    Please help in this regard.

    Hi,
    Did you have the correct "register"  on your application page :
    <%@ Register TagPrefix="WpNs0" Namespace="CustomForm.MyWebPartName" Assembly="CustomForm, Version=1.0.0.0, Culture=neutral, PublicKeyToken=8834df117dc574a9"%>
    Have a look at this post :
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/fa372eec-4945-4297-afb1-c7183b007ff1/how-can-i-add-custom-webpart-to-application-page-or-site-page-in-visual-studio?forum=sharepointdevelopment
    Regards
    Gilles Martinez
    Twitter
    Blog
    Please mark as helpful/answer if this resolved your post

  • Issue in rendering CustomToolpart to select data source for custom webpart..

    I have a custom webpart in which i have added a tool part.This toolpart should allow me to select any list in the sitecollection which would be displayed on the webpage on doing apply in the webpart properties.The dropdown list with all lists is coming fine.The
    grid is diplaying as well.But in the toolpart,not in the webpart. I cant seem to segregate the two.There is also a textbox in the  toolpart in which the entered text comes in the webpart.But the same approach is failing for the gridview.Please suggest
    what to do.
    Also,i am failing at making a separate category for the toolpart by specifying [category("List settings")]..Any suggestion as to what i'm doing wrong in that are welcome too.
    Here is my webpart class and toolpart class.
    using System;
    using System.ComponentModel;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.WebControls;
    using Microsoft.SharePoint.WebPartPages;
    using System.Data;
    using Microsoft.SharePoint.Utilities;
    namespace BB.WorkSpaces.Common.WebParts.CustomList
    [ToolboxItemAttribute(false)]
    public class CustomList : Microsoft.SharePoint.WebPartPages.WebPart
    [Browsable(false),
    Category("List Settings"),
    Description("Text Property")]
    // Visual Studio might automatically update this path when you change the Visual Web Part project item.
    private const string _ascxPath = @"~/_CONTROLTEMPLATES/BB.WorkSpaces.Common.WebParts/CustomList/CustomListUserControl.ascx";
    public string ListName
    get
    return _listName;
    set
    _listName = value;
    string _listName;
    public string ListValue
    get
    return _listValue;
    set
    _listValue = value;
    string _listValue;
    public GridView Gv
    get { return gv; }
    set { gv = value; }
    GridView gv;
    protected override void Render(HtmlTextWriter writer)
    base.Render(writer);
    writer.Write(ListName);
    writer.Write("<br />");
    writer.Write(ListValue);
    writer.Write("<br />");
    writer.Write(Gv);
    public override ToolPart[] GetToolParts()
    ToolPart[] allToolParts = new ToolPart[3];
    WebPartToolPart standardToolParts = new WebPartToolPart();
    CustomPropertyToolPart customToolParts = new CustomPropertyToolPart();
    allToolParts[0] = standardToolParts;
    allToolParts[1] = customToolParts;
    allToolParts[2] = new CustomToolPart();
    return allToolParts;
    public class CustomToolPart : Microsoft.SharePoint.WebPartPages.ToolPart
    DropDownList ddl;
    TextBox tb;
    protected override void CreateChildControls()
    ddl = new DropDownList();
    ddl.ID = "ddl";
    // Simply getting the lists of the current web, and displaying them in the dropdown-list.
    SPListCollection lists = SPContext.Current.Web.Lists;
    foreach (SPList list in lists)
    ddl.Items.Add(list.Title);
    tb = new TextBox();
    tb.ID = "tb";
    Controls.Add(ddl);
    Controls.Add(tb);
    base.CreateChildControls();
    public override void ApplyChanges()
    CustomList wp = (CustomList)this.ParentToolPane.SelectedWebPart;
    wp.ListName = ddl.SelectedValue;
    wp.ListValue = tb.Text;
    SPSite site = SPContext.Current.Site;
    SPWeb web = site.RootWeb;
    SPList list = web.Lists[ddl.SelectedItem.Text];
    //SPListItemCollection slist = list.GetItems();
    GridView GV1 = new GridView();
    DataTable dt = list.Items.GetDataTable();
    GV1.DataSource = dt;
    GV1.DataBind();
    this.Controls.Add(GV1);

    Hi,
    According to your post, my understanding is that you have an issue about the custom web part.
    Per my knowledge, we should customize the EditorPart instead of the
    ToolPart to bind the lists to the dropdown list.
    There is a good article about customizing web part, you can refer to it.
    http://www.concurrency.com/blog/create-a-custom-web-part-for-sharepoint-2010/
    More reference:
    http://www.enjoysharepoint.com/Articles/Details/show-all-list-in-dropdown-list-using-visual-web-part-20676.aspx
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • What are the possibilities and limitation of using Out of the box content search webpart on SharePoint Online 2013/O365 ?

    Hi All,
    We are migrating from on-premise SharPoint 2010 to SharePoint online 2013.
    I have few questions below: 
    What are the possibilities and limitations of using Out of the box content search webpart?
    Also, how the cross site publishing will work in SharePoint online something with managed navigations and product catalog apporach? if it is not supported, then what are the alternatives to acheive the same?
    Appriciate any commnets/clarifications.Thanks in advance.
    Thanks,
    Dhananjay.

    Here are the possibilities of Content search webparts
    http://office.microsoft.com/en-in/office365-sharepoint-online-enterprise-help/configure-a-content-search-web-part-in-sharepoint-HA104119042.aspx
    http://office.microsoft.com/en-in/office365-sharepoint-online-enterprise-help/when-to-use-the-content-query-web-part-or-the-content-search-web-part-in-sharepoint-HA104206662.aspx
    Compare the strengths and limitations of the Web Parts
    It’s important that you understand the strengths and limitations of the two Web Parts because if you choose the wrong one, your site could run into performance problems. You can use both Web Parts to show content that is based on a query. In a simplified
    world, here’s how you can decide between the two:
    Use the CQWP when you have a limited amount of content, your query is simple, and you don’t expect your content to grow much in the future.
    Use the CSWP in all other scenarios when you want to show content that is based on a query.
    The table below gives a comparison of the two Web Parts:
    Web Part behavior
    Content Query Web Part
    Content Search Web Part
    Query configuration
    Easy
    You’ll need to know about certain search features such as
    managed properties.
    Query across large amounts of content
    Limited
    Yes
    Handle complex queries
    Limited
    Yes
    Scale to handle future content growth
    Limited
    Yes
    Display content from other site collections
    No
    Yes (see
    section below)
    Design of query results can be customized
    Yes, by using XSLT.
    Yes, by using HTML.
    Maintenance cost in a complex site architecture
    High
    Small (see
    section below)
    Narrow down the query results that are displayed in the Web Part
    No
    Yes, in combination with the
    Refinement Web Part.
    It was not there previously but then it was added to Office 365
    http://blogs.office.com/2013/10/29/search-innovations-for-site-and-portal-design-in-sharepoint-online/
    If this helped you resolve your issue, please mark it Answered

  • Excel data read from users and upload in to Oracle DB using custom webpart

    Hi Team,
    I need to get the excel date from user using file upload control and read the data from the excel using custom webpart and validate the each rows whether having the values or not and need to upload the data to the oracle database.
    Can you please let me know the best approach to read the data from excel using sharepoint custom webpart.
    Thanks,
    Mylsamy

    Hi,
    According to your post, my understanding is that you want to read excel data from the uploaded file and insert the data into Oracle Database.
    The following way for your reference:
    1.Create a Visual Web Part using Visual Studio.
    2. Add an asp.net upload control into the .ascx file.
    <div>
    <asp:FileUpload ID="fileupload" runat="server" />
    <asp:Button ID="btnUpload" runat="server" onclick="btnUpload_Click" Text="Upload" />
    </div>
    3. Add some logic methods into .ascx.cs file.
    protected void btnUpload_Click(object sender, EventArgs e)
    //read data and insert the data into Oracle database.
    4.We can create a web service for adding data to Oracle database, then consume this web service in the visual web part.
    More information:
    http://msdn.microsoft.com/en-us/library/ff597539(v=office.14).aspx
    http://manish4dotnet.blogspot.in/2013/02/upload-ans-read-excel-file-using-c.html
    http://msmvps.com/blogs/windsor/archive/2011/11/04/walkthrough-creating-a-custom-asp-net-asmx-web-service-in-sharepoint-2010.aspx
    Best Regards
    Dennis Guo
    TechNet Community Support

  • In outlook 2013 Add-In, Adding dynamic menu to splitButton idMso="DialMenu" is working and the same code is not working in outlook 2010 Add-In.

    In outlook 2013 Add-In, Adding dynamic menu to <splitButton idMso="DialMenu"> is working and the same code is not working in outlook
    2010 Add-In. please let me know, if i am missing something. Below is the xml and screen shot
    <contextMenu idMso="ContextMenuFlaggedContactItem">
     <splitButton idMso="DialMenu">
              <menu>
                <dynamicMenu id="CallContactwithFreedomvoice
    " label="CallContactwithFreedomvoice" 
                            getContent="OnGetContenttest"                           insertAfterMso="Call"/> 
            </menu>       </splitButton>    </contextMenu> 

    Hi Narasimha prasad2,
    Based on the description, the context menu for the flagged contact doen't work in Outlook. I am tring to rerpoduce this issue however failed.
    I suggest that you check the state of the add-in first to see wether the add-in was loaded successfully.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Cannot print document with added barcode text boxes

    G'day
    I'm adding two text boxes to an illustrator document with Applescript, but when I go to print, ?I get an error 'Cannot print the illustration. The Color Management settings are inconsistent.'
    The error message is not error trappable.
    I have to barcode thousands of documents a year, and this is a big deal breaker. Is there any fix, please?
    Regards
    Brian Christmas
    try
      set printerName to my theLargePagePrinter as string
      set paperOptions to {class:paper options, name:largePaperSize}
      set jobOptions to {class:job options, designation:all layers} # , print options:printOptions}
      set colorOptions to {class:color management options, profile kind:printer profile}
      set flatOpts to {class:flattening options, clip complex regions:true, gradient resolution:360, rasterization resolution:360}
      set printOptions to {class:print options, printer name:printerName, paper settings:paperOptions, flattener settings:flatOpts, job settings:jobOptions, color management settings:colorOptions}
      try
      set p to 17
      tell application "System Events" to tell process "Adobe Illustrator"
      click menu item "Fit to Artwork Bounds" of menu 1 of menu item "Artboards" of menu 1 of menu bar item "Object" of menu bar 1
      end tell
      end try
      set p to 18
      say 7
      print document 1 options printOptions
      say 8
      on error errmsg number errnum
      tell application "System Events" to display dialog "Error in printing illustrator document. " & errmsg & " number " & errnum giving up after 40
      end try

    G'day Owen, & W_J_T.
    Unfortunately your suggestions did not work for me.
    I've tried using the GUI to access the print dialog box, but as usual with Adobe, they've stuffed that up too. What I did find however, that the print dialog box recognised keystrokes, and always defaults to the Printer box when opening.
    Also, the Printer box sets itself to a matching item of whatever key is pressed, and so does the Printer Preset box.
    So, even tho I can't select any given box, provided I have a Printer Preset set, I can access it by the following (slower) method...
    activate
      tell application "System Events" to tell process "Adobe Illustrator"
      keystroke "p" using command down
      keystroke (character 1 of (my theLargePagePrinter as text)) as text
      repeat 17 times
      keystroke tab
      tell current application to delay 0.1
      end repeat
      keystroke (character 1 of (my theLargePagePrinter as text)) as text
      keystroke return
      end tell
    Note that if you have more than one printer or Printer Preset starting with the same letter, then you'll have to use more than just the first character of your printer name.
    Regards
    Brian Christmas

  • Using CreatedModifiedInfo in custom webpart SharePoint 2013

    We've used those lines of code in SharePoint 2010 for a long time and we never had any issues with them. We've created a custom webpart and added the modifiedinfo toolbar to the bottom. Now we've moved our site from SP2010 to a SP2013 while still using SP2010
    UI. So we're still in 2010 mode while this problem occurs.
    internal static void AddToolBarInfo(this ToolBar toolBar, SPControlMode mode)
    info = new CreatedModifiedInfo();
    info.ControlMode = mode;
    toolBar.Buttons.Controls.Add(info);
    The control is added properly but no information are shown inside the toolbar. Somehow not many persons have used this toolbar, so I'm not able to find many informations about it. Since we've never done more than adding the control, I don't know where to
    start looking when the control is not properly filled.
    Regards Andreas MCPD SharePoint 2010. Please remember to mark your question as "answered"/"Vote helpful" if this solves/helps your problem.

    Has anyone used the CreatedModifiedInfo before in his code?
    Regards Andreas MCPD SharePoint 2010. Please remember to mark your question as "answered"/"Vote helpful" if this solves/helps your problem.

  • Read contents of Pages library and show in custom webpart

    Hi,
    How to read the contents of "Pages" library (Published pages  and custom created pages only and not reading OOB pages)?
    I have a publishing site, in which I need to read the "Title" and URL" of the pages which are created by users and show in a custom webpart. If a new page is published, that page data should be added to the webpart.
    Is it possible to achieve this? I know of Content Query webpart, but I need to custom create a custom webpart with custom styling. Is it possible to use the logic of content query webpart in a custom visual webpart? How to achieve this programmatically?
    Thanks

    The process in 2013 is essentially the same as it was in 2010.  The only difference is that you don't have to manually add additional fields to the datafields list in the .webpart file.  But the .XSL customization is identical.  That's why
    you won't find many articles on how to do it in 2013.  It was already covered in 2010 and hasn't changed.  Here is one example from 2013.
    http://sp2013.blogspot.com/2012/09/content-query-and-metadata-driven.html
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • When I start Firefox I get a menu box asking me to agree to let Firefox make changes to my computer. I click yes and the program opens and goes to my homepage. See Details below.

    When I attempt to open Firefox from my desktop icon a menu box appears and backscreen grays out and I can't access anything else except this menu box. top of menu box says User Account Control. Next line says: Do you want to allow Firefox to make changes to this computer? I can click Yes (Firefox opens) No (menu box closes Firefox doesn't open) A link I can click says "change when these notifications appear" When I click it the menu box closes, Firefox doesn't open & link does not take me to where I can change my user account controls. Annoying, I just want Firefox to open directly to my home page like it did in prior versions.

    Do a clean reinstall.
    * Download a fresh Firefox copy and save the file to the desktop.
    * Firefox 7.0.x: http://www.mozilla.com/en-US/firefox/all.html
    * Uninstall your current Firefox version.
    * Do not remove personal data when you uninstall the current version or you lose your bookmarks and other data in the profile folder.
    * Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    * It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    Your bookmarks and other profile data are stored elsewhere in the Firefox Profile Folder and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox.
    * http://kb.mozillazine.org/Profile_folder_-_Firefox
    * http://kb.mozillazine.org/Profile_backup

  • I'm having problems (1)selecting onscreen text, (2) having problems resizing menu boxes and selecting menues with the cursor. I'm not able to select menus and move them. I'm not sure how to correct this.

    I'm having problems (1) selecting onscreen text, (2) resizing menu boxes and selecting menues with the cursor. I'm not able to select menus and move them. I'm not sure how to correct this.

    1) This is because of software version 1.1. See this
    thread for some options as to how to go back to 1.0,
    which will correct the problem...
    http://discussions.apple.com/thread.jspa?threadID=3754
    59&tstart=0
    2) This tends to happen after videos. Give the iPod a
    minute or two to readjust. It should now be more
    accurate.
    3) This?
    iPod shows a folder icon with exclamation
    point
    4) Restore the iPod
    5) Try these...
    iPod Only Shows An Apple Logo and Will Not Start
    Up
    iPod Only Shows An Apple Logo
    I think 3,4, and 5 are related. Try the options I
    posted for each one.
    btabz
    I just noticed that one of the restore methods you posted was to put it into Disk Mode First rather than just use the resstore straight off, I Have tried that and seems to have solved the problem, If it has thank you. previously I have only tried just restoring it skipping this extra step. Hope my iPod stays healthy, if it doesnt its a warrenty job me thinks any way thanks again

  • WHen I try to open Firefox a menu box comes up asking me what I would like to use to open it with

    WHen I try to open Firefox a menu box comes up asking me what I would like to use to open it with. Also when I try to use add/remove programs in the control panel or even try to open security it tells me the same thing about lost of missing files.

    http://lounge.windowssecrets.com/index.php

  • Access denied error on updating list through custom webpart

    hi
    I have created one webpart having multiple view option.
    On selection of items from one view user is clicking on next button to get 2nd view (THis is causing postback) and on selection of 2nd view items user is clicking on next buton for 3rd view.
    On third view he can see the submit button. On click on submit button the selected items are updateing in one list and also updating data in other lists.
    The list in which we are updating data have limited access to all users. But previously user were able to upate the list.
    But after implimenting this multiple view with next button which  postbacks on click user are getting access denied error while updating the list. If i provide contribute access to that list then they able to submit the changes properly. But even after
    that they got the error at first time.
    Any body got this type of issue?
    Is the post back on custom webpart cause access denied error?
    i have written my code like this to updat list,
    protected void btnUpdate_Click(object sender, EventArgs e)
    try
    SPSite site = new SPSite(SPContext.Current.Site.ID);
    SPWeb myWeb = site.OpenWeb(SPContext.Current.Web.ID);
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using (SPSite ElevatedSite = new SPSite(site.ID))
    using (SPWeb ElevatedWeb = ElevatedSite.OpenWeb(myWeb.ID))
    ElevatedSite.AllowUnsafeUpdates = true;
    ElevatedWeb.AllowUnsafeUpdates = true;
    //code to update multiple lists
    catch (Exception ex)
    Please suggest any solution for this.

    Yes I checked with ULS log viewer.
    Its very helpfull as reading that text log file is very difficuelt.
    I found that if user spend more time on that webpart then session veriables on that webpart gets expired and at the time of redirection of user to newly created list using below code currentNewList becomes empty and its redirection to wrong list(_abc) which
    is dummy list and user dont have any access.
    currentNewList = NewListName+ "_abc"
    SPUtility.Redirect(currentNewList.DefaultViewUrl, SPRedirectFlags.Default, HttpContext.Current);
    So I modified the code to reload the session data when user clisk on submit button.

Maybe you are looking for

  • Group by performance

    I have a table Which has around 300 Million Records. The table has a primary key on Col1,Col2,Col3,Col4 The table has unique index on Col5,Col6,Col7 I have a query which is taking around 45 Minutes.. Select Col1,Col2,Col3,MIN(Col5) FROM TABLE WHERE C

  • Cannot update Vendor Master (LFA1,LFB1,LFBK) in the background

    Hi All,      I am workingon a requirement to update vendor master (LFA1, LFB1, LFBK etc) and after doing extensive research on SDN I came to know there are no BAPIs to update vendor and got information on function modules I can use and finally ended

  • Need a method to insert 1000 records in oracle in once

    Hi All, I want to insert more than 1000 records in oracle database in once. Please let me know the way to do this. It's urgent.......... Regards, Puneet Pradhan

  • Downloading a Trial version of Flash

    Hi I recently learnt of the Subscription edition for Adobe creative Suite 4 design premium being offered in Australia & I wanted to download a trial version of Flash (which is one of the programs I am most interested in) to see if it would be worth s

  • Using a Google Nexus phone with BT Mobile sim card

    For my birthday, my son has given me a 'google nexus' phone. Whilst I was in Sweden, visiting him, we put my BT sim card in and he 'set it up' to work via his hub (obviously I was conscious of the cost if I had been using anything else) Now I am 'bac