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


Top 5 Contributors of the Month
david stephan

Post New Resource Bookmark and Share   

Using SharePoint Designer in Data View Web Part the people picker with multiple names Display

Posted By:Sagar Pardeshi       Posted Date: September 12, 2013    Points: 40    Category:    URL: http://www.dotnetspark.com  

Using SharePoint Designer in Data View Web Part using the people picker with multiple names Display using Javascript
 

Ex. 2; #abc;3;#pqr

Ans: abc;pqr

<script type="text/javascript">
     function CleanNames(textclean) {
          return text2clean.replace(/[;#0-9]+/g, "; ");
     }
</script>

Then call it from your XSL

<xsl:if test="string-length(@Employess) != 0"> 
     <script type="text/javascript">document.write(CleanNames("<xsl:value-of select="@Employess" />"));</script> 
</xsl:if>

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Here

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