Microsoft
Software
Hardware
Network
Question : How do you TRIM n characters from a string from the right.
I should trim last name of a employee to 18 characters even though if I get a 30 character last name from the database.
What is the best way to do that ? any help would be greatly appreciated.
Thanks
Answer : How do you TRIM n characters from a string from the right.
That's actually among the best ways to do it. You can remove the PadRight from the Substring.PadRight because you're already guaranteed 18 length.
Random Solutions
jquery validator and asp.net updatepanel
Move Sharepoint 2010 DB's from one server to another
Dot Net IL Code to C# conversion
usercontrols, docking and scrolling problems
Limiting User Access
Refining an algebra formula
Boot Acer Ferrari 1200 laptop from dvd to upgrade vista to windows 7
Ajax or flash..For online Jewellery designer ?
how to add cookie using a servlet
Detect Session State TimeOut