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

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

Displaying Work Email in Web Part

Posted By:      Posted Date: September 17, 2010    Points: 0   Category :SharePoint
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?

View Complete Post

More Related Resource Links

C++ at Work: Event Programming, Part 2


Last month I answered a question about implementing native events in C++ (see C++ At Work: Event Programming). I discussed events in general and showed how to use an interface to define event handlers for your class that clients must implement to handle events.

Paul DiLascia

MSDN Magazine March 2006

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?


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!!


Regular Expression, Email Validation, Consective dots name part

Hi All Can you please help me to modify this regex to validate consecutive dots in the name part (before @) of the email string.  For example, i want to disqualify an email string like (george...antony@gmail.com).  But an email string with single dots in the name part should be allowed (george.antony@gmail.com).   This regex is validating the consecutive dots after the @ sign (domain part) .    All other validation with this regex is as expected.   ^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$     Thanks in advance george

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

SharePoint 2010 Chart Web Part does not appear to work

Using the sharepoint chart web part does not appear to work. Plotting a pie chart from a list with 10 items in it.  Using a numeric field for a Y axis and a choice field for X axis. The choice field has 4 possible selections. Clearly I want a pue chart with 4 slices. What I get is a pie chart with 10 slices, not much use. Fine I thought we've got this optional 'Group by field' so I'll group by my choice field. But then I get a pie chart with one slice?! Am I being dumb or does the chart web part not work properly?

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

XML Viewer web part and SharePoint list RSS feed doesn't work

Hello, When I want to use the XML Viewer web part and set the XML URL to an RSS feed from a SharePoint list I get this error: Cannot retrieve the URL specified in the XML Link property. For more assistance, contact your site administrator. The URL I'm trying looks like this: http://sp2010/_layouts/listfeed.aspx?List=%7B76FD9EEE%2D9354%2D444E%2DBE3C%2DA9AE2C4B2063%7D I've seen blogpost that discuss this and they say that this is because of a security issue and that I have to enable anonymous access in order to display the RSS feed. Is this the only option there is ? I don't want to enable anonymous access on my SharePoint site. Why can't SharePoint just request the RSS feed with the credentials of the logged in user ? Or am I missing something here?

Custom Web Part doesn't work with in anonymous access

Hi there, I have a custom webpart in a farm solution deployed to my site. Anonymous users should be able to view the site, however they can't because they are required to login due to the custom web part. If i remove the webpart from the page, anonymous users can view the site perfectly without the need to login. There is nothing really special about the webpart. It's a visual web part which uses the site and it's web data to display a sort of menu. Any idea? Thx in advance! Brecht

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!

The Group Work Site template has the "What's New" web part on it's home page and I have the follow


I can't find that web part as something I can use elsewhere? As in, I can't add that web part on other pages made even on the same site. What would be ideal is to have that web part available to add as needed to other sites/pages of course. As it stands, for me it seems the only place I can use that web part is on the home page of a new "Group Work Site", i hope that I'm wrong. I've tried exporting the web part, but the importing does nothing when trying to import it to other sites, of course other 2010 sites. Please let me know how I may add that web part to my available to use web parts please.



How to get Email of Current User Data View Web Part Sharepoint 2010 and pass to WebService data sour

I have to pass in the email address of the current user to a web service data source (run time) of a Data View Web Part.

My Question is:

a) How can I get Email address of current user based  in DVWP.
I know we can get the CurrentUser using the CurrentUserName but how do we get the Email for the Current User.

b) After getting the Email how do we pass to the Web Service.

Send file as an email in work flow


My company works out of a SharePoint doc library to process orders.  Sometimes the orders need to be sent to another department.  The other departments need the files emailed to them. I only have access to SPD-07 - I would like to create a workflow something like:  If department = techservices, email file to techservices@email.com then delete the item. 

Is this possible?

The other departments have SharePoint sites, but they are not in other sites (they are top level sites in the root as our dept is). I had thought if i could copy and move, but this is not an option unless it is in the same site.

Any help much appreciated!

Web Part Doesn't work with in anonymous access in Sharepoint 2010


I built a site in sharepoint2010 with anonymous access , on one of its page it has simple Visual Web part.

but anonymous access , am unable to c the webpart.

if i sign in , i can c the webpart?

Any thoughts?

Thanks in Advance!

Share Knowledge and Spread Love!

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 :


Displaying a one-question survey in a web part


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 :-)

Document ID Lookup Box Web Part needs refresh to work twice


Hello all,

The nice and new Document ID Lookup Box Web Part which allows you to search for a document by the ID,

works fine once, but if you try to use it again, without refreshing the page it does not work.

any one ?



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