Way to use Visual Web part in sharepoint 2010 without using/installing third party tools

I want to know the way to use Visual Web part in sharepoint 2010 without using/installing third party tools.
Please provide me a link where i can actually know how it is done.

+ to _eNo_,
Visual Studio 2010 has support for visual webpart, you can find that under Visual C# node in the Installed Templates section (if your preferred language is C#)
Hope this helps!
Ram - SharePoint Architect
Blog - SharePointDeveloper.in
Please vote or mark your question answered, if my reply helps you

Similar Messages

  • Custom Login Web Part In SharePoint 2010 Forms Based

    Hi ,
    Im trying to make Custom Login Web Part In SharePoint 2010 Forms Based , all membership configration is done . 
    my question is why (Login1.username , Login1.password ) give this error : 
     login1 does not exist in the current context
    protected
    void
    Login1_Authenticate(object
    sender, AuthenticateEventArgs e)
    02        {
    03            string
    membership = "MembershipProvider";
    04            string
    role = "RoleProvider";
    05 
    06            e.Authenticated
    = SPClaimsUtility.AuthenticateFormsUser(new
    Uri(SPContext.Current.Web.Url),Login1.UserName,Login1.Password);
    07 
    08            if
    (!e.Authenticated) return;
    09 
    10            SecurityToken
    token = SPSecurityContext.SecurityTokenForFormsAuthentication(new
    Uri(SPContext.Current.Web.Url), membership, role,
    Login1.UserName,
    Login1.Password);

    Error 1 No overload for method 'SecurityTokenForFormsAuthentication' takes 3 arguments
    Error 2 The name Wss doesnot exisit in current context 
    Can anyone give sugeestion please 
    cant recitfy this error 
    protected void Login1_Authenticate(object sender,
    AuthenticateEventArgs e)
    02        {
    03            string membership
    = "MembershipProvider";
    04            string role
    = "RoleProvider";
    05 
    06            e.Authenticated
    = SPClaimsUtility.AuthenticateFormsUser(newUri(SPContext.Current.Web.Url),Login1.UserName,Login1.Password);
    07 
    08            if (!e.Authenticated) return;
    09 
    10            SecurityToken
    token = SPSecurityContext.SecurityTokenForFormsAuthentication(newUri(SPContext.Current.Web.Url),
    membership, role,
    Login1.UserName,
    Login1.Password);

  • How to display names without file extension in Content Query Web Part in SharePoint 2010

    I try to display names in Content Query Web Part  but it shows file extension. I cannot find a way in CQWP editor that can exclude file extension.  Is there a way to display names excluding file extensions thru settings in the CQWP editor?
    I have to edit the code in SharePoint Designer, right?
    Thanks in advance for any tips!

    In the file ContentQueryMain you have already a function to get the file without extension.
    So we just can use this:
    <xsl:call-template name="OuterTemplate.GetFileNameWithoutExtension">
    <xsl:with-param name="input" select="$DisplayTitle" />
    </xsl:call-template>

  • Cannot complete successful installation of Yammer 3.1.4 Web part on SharePoint 2010 Standard

    I have installed Yammer server component successfully.
    I have inserted the Yammer Web Part (Ver 3.1.4) onto a page in SharePoint 2010.
    However, when in view the page the place on the page where the web part should how up has an error:
    System Exception: Unable to load web part.
    When I edit the page and look at the web part, it looks normal, showing the feed types, but when I select a feed, like "Company Feed", I get a popup window that says "To save your change before continuing, click OK. To continue without saving,
    select CANCEL.

    Hi Larry,
    According to your description, the Yammer web part doesn't load when you used it in a page.
    You must configure the web part to point to a network. Edit the page, select the desired feed, and choose a network. Then, Save the page.
    More information, please refer to the links:
    http://blogs.msdn.com/b/spses/archive/2014/07/06/sharepoint-2010-amp-yammer-step-by-step-guide.aspx (common error 4)
    https://about.yammer.com/success/wp-content/uploads/sites/13/Yammer-For-SharePoint-2010-FAQs.pdf
    In the above two articles, there are some another troubleshootings about Yammer Web Part, please check if they are useful.
    Best Regards,
    Wendy
    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]
    Wendy Li
    TechNet Community Support

  • Duplicate groups in Content Query Web Part in SharePoint 2010

    Hello,
    I'm facing one weird issue in CQWP. I've a document library in SharePoint 2010 site where I have 2 columns - Title and Document Type. The column 'Document Type' is a Single line of Text column and mandatory. Users have entered bunch of documents in this
    library by populating the metadata.
    On one wiki page I have a CQWP where I'm showing the documents of this library grouped by 'Document Type'. The problem I am facing is that some documents are showing in different columns even though their 'Document Type' value is exactly same. Please see
    below screenshot:
    You can see that the documents under 'Industry Group Publications' are showing in 3 different columns, why?
    My CQWP settings are:
    Presentation: Number of columns to be shown: 5 (I've changed it to 3 also, but the same result)
    Group items by: Document Type and sort order is Ascending (I've tried changing sort order as well, same result)
    Limit number of items to display: This checkbox is unchecked (unlimited)
    It's not just one case. I've seen this issue on other sites as well where same 'Group by' column value is being shown in different column rather than under same column while values are EXACTLY same.
    Has anybody else faced this issue? What's the reason and solution to this problem?
    Thanks in advance!
    --Ashish

    Hi Ashish,
    I tried to reproduce the issue in my environment. I created a content query web part displaying one library documents. The library has two columns, title and document type. However, document type is a single text column you need to manually write content
    into.
    I set the web part to group items by document type and left other settings to be by default. It worked as expected. I’d like to know if there is any difference from your situation, especially for the document type column so I can reproduce the issue from
    my side.
    Regards,
    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] .
    Rebecca Tu
    TechNet Community Support

  • Cross-Site Display Web Part in SharePoint 2010

    Every document library has its default web part called List view web part. So when we create a Document Library or list on a site, by default a
    List View Web Part is created. We can see that when we try to Insert a Web Part on a site. For instance, for
    Division Level Financial Records Document Library, the list view web part will be called, “Division Level Financial Records.”
    But we will only see this web part when we actually create a library or list on the current site itself.
    I would like to learn about Cross-Site Display Web Part. So I can have a document Library in one site and can retrieve, view, and upload records from a different site within the same site collection. I know Bamboo Solutions offers a web part that can
    do this. Any other? Any sample code to design a custom web part?
    Thanks a lot in advance!
    Mayank

    Hello Mayank,
    If you want to display content within a site collection then you can also use CQWP and dataview webpart but if you want to show content in different site collection then you have to create custom webpart.
    You can also try with codeplex webpart:
    http://crosssiteviewer.codeplex.com/
    For creating own webpart, please look at here:
    http://blogs.msdn.com/b/ramg/archive/2009/04/22/implementing-a-simple-cross-site-collection-list-view-webpart.aspx
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Embed metatag navigation with API or Web Part in SharePoint 2010 web site or site navigation

    Is it possible to embedd the metadata navigation of a dokument libary via API or webpart flexible and unfolded into SharePoint 2010 site navigation or in an other area of the SharePoint Webseite?

    Hello Mayank,
    If you want to display content within a site collection then you can also use CQWP and dataview webpart but if you want to show content in different site collection then you have to create custom webpart.
    You can also try with codeplex webpart:
    http://crosssiteviewer.codeplex.com/
    For creating own webpart, please look at here:
    http://blogs.msdn.com/b/ramg/archive/2009/04/22/implementing-a-simple-cross-site-collection-list-view-webpart.aspx
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Create a visual web part which get data from excel sheet and import it into sql server database in sharepoint 2010 (development)

    Hi,
    I want to create a visual webpart which will read data from excel sheet and import it in to sql server database.(using sharepoint development)
    I want to do it using visual webpart.
    Please help to solve the issue.
    Thanks in advance!
    Regards
    Rajni

    Hi  Rajni,
    Microsoft.Office.Interop.Excel assembly provides class to read excel file data, in your web part solution, reference the assembly, and following blog contains samples about how to read the excel file data,
    and import it to SQL  database.
    1.Create a Visual Web Part Project:Create
    Visual Web Parts in SharePoint 2010
    2.Read the excel workbook by using SPFile class:
    http://alancejacob.blogspot.in/2012/06/read-data-from-excel-file-and-insert-in.html
    http://stackoverflow.com/questions/14496608/read-excel-file-stored-in-sharepoint-document-library
    3.Export the excel workbook to SQL Server:
    http://www.c-sharpcorner.com/UploadFile/99bb20/import-excel-data-to-sql-server-in-Asp-Net/
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • How to display alert message box in sharepoint 2013 visual web part?

    Hi,
    I am developing a visual web part which submits data to the list. Once it submits the data, I should convey to the user that the data has been submitted successfully.
    I tried using clientScript.RegisterStartUpScript etc, but, none of them are working. It is not throwing any error , but pop up is not getting displayed.
    Preferrably, I would like to call this alert message from cs page, because, I will be using it in several places.
    Please help me.!
    Thanks in advance.
    Hepsi

    Hepsi, 
    Step 1. On the Page_Load - This way you can pass parameters. Try this
    btn.Attributes.Add(
    "onclick", string.Format("return openSPPopup('{0}?{1}={2}', '{3}')", YourPage_URL, var1_Name, value1, Param1_PopupTitle));
    Step 2 : Javascript function
    function openSPPopup(navigateURL, popUptitle) {
    var options = {
    width: popupWidth,
    height: popupHeight,
    url: navigateURL,
    scroll: 0
    SP.UI.ModalDialog.showModalDialog(options);
    return false;
    Step 3: The popup close code (in .cs file) – I do it this way as it is just close dialog code and easy to write.
    protected void btnClose_Click(object sender, EventArgs e)
    { this.Page.ClientScript.RegisterStartupScript(this.GetType(), "PopupScript", "SP.UI.ModalDialog.commonModalDialogClose(1, 1);", true);
    Courtesy -
    Thread
    Try this - https://bramdejager.wordpress.com/2011/03/21/using-sp-ui-dialog-and-sp-ui-notify-from-code-behind/
    http://msdn.microsoft.com/en-us/library/ff798390.aspx
    http://stackoverflow.com/questions/9833907/asp-net-confirm-before-executing-codebehind
    http://www.codeproject.com/Questions/443131/Call-to-javascript-Function-from-code-behind-using
    http://www.c-sharpcorner.com/uploadfile/ledomoon/calling-code-behind-function-in-javascript/
    Hope they will help!
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • SharePoint visual web part project creation usng TFS2010

    Hi,
    I have configured TFS2010 in SharePoint 2010 server and used TFS url in client machine.
    From client machine i am able to create new TFS project, but i cannot find information's to create SharePoint project using VS2010 SharePoint templates?
    How to create Visual web part project using TFS2010?
    Anandhan.S Remember to 'mark or propose as answer' or 'vote as helpful' as appropriate.

    Hi,
    According to your post, my understanding is that you wanted to create SharePoint project using the TFS 2010.
    Did you install the Build Support for Apps for Office and Apps for SharePoint?
    To build apps for Office and apps for SharePoint projects, several components must be installed on your system.
    What’s more, we should copy several Visual Studio SharePoint assemblies to the GAC on the build server.
    Copy the SharePoint Tool Assemblies and Files to the GAC
    The following assemblies must be copied to the GAC of the build system:
    Microsoft.VisualStudio.SharePoint.Designers.Models.dll
    Microsoft.VisualStudio.SharePoint.Designers.Models.Features.dll
    Microsoft.VisualStudio.SharePoint.Designers.Models.Packages.dll      Microsoft.VisualStudio.SharePoint.dll
    There are two articles about building SharePoint 2010 solutions on TFS 2010, I think it’s helpful for your to create project in TFS2010.
    http://msdn.microsoft.com/en-us/library/ff622991.aspx
    http://blogs.msdn.com/b/jjameson/archive/2011/02/27/building-sharepoint-2010-solutions-on-a-tfs-2010-build-server.aspx
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Sharepoint visual web part

    Hello, I would like to create visual web part, that can be used within SharePoint LIST's edit item form...I want to include treeview into the webpart and load a directory structure to it...a direcotry structure is meant a Folder hierarchy from fileprint
    server - share.
    to browse through share I use:
    stringsourcePath
    ="D:\\";
    foreach(stringdr
    inSystem.IO.Directory.GetDirectories(sourcePath))
    but I am receiving this error:
    An exception of type 'System.Security.SecurityException' occurred in prva.dll but was not handled in user code
    Additional information: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
    stack trace:
       at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
       at System.Security.CodeAccessPermission.Demand()
       at System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption)
       at System.IO.Directory.GetDirectories(String path, String searchPattern, SearchOption searchOption)
       at System.IO.Directory.GetDirectories(String path)
       at prva.VisualWebPart1.VisualWebPart1.Page_Load(Object sender, EventArgs e)
       at System.Web.UI.Control.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Control.LoadRecursive()
    please, help if possible

    You code failes because of security permission,set <trust level="Full" />
    see these threads, should help you to resolve
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/3c10b18b-b098-4967-8664-137bee9c2dcc/request-for-the-permission-of-type-fileiopermission-failed?forum=sharepointdevelopmentlegacy
    http://forums.asp.net/t/1422162.aspx?System+Security+SecurityException+Request+for+the+permission+of+type+System+Security+Permissions+FileIOPermission+mscorlib+Version+2+0+0+0+Culture+neutral+PublicKeyToken+b77a5c561934e089+failed+
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • Sharepoint 2013 Visual Web part Deloyment

    Hello,
    I built a visual web part(sharepoint 2013) using visual studio 2012. But when I tried deploying, I got this error message:
    "Error occured in deployment step 'Activate Features': Feature id '****' is not installed in this farm, and cannot be added to this".
    Approaches I made to fix this :
    1) Tried changing the scope of Feature to Farm/Web/WebApplication
    2) Tried installing feature manually using Install-SPFeature -AllExistingFeatures
    3) Tried resetting IIS
    None of these attempts helped me. Can someone help me on this ?
    Thanks
    KG

    Hi,
    According to your post, my understanding is that you get error while deploying the visual web part.
    To narrow down whether the issue is related to the project itself, you can do some steps as below.
    Re-open the visual studio, create a new clean project with a simple visual web part then check whether it works.
     What’s more, you can check whether feature assembly is register in GAC or not. So try to uninstall feature and use below command: (if have not done before)
    Install-SPSolution -Identity MYfeature.wsp  -GACDeployment -force
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • SharePoint 2013 Visual Web Part Custom Property.

     How to create drop down control to display existing libraries in current web site using a custom web part property?i want to show this control on web part configuration.then users can select the relevant library without typing.(SharePoint
    2013 Visual Web Part).
    Thanks 

    This has been answered for SP 2010 at SP:SO. Things wont change much in SP 2013 as far as VWP is concerned. Basically you will need to implement Custom Web Part Editor.
    http://stackoverflow.com/questions/6946153/edit-webpart-properties-with-dynamic-dropdownlist
    Here is an example.
    http://sptechbytes.blogspot.ca/2013/02/sharepoint-2010-creating-custom-editor.html
    Amit

  • How to Add a User Control to a SharePoint 2013 Visual Web Part ?

    Hi,
    1.I have created SharePoint 2013 Farm Solution through VS 2012.
    2.Added visual Web part
    3.Created a User control (Farm Solution ) and added some Control From tool Box.
    4.Drag and drop user control from solution explorer to visual web part.
    so its  Register tag and with prefix tag user controls automatically added on visual web part source. when i try to build solution it throws Exception:
    Exception :The name 'InitializeControl' does not exist in the current context.
    Please Provide solution after try/or proper workaround.
    Thanks,
    Siddheshwar

    Site name=http://sitename:22222/
    Visual Web part:
    <%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
    <%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
    <%@ Import Namespace="Microsoft.SharePoint" %>
    <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Src="~/_controltemplates/15/SP2013Controls/SPControls.ascx" TagPrefix="uc1" TagName="SPControls" %>
    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SPWebpart.ascx.cs" Inherits="SP2013Controls.SPWebpart.SPWebpart" %>
    <uc1:SPControls runat="server" id="SPControls" />
    User Control Code:
    <%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
    <%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
    <%@ Import Namespace="Microsoft.SharePoint" %>
    <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SPControls.ascx.cs" Inherits="SP2013Controls.ControlTemplates.SP2013Controls.SPControls" %>
    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><asp:Button ID="Button1" runat="server" Text="Button" />
    Deployement Location:{SharePointRoot}\Template\ControlTemplates\SP2013Controls\
    After User controls added on webpart .g.cs file getting blank.
    After 1st Build:
    'InitializeControl' does not exist in the current context
    The file '/_controltemplates/15/SP2013Controls/SPControls.ascx' does not exist.
    after 2nd Build Try:
    'InitializeControl' does not exist in the current context

  • Can i use Report viewer web part in SharePoint 2013 app to show SSRS reports?

    Can i use Report viewer web part in SharePoint 2013 app to show SSRS reports?

    SharePoint app you mean a simple sharePoint 2013 application like site, team site etc, or do you mean an App (the new feature like webPart).
    To add a SSRS Report viewver web part follow these steps
    1. Edit the page
    2. Choose insert a webpart
    3.Select SQL server Reporting -> SQL Server Reporting Services Report Viewer webpart
    4. Configure the webpart to show your .rdl files.
    (See the img below. Plz mark as answered if it helps).

Maybe you are looking for

  • My laptop is consuming all battery and heating to much

    Hi.. I'm running Archlinux on a HP Pavilion dv6 6154nr. Since I'd installed on it, it consumes around 25-30W and battery last like 1 hour, or and 1 hour and a half, when in Windows battery last like 2 hours or 3. CPU is heat like 64⁰C and im just run

  • Call Webservice published by Biztalk web service wizard failed.

    Dears I have met an werid issue when call a webservice publish be biztalk. in fact I have publish three web services totally.  the problem is two of them are working, and third is not. this is the iis log captured. I found 500 error, has any one met

  • Start tiles ( all of them ) do not work

    I clicked at Start > Insider Hub > it blinked for a second and sent me back to desktop. Same applied to all tiles. The all apps shortcuts  at the left do work.

  • Wrong formular in Query Designer

    A Query is calculated by means of a formula the deviation in per cent from the current year to the previous year. As result one receives however partly a division by zero and false value-deposits one the formula in the cells, then one receives a corr

  • Maverick doesn't recognise iPod touch 4th generation on iTunes

    my macbook pro late 2011 doesn't recognise iPod touch 4th gen 6.1.5 on iTunes. I read another thread how to sync via WiFi or ethernet but i don't understand. I just want to sync my music.not apps.