C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




spliting string


Posted Date: 01 Feb 2008    Resource Type: Code Snippets    Category: String Manipulations

Posted By: rpm77       Member Level: Silver
Rating:     Points: 5



This code will help u to split a string. if ur string contains seperators such as comma(,),semicolon(;),colon(:) etc. u can easily split tht with this code



This code taking seprator as (:) & breaking string

u can use this code on page_load event



string sep= "abc:xyz:100:200:300";

string[] arrsep = new string[0];

char[] seprator= { ':' };

arrsep = sep.Split(seprator);

for (int i = 0; i< arrsep.Length; i++)
{
Response.Write(arrsep[i] + "<br>");
}






Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Splitting string  .  Split function  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: How to do String Manipulations in c#
Previous Resource: Trim Leading Characters using SQL functions
Return to Discussion Resource Index
Post New Resource
Category: String Manipulations


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

doors in nj

Contact Us    Privacy Policy    Terms Of Use