.NET Framework - XSL Question on substring

Asked By SharepointGirl
19-Jan-10 08:06 AM
We are importing phone numbers into Sharepoint from Active Directory.
But all US phone numbers show with a +1 in the front, and all non US
numbers show with a + in the front. We would like to display all US
numbers without the +1, and all non US numbers without the +.

So what i have so far is <xsl:value-of select="substring-after
(workphone, '+')" />.....this only gets rid of the + sign, but not the
+1 infront of the US numbers. Can someone help me with this issue?
Thank you!!
Active Directory
(1)
Sharepoint
(1)
Withstart
(1)
Workphone
(1)
Infront
(1)
Crit
(1)
Whne
(1)
XSL
(1)
  Marc replied to SharepointGirl
19-Jan-10 02:31 PM
Why do not you use a <xsl:choose> with a test with
start-with(workphone,'+1') to suppress the '+1' end after that an other
whne with the test on '+'?
Marc

Le 19/01/2010 10:08, SharepointGirl a ?crit :
Create New Account
help
Get Parent Directory .NET Framework Hello, On a C# file I need to get the current solution parent Location; But now from this location it is even worse. I need to get the directory from 6 levels up. I have been using Path, Directory, etc . . . But cannot find a good way to do this. How can I do this very last segment. So you can just call GetDirectoryName() multiple times to backtrack to the directory level of interest, relative to a given path. Are you using that method? If so file you are looking for. o If I solved it using the following: _codePath = 3D Directory.GetParent(". . / . . / . . / . . / ").FullName; But to be honest I am not sure if this the best way was looking for something like: GetParent(String path, Int32 depth); And I would return that Directory: _codePath = 3D IOHelpers.GetParent(currentPath, 4).FullName; Does this make sense? in In fact I dte.aspx Something like this: public DirectoryInfo GetParent(String path, Int32 depth) { DirectoryInfo parent = 3D Directory.GetParent(path); return depth = 3D = 3D 0 ? parent : GetParent(parent.FullName, depth - 1); } What do current if (depth = 3D = 3D 0) return new DirectoryInfo(path); / / Define parent DirectoryInfo parent = 3D Directory.GetParent(path); / / Return parent or get new parent return depth = 3D = 3D 1 ? parent : GetParent
the reluctance to redistribute DLLs, especially if that alternative involves installing them in the system32 directory. Versioning issues, installer problems, etc. But in truth you may do your customers a disservice used inappropriately. it is just as easy to install multiple assembly files into the installation directory as to install just one, and the net effect to the user is basically the BuildMerged.exe Build.exe FlyOnDreams.Net.dll Ionic.Zip.dll Set platform to 'v2', using directory 'C: \ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319 \ . . \ v2.0.50727' for mscorlib.dll Running PeKind value. AssemblyResolver: Assembly 'FlyOnDreams.Net' is referencing assembly 'System'. AssemblyResolver: Attempting referencing assembly's directory. AssemblyResolver: Did not find assembly in referencing assembly's directory. AssemblyResolver: Attempting input directory. AssemblyResolver: Did not find assembly in input directory. AssemblyResolver: Attempting user-supplied directories. AssemblyResolver: No user-supplied directories. AssemblyResolver: Attempting framework directory. Can not find PDB file. Debug info will not be available for assembly 'System'. Resolved
Help with Active Directory Module .NET Framework I am new to power shell. I have it on windows 7 http: / / technet.microsoft.com / en-us / library / dd378937(WS.10).aspx Which editions include the Active Directory module? The Active Directory module is available in the following editions of Windows Server 2008 R2 and Windows 7 this on my server http: / / technet.microsoft.com / en-us / library / dd391908(WS.10).aspx Active Directory Web Services So, even if I find the module on my windows 7 box, I
cannot add user into Active Directory via ASP.net(c#) .NET Framework My System Have 2 Computer: Frist Computer act as A domain Controller that has a Active Directory, RADIUS Server, DHCP and DNS Second Computer act as A Web Server(join domain with Team System 2008 I create a website on a second computer to add user in active directory. I have 3 file: 1.Default.aspx - Let user fill their privacy information 2.ViewRegisterdata.aspx - Let user confirm their information before it is added to active directory. In this file, there is a Viewregisterdata.aspx.cs which collect user information and send
cannot add user into Active Directory via c#.net .NET Framework My System Have 2 Computer: Frist Computer act as A domain Controller that has a Active Directory, RADIUS Server, DHCP and DNS Second Computer act as A Web Server(join domain with Team System 2008 I create a website on a second computer to add user in active directory. I have 3 file: 1.Default.aspx - Let user fill their privacy information 2.ViewRegisterdata.aspx - Let user confirm their information before it is added to active directory. In this file, there is a Viewregisterdata.aspx.cs which collect user information and send