Static Web Part

Hi ,
I have a basic doubt which I could not solve despite repeated trial and error . I could not differentiate between static and dynamic web part . By definition, placement of the VWP within a web part zone would classify it as a dynamic one . Only Dynamic Web
parts can be customized and interacted with , using the browser . 
But I created a web part page and placed the web part outside the zone , which made it a static WP . But still I am able to customize the title and border . 
Am I doing something wrong ?
Thanks,
Grigory

If the intent is to create a new page layout to meet your custom web part zone requirements, then you can create custom page layouts and use those. In the custom layout you can decide the zones you want and you can also embed specific web part if you don't
want them to be edited.
Regards, Mahesh

Similar Messages

  • Best way to share information between different instances of a web part

    Hello,
    I'm developing a web part that will make changes to a A.D. OU. I don't want to grant the application user rights to the OU and I would like to store the information inside the web part, but dynamically, something like:
    static string username="";
    static string password = "";
    static string OU = "";
    So, when the web part find these strings empty ( for ex after IIS restart) , it would ask for username/password and store them at the static strings. Someone (the administrator?) would fetch the page (with the webpart) and fill the strings. The next user
    that will come to the page, he shouldn't  be asked for filling up the username/password.
    So, I need to share information between instances of the same web part. Can it be done with static variables? Is there any other better solution?
    Will this work with the same web part in 2-3-4 pages?
    Thank you
    Christos

    Hi Xristosk,
    From a security perspective and also in the interest of making the solution more robust (e.g. I don't think the admin is going to be too happy if he needs to enter in a username/password pair each time an IISReset happens, or the web server dies) what I'd
    suggest (and typically do) is to separate the request from the actual performing of the work.
    E.g. Keep the username/password pairs out of the web part configuration completely, and instead just make the web part be a form that submits to a list (or db) for the required change. 
    Then you can have a separate process (e.g. timer job or windows scheduled task) that has permission to read from the SharePoint list, and also has permission to write into the AD OU.  In terms of storing usernames/passwords - typically you'll want to
    avoid doing this.  If you have to then you can consider the Secure Store Service (preferred).  What I'd be most inclined to do is not store any password at all, and instead make sure that the account that the timer job or the scheduled task runs
    as has appropriate permission to write into AD.
    To answer the last part of your request, because the actual request is separated from the 'doing of the work' then this approach will work fine with 1,2,3,4, n pages.
    HTH
    -Michael.
    Please remember to mark your question as answered and vote it helpful if this solves or helps with your problem. *******************************************************************************************************

  • Getting error while adding field to data viewer web part

    I have custom EditItemForm for a custom list having over 100 columns. That EditItemForm contains a DataFormWebPart in edit mode having over 100
    <SharePoint:FormField controls.
    If I browse for the above page in internet explorer, I got got the generic error:
    "Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such
    as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator.
    Correlation ID:XXXXXXX"
    I went to Log, and got the exact error details as follows,
    "Error while executing web part: System.StackOverflowException: Operation caused a stack overflow.     at
    Microsoft.Xslt.NativeMethod.CheckForSufficientStack()     at <xsl:template name="dvt_1.rowedit">(XmlQueryRuntime , XPathNavigator , Double , String )     at <xsl:template name="dvt_1.body">(XmlQueryRuntime
    , IList`1 , Double , Double )     at <xsl:template name="dvt_1">(XmlQueryRuntime , XPathNavigator )     at Root(XmlQueryRuntime )     at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument,
    XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean closeWriter)     at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter
    results)     at System.Xml.Xsl.XslCompiledTransform.Tr..."
    Then I thought of removing some columns from the dataFormWebpart. I removed several
    <SharePoint:FormField controls from the dataFormWebpart. Then page started working fine.
    Please let us know if there is any workaround to fix this issue.
    Note: The same page was working fine in MOSS 2007 before migrating to SharePoint
    2010.
    Sharepoint Consultant from NY, USA

    In SP1 and earlier, you could sometimes fix this by breaking the "dvt_1.rowedit" template into smaller templates and calling them sequentially. Sadly, this no longer works in many cases.
    Microsoft's "fix" for this problem appears in the August 2011 CU (Possibly earlier in the June CU - haven't checked that one). They have implemented a one-second timer that artificially throws a stack overflow exception if a transform takes longer than 1
    second.
    Reflector shows us what's going on. As the stack trace shows, it's in Microsoft.Xslt.NativeMethod.CheckForSufficientStack().
    A dateTime variable has been set to Now + 1 second when a Microsoft.Xslt.NativeMethod.SetStackBarrier() method was called, then we have this gem:
    public static unsafe void CheckForSufficientStack()
    void* stackBarrier = StackBarrier;
    if (dateTime < DateTime.Now)
    throw new StackOverflowException();
    if (&stackBarrier < stackBarrier)
    throw new StackOverflowException();
    As you can see, there has been no real stack overflow, and there isn't even any provision for allowing a SharePoint admin to adjust the now-plus-one-second hack.
    The MSFT support person we spoke with said this code was added in the August CU to "prevent long transforms from bringing down the server." So... Let's see what the SP1 version of the same method looks like:
    public static unsafe void CheckForSufficientStack()
    void* stackBarrier = StackBarrier;
    if (((++callCount & 0xffff) == 0) && (dateTime.AddSeconds(5.0) < DateTime.Now))
    throw new StackOverflowException();
    if (&stackBarrier < stackBarrier)
    throw new StackOverflowException();
    Well, at least it allowed 5 seconds instead of 1....

  • Having the same web part twice on a page - how to distinguish parameters

    Hello,
    I've made a web that takes a set of custom properties . If I put the web part twice  on the same pages, all the web parts are using the same custom parameters. 
    I understand that the culprit is in line: public static string strList, but I wonder if there has been a work around
    public static string strList;
    [System.Web.UI.WebControls.WebParts.WebBrowsable(true),
    System.Web.UI.WebControls.WebParts.WebDisplayName("MY display name"),
    System.Web.UI.WebControls.WebParts.Personalizable(
    System.Web.UI.WebControls.WebParts.PersonalizationScope.Shared),
    System.ComponentModel.Category("ShowFieldBasedOnURL Custom Properties"),
    System.ComponentModel.DefaultValue("")]
    Thank you
    Christos

    correct, that's what I have mentioned, and I didn't see any static method from the link that you have provided.
    Question is have you tried refactoring the code as per the example you have referenced.
    Usually you will get the error message when you call non static method within static method, you should make the property as static, otherwise you will get the error message.  so try changing the code to the link as per the forum thread
    you are referring to.
    see here-
    http://www.wictorwilen.se/Post/Web-Part-Properties-part-2-Editor-Parts.aspx
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/3aa35b0e-27f9-4dbb-ab8a-2fc1d7435850/custom-web-part-properties-in-visual-studio-2012
    https://www.nothingbutsharepoint.com/sites/devwiki/articles/pages/how-to-create-sharepoint-2010-custom-visual-webpart-properties.aspx
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • Dynamically Link OneNote Page to SharePoint 2010 Page Viewer Web Part

    I'm trying to display a OneNote page within a SharePoint 2010 Page Viewer web part whereby the OneNote page can be edited by users with read/write permission, but not having any success. 
    I was able to save the OneNote page as a web page (.mht) file and display it as a static page within the SharePoint Page Viewer web part.
    Any suggestions on how it can be done would be greatly appreciated.
    Thanks!

    I'm afraid there might be no way to integrate OneNote with SharePoint as your requirment. Sorry.
    Tony Chen

  • Web Part Error in Sandbox solution

    Hi, I used the following code for "ADD POST IN NEWSFEED USING C#" in sandbox solution 2013.
                        string serverUrl = "http://sanchit:5097/";
                        string accountName = @"tafecorp\spservices";          
                       SocialDataItem userMentionLink = new SocialDataItem
                            ItemType = SocialDataItemType.User,
                            AccountName = accountName
                        SocialPostCreationData postCreationData = new SocialPostCreationData();
                        postCreationData.ContentText = "{0} does great work!";
                        postCreationData.ContentItems = new SocialDataItem[1] { userMentionLink, };
                        try
                            ClientContext clientContext = new ClientContext(serverUrl);
                            SocialFeedManager feedManager = new SocialFeedManager(clientContext);
                            feedManager.CreatePost(null, postCreationData);
                            clientContext.ExecuteQuery();
                            lblReport.Text = "The post was published";
                        catch (Exception ex)
                            lblReport.Text = ex.ToString();
    When i run the code the following error comes.  How to solve this issue. Thanks in advance.
    Web Part Error: Unhandled exception was thrown by the sandboxed code wrapper's Execute method in the partial trust app domain: An unexpected error has occurred. Correlation ID: 5f639c9c-7639-50f3-7dce-34ae387d3ed0. 

    Share the details about correlation ID in ULS logs
    http://sharepoint.stackexchange.com/questions/59679/sandbox-unhandled-exception-was-thrown-partial-trust-app-domain
    Well it's taken a few days but I've finally managed to work this one out however it did involve me having to dissect the whole project and reintroduce each piece one at a time.
    A few issues were causing it:-
    1) I had set one of the projects "Include Assembly in Package" property to false.
    2) A static method was making a call to an SPList which turned an empty (null) value. Added a value to that item and the error disappeared.
    3) I'd declared a variable as being of type double and set its default value as 0.
    Now why the system couldn't have told me that's what the problems were rather than throwing this generic error is a different story! It would have saved me many an hour of confusion.
    http://stackoverflow.com/questions/3905388/sharepoint-2010-sandboxed-webpart-error
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/c11ab5df-562e-43b4-b350-5c4d07da8bf3/sandbox-solution-error-unhandled-exception-was-thrown-by-the-sandboxed-code-wrappers-execute?forum=sharepointgeneralprevious
    http://sohilmakwana.wordpress.com/2013/11/29/sandbox-error-unhandled-exception-was-thrown-by-the-sandboxed-code-wrappers-execute-method-in-the-partial-trust-app-domain/
    If this helped you resolve your issue, please mark it Answered

  • Remove empty space in Picture Library Slideshow web part

    I'm using Picture Library Slideshow web part in one of my pages. The web part itself is working fine, but I'm a bit annoyed by the white space the web part is consuming.
    The web part puts lots of empty space between the web part header and the picture and also to the bottom of the web part.
    The Slideshow web part generates the CSS on the fly, so I cannot really get a control of it cause it doesn't have any static CSS classes(that I know of, at least).
    How could I get rid of these white spaces?

    Hi Pekch,
    Thanks for your post.
    You can achieve this using JQuery.
    1.      
    Download
    JQuery to your SharePoint Server, and then add a Content Editor Web Part to the page;
    2.      
    View the source code using IE developer(Press F12), the code likes below:
    <td style="width: 195px; height: 213px;">
                    <div style="..." id="MSOPictureLibrarySlideshowWebPart_ctl00_m_g_ffa17524_ffa7_44e7_974c_1756a39257b9_cell">
                    </div>
    </td>
    3.      
    So now, you can find the control whose id is started with “MSOPictureLibrarySlideshowWebPart” using the JQuery Code below:
    jQuery('div[@id^=”MSOPictureLibrarySlideshowWebPart”]')
    4.      
    Remove the style of the “div” and his parent “td”. Because there is a “Width” attribute in both levels.
    More information:
    http://weblogs.asp.net/jan/archive/2010/10/05/getting-started-with-jquery-templates-and-sharepoint-2010.aspx
    http://www.bennadel.com/blog/1003-Cool-jQuery-Predicate-Selectors.htm

  • How to play share point library video in custom web part

    Hi  ,i want to play my share point library videos and computer videos  in custom web part , how can i do this ,playing static video and library video both are common.
    Thanks,
    Madhu.

    Do you want to create a player from scratch or use eg. the Silverlight media player:
    http://jomit.blogspot.de/2009/12/using-silverlight-media-player-of.html
    or   alternatively html5 and the <video> element (will probably require a couple of tweaks in the master page) ?
    Kind Regards
    Bjoern
    http://spviking.com
    Twitter: Follow @bjoern_rapp

  • Creating chart from web part sharepoint 2013 online

    hello, my name is peter and i know to solve the problem with creating charts from web part . i am familiar with excell services, but it doesnt solve my problem because it is not taking data from web parts so it is static. Thank you for your time

    If you want info about creating charts in web parts, this one is quite nice:
    http://social.technet.microsoft.com/wiki/contents/articles/17614.adding-charts-to-standard-webparts-and-visual-webparts.aspx
    If you're worrying about getting data from another web part, you need to use web part connections and start here:
    http://msdn.microsoft.com/en-us/library/ms469765(v=office.14).aspx
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • List view web part not reflecting changes made to list view in SharePoint Designer

    Dear All,
    When adding a list view web part containing a view modified in SharePoint designer (e.g. conditional formatting applied, or group headers modified) I'm finding that the changes made in SPD are not reflected in the web part. 
    For example, I go into SPD edit a view, and the view appears correctly when I go back into SharePoint, however when I link to the view within a list view web part it results in losing the changes made in SPD. 
    Becasue it's a publishing page I'm unable to edit the contents of the web part in SPD.
    I'm sure this is expected behavior but how do I get around this?
    Thnaks,
    MDB

    Try below
    http://stackoverflow.com/questions/19533998/sharepoint-designer-doesnt-show-anything-in-list-and-libraries-link
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/a63a1894-6b1d-420a-95dd-b6c546eab34d/updates-made-to-sharepoint-designer-2010-workflow-do-not-show-up-on-the-server?forum=sharepointcustomizationprevious
    http://stackoverflow.com/questions/5959521/sharepoint-designer-saves-the-changes-but-it-does-not-affect
    http://social.technet.microsoft.com/Forums/en-US/1e9a8c27-bbc5-4a6f-8daf-4b243182f543/changes-in-sharepoint-designer-2010-not-showing-in-sharepoint-server-2010-page?forum=sharepointadminprevious

  • How do I add web part in the event receiver after the site is provisioned in SP 2010?

    How do I add web part in the event receiver after the site is provisioned in SP 2010?

    You try the below steps:
    1. Use long operation to provision the site, so that it does not time out in process.
    2. After provisioning, you can add a page or add the web part directly to landing page of site.
    For each of the above steps you can find the sample code pieces.
    if you couldn't get that, let me know. I will share with you.
    Thanks, Ashish If my response has helped you, please mark as answer.

  • Reporting Services Webpart - web part does not auto render consistantly

    We are on SharePoint 2010 (integrated with Reporting Services)- on several sites we have added the Reporting Services Web Part and with a saved parameter.  The behavior of this web part is not consistent.  There are times when I open up a site
    and the web part will auto render the report.  5 minutes later I can go into the same site, and the web part does not auto render the report.  I have to do edit page, or close and re-open the web site.  Has anyone experienced this type of behavior. 
    I've looked for assistance with this issue on-line cannot find anything that specifically addresses this issue.   

    Hi Karen,
    If the parameters have default values in the report, then the report can be rendered automatically.
    For this issue, I recommend to verify the things below:
    Does this issue occur when you open the page with the web part in a new tab in the browser or go back to the previous opened tab?
    Does this issue occur in the server side or client side?
    Please add the site to trusted sites in Internet Explorer to see how it works.
    Please change another browser to see how it works.
    For narrowing down the issue scope, please test with another report and compare the results.
    Thanks,
    Victoria
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Unable to view Report Filters on Excel Services web part

    I have an Excel 2010 file with Pivot Charts. I want users to be able to select filters for the pivot charts to modify their chart/report as needed.
    This excel file with Pivot Charts is visualized using Excel Services Web Part on SharePoint 2010.
    My problem: The Pivot Chart Filters do not appear on SharePoint. They are available when the file is opened in Excel 2010.
    Is there a way to have chart/report filters show up on SharePoint (excel services web part)?

    As per the article below it seems that Pivot Chart Filtering is not available with Excel services. The article reads
    "PivotChart reports are not interactive when displayed in a browser. You cannot filter a PivotChart report directly, but if you interact
    with the PivotTable report that supplies data for the PivotChart report, the PivotChart report updates accordingly. This means if you filter the PivotTable report, the PivotChart report updates to show the filtered data set."
    Unsupported Features in Excel Services
    Though this article is for MOSS 2007 but if you read the following article for SP 2010 it reads "All other unsupported features continue
    to behave as they do in Office SharePoint Server 2007 for Excel Services."
    http://msdn.microsoft.com/en-us/library/ff595319(v=office.14).aspx
    Amit

  • "One or more field types are not installed properly" when I try to add a second discussion board web part to a page

    I have a SharePoint 2010 site with two discussion boards. I added one additional field to each of the boards: a lookup to another list to link the discussions to individual projects. I need 2 different boards because they have different posting permissions
    (one is open to all for comments, and one is open only to the project team to post but everyone can read).
    When I go to the pages for each of the discussion boards, they work fine.
    But I'm putting together a page for individual projects, and want to have web parts for both discussion boards on the same page, showing the discussions related to the selected project.
    I am able to add one of the discussion boards to a web part in the page, but when I add the second discussion board to the page, the new web part contains:
    One or more field types are not installed properly. Go to the list settings page to delete these fields.
    Correlation ID: blah blah blah
    I've searched for similar postings, but mostly I see this error message related to migration from 2007 to 2010 -- this is not the case here: I created both discussion boards, and the whole site, in SP 2010. I've also found this message related
    to coding errors using SPQuery. I am not doing any coding here, just using the built-in SharePoint 2010 Edit Page -> add a web part -> select the discussion list.  I tried doing it from SPD with the same result. 

    I figured it out. I was using ?FilterField1=fieldname&FilterValue1=value on the URL to the page to pick out one project number. The web part I was trying to add was for a list that did not have that particular fieldname. I didn't realize that would matter
    since I was using the Connections -> Get Filter Values From to get my filter values from the main web part, which does have that fieldname.
    I added a field with that fieldname to the other list and set a workflow to copy the lookup value of the project number lookup field into the new field. Now all is working fine.  Sorry for the wild geese in my original question.

  • Master Page Header and Footer in Page Viewer Web Part

    Hi.
    I created a View in Pages Library to view specific folders.
    After that i added one Page Viewer web part to one of the aspx page.
    There in the Page Viewer web part properties Link i have provided the url of the view.
    It is displaying the folders but at the same time it is displaying the master page header and footer inside the web part.
    Now i need to display the folders alone inside the Page Viewer web part.
    Please let me know how to exclude the master page header and footer inside the Page Viewer web part?
    Regards,
    Sudheer
    Thanks & Regards, Sudheer

    I think that is the default behavior of the page viewer webpart.
    In the page viewer web part,your just enter the url of the website.So that is treated as webpage and it is displaying as per page.
    http://meritsolutions.com/meritmatters/archives/576-Displaying-a-File,-Folder-or-Web-Page-in-the-Page-Viewer-Web-Part.html
    If you want to display a folder, type in a network path to that folder under Link and the folder content will be displayed. 
    Find the more details about page viewer webpart in msdn
    http://office.microsoft.com/en-in/sharepoint-server-help/page-viewer-web-part-HA010024045.aspx

Maybe you are looking for

  • I can no longer save SIMs 2 games

    Dear Apple, I include a letter below that I sent to Aspyr Tech Support, which will help explain the situation. There were also problems with Fetch not uploading, because it said that that I could not save to the folder, and to try selecting another f

  • Transfering FCP Document files to a windows comp..I can't get it. Help!!!!!

    I transfered all the fcp document files to my windows desktop computer over the network to free up some space on my mac, thinking I would be able to use the files later on on my mac thru the network. The files aren't shown in fcp file types but in ex

  • GP and WebDypro ABAP

    Hello, We are using WD ABAP as an input form in our GP process.  Currently, WD ABAP contains input parameters but doesn't have the same output parameter functionality that WD Java does.  From reading other threads on SDN and logging an OSS message, S

  • Cancellation of differential invoice

    Hi All, I had a question on cancellation of differential invoice. If I cancel a differential invoice with net value negative will it create a cancellation invoice with a net value negative or positive. Thank you for your help, Regards, Shanu Jain

  • Web Dynpro for ABAP iVIew's Namespace parameter

    Hi Gurus, I am trying to create Web Dynpro for ABAP iVIew in portal There I have confusion while giving namespace say I m trying to create iView for standard WD4ABAP Application which lies in SICF at below location /default_host/sap/bc/webdynpro/sap/