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

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Displaying a one-question survey in a web part

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

Hey all,

I'm trying to display a one-question survey in a web part. I don't want to ever have to use designer when my site's deployed though, I want it to simply display the latest one-question survey, in a web part. So the user creates a survey, and the web part changes automatically - ideally it would show the first question but I could live with the 'standard' survey view with a 'respond to survey' link, even though it's a bit fugly

I've just had a big chat about this here: http://social.msdn.microsoft.com/Forums/en/sharepoint2010general/thread/14380447-c13f-4365-8423-554595c4b726

The web part resulting from that discussion seems really tailored to the one list and as a result doesn't meet my needs :-(

Any thoughts? Cookies up for grabs :-)

View Complete Post

More Related Resource Links

Survey ListView Web Part - For One Question Surveys


Hey all,


I want to create a really simple ListView Web Part for one question surveys, all it does is show the question and the user can answer it. After being answered the web part should show results.

This is similar to the current listview web part rendering apart from the Listviewwebpart starts with a 'summary' screen which i hate, the user has to click 'respond to survey' before they can proceed and i'd really just like the question on the page

Has anyone got any idea how I can achieve this without framing the URL that the respond to survey links the user to?

Many thanks,


How do I prevent displaying membership of an AD group in Colleague Tracker web part?


I'm a big fan of the Colleague Tracker web part in MOSS 2007 My Sites, especially the option to show 'Membership Changes'. This is often useful in highlighting that a colleague has been added to a certain AD group.

We now want to hide the membership of certain AD groups from the colleague tracker. For example, if an AD group called 'Project X' is created, we don't want membership of the group broadcast throughout the My Sites where colleagues are tracking colleagues.

My first thought was that we could use AD to 'deny read' on the 'Project X' AD group to all SharePoint related service accounts. This does not appear to have worked, although perhaps the configuration is more complex? The best approach would seem to be to prevent the group membership data ever being imported from AD to the SSP, hence my 'deny read' approach.

Has anyone successfully implemented this, or does anyone have any better ideas?


Web Part Namespace & Deployment Question



I have a web part deployment and development question. Probably newbie questions..

For web parts which will only be used in certain web applications, I can definitely see creating custom CAS policies etc.. and deploying the dll only to the Bin of the Web Application, but what is the best practice for deploying a Farm wide web part that everyone will use?

I assume it goes in the GAC, and additionally, are there any best practices as far as the namespaces for web parts when they are going into the GAC?

For example, if I go into the Assembly folder and look at all the assemblies in the GAC, is it "okay" to have various globally deployed web part assemblies in there? Like, "MyCustomWebPart" sitting in there with the other sharepoint assemblies? Seems messy to me, but if these are "one-off" web parts that won't have a bunch of classes within a single namespace, it seems like what needs to be done.

Hopefully that was clear enough!

Data form web part not displaying - Unable to display this Web Part. ....



I am designing a data form - adding some formatting etc.  I am able to see the webpart correctly in SPD split view, but when I trying to preview it, it gives me the following error

Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Windows SharePoint Services-compatible HTML editor such as Microsoft Office SharePoint Designer. If the problem persists, contact your Web server administrator.
ANy help would be welcome, I have spent a lot of time on this page and don't want to do it again.  THere are a lot of fields and it's a tedious process to move them to the correct location.  I am at my wits end, I am not sure how to debug this!!


Displaying Images in an RSS feed web part

I have an RSS feed with images. the rss web part doesnt seem to show me these images only the text. its on moss 2007. is there anyway to get these images displaying in the feed. thanksSharepoint Customiser

Displaying a count of records in a Data View Web Part outside the web part itself?

I have a DVWP with 400 rows. I have these inside a Div tag, which makes it scrollable. I also have several URL filters set up to show certain records. I would like to add the count to the page to display the number of records when the filters are activated. I have added the View Footer to the DVWP but this just gets placed at the bottom (still inside the Div tag). It would also be cool to be able to do counts with criteria so I could do comparisons (ie, 50 records overdue/400 total etc). Thanks

Sharepoint Survey Question

I am making a single question survey to vote on a list a videos in a document library.  Is there a way to make the options links?  I have tried quote a few things including hard coding the link (it just displays it all as text) and trying to lookup from a links list but the URL column is not availabe.  I'm open to suggestions but don't really want to do any complex mods in sharepoint. 

Replacing a text question in a Survey using JavaScript at runtime (document.body.innerHTML.replace)

Hi, I want to replace some of the text in a SharePoint Survey at runtime.  The idea behind that is to add a "header" or "title" to questions that are related together.  For example, let's say I have 2 related questions, a page separator, and 2 more related questions: (yes/no type of questions): Q1.  Are you between 20 and 40? Q2.  Did you went to college?   --page separator-- Q3.  J2EE Q4.  C/C++ The result on the final Survey should look like this: Tell us about you. Are you between 20 and 40?  Did you went to college?   --page separator-- Indicate what programming languages you know: J2EE C/C++ Simply, I tried to use the document.body.innerHTML.replace() in order to replace:  - Q1 with: <h2>Tell us about you.</h2>  - Q2 with ''  - Q3 with: <h2>Indicate what programming languages you know:</h2>  - Q4 with: '' Using the technique below, I added the following code in SharePoint Designer in NewForm.aspx: <asp:Content ContentPlaceHolderId="PlaceHolderTitleAreaClass" runat="server"> <script id="onetidPageTitleAreaFrameScript"> document.getElementById("onetidPageTitleAreaFrame").className="ms-areaseparator"; document.body.innerHTML = document.body.innerHTML.replace(/Q1/g,'

problem with displaying items in list view web part

I have a list view webpart at default display form. Default Display form display items (for example) from the contracts documents library. List view webpart also associated with the same documents library (contracts). In such case this webpart doesn't display any item. But if I add another list view web part associated with warrants document library it display item without any problems. Is it possible to bind list view webpart to another data source for contracts document library? Or maybe another solution? Thanks!

Displaying Work Email in Web Part

I need to display the email address ( Work Email in a "Current User Filter" ) of the logged on user in a web part. How do I do that?

question regarding displaying parameter value on the report header section



i have a tabular report which has 3 parameters.@begin date ,@enddate and @employeeid.the default value for the @employeeid parameter is "All" .the report works fine even if i don't enter any value for  the parameter @employeeid .

my question is:

i need to display the parameter value for the @employeeid in report header which is easy @parameter!employeeid.value

but I need to display "All" for @employeeid parameter in the report header even i don't enter any value for @employeeid 

i tried to do it by using the code below it is not giving me an error but it is not displaying "All" when i don't enter any value for the @employeeid parameter.


any help in this is greatly appreciated.



What Survey "Question and Type" would you use with:



In a SP Survey, I need a question like:






Where the user can type in a value for both Vendor and Course fields.
I was thinking to use a "Multiple lines of text" field and change its default value using SP Designer.  Perhaps somebody has a better -or more elegant- way to do it?


Sharepoint chart web part question



I'm playing with Sharepoint Enterprise 2010 chart web parts, and am having problems producing a roll-up chart. In particular, I have a Sharepoint list of the form:

6/20/2010, Apple
6/25/2010, Banana
7/1/2010, Apple
7/2/2010, Grape
7/5/2010, Banana

I'd like to produce a bar chart where the X axis contains the category (Apple, Banana), and the Y axis contains a count of the number of occurrences in the list. Is that possible with the built-in chart web part, or do I need to go to a third-party product? After playing with it for quite some time (and browsing the web), it doesn't appear possible.



Page Viewer Web Part question


Dear collegs ,

I have one question and hope that you can help me.

Namely, I added one Page Viewer Web Part to one SharePoint web page. Before that on my IIS I created one local web site with this link : http://localhost/Test/Home.html.

Inside my Page Viewer Web Part first I chosee Web Page and than in field Link enter link from my IIS : http://localhost/Test/Home.html.

When I open that SharePoint page than inside SharePoint I got http://localhost/Test/Home.html what is good.

That IIS web site have more pages, for example page Customer1 with the link http://localhost/Test/Home/Customer1.html.

What I would like to ask you, is possible from outside to open Page Customer 1 (http://localhost/Test/Home/Customer1.html ) inside Page Viewer Web Part without that must first open http://localhost/Test/Home/Customer1.html.

Other words, when click on some link to open directly Customer1 web page inside above created Page Viewer Web Part.



Unable to display this Web Part. Error while displaying External list in sharepoint website

I tried to create an external content type for a website and I got an error....here are the details of the steps I followed:

1. I created an team site in sharepoint server 2010.Nothing I added extra to the site.

2. Then I opened that site in sharepoint designer and created a new external data type.

this is an SQL server. I have a small database in my server, I added that as an external data type to this site.

3. I am able to add the database to my site.

4. Then I created an External List of type contact list as my database has article ID, author, data of creation etc.

5. This creation also sucessfull and when I clicked on create button , my external list appeared on the quick launch but it didn't displayed anything on the page it showed up the below error on the page.


Error Message :


Using the DVWP to display a one-question survey (like a 'poll')


Hey all,

I'm trying to follow this guide for 2010 -> http://www.endusersharepoint.com/2010/04/22/create-a-polling-web-part-with-sharepoint-designer-and-the-dvwp/comment-page-1/#comment-108532 - but i can't get the designer stage working, i'm assuming it's a 2010 idiosyncracy

I only want to deploy my final solution as code, to that end can anyone point me in the right direction for how to create this web part in my solution? (In an event receiver perhaps?) and how to display the one question?

Many thanks,


WSS3.0 - Survey Web Part Graphical Summary Width


Good morning,

I am currently exploring the use of Sharepoint 3.0 in our environment and have been running through the evaluation guide.  I created a Survey and added the web part to the right side of the main page using the Graphical Summary view.  The column width appears to hold firm at 375pt and the adjustment through modifying the Web Part doesn't have any effect.  How can I go about narrowing this web part so that it lines up with the rest of my right side content?  Any help is most appreciated.

Thank you,

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend