Logo 
Search:

Asp.net Forum

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds

c# left

  Asked By: Abelerd    Date: Oct 04    Category: Asp.net    Views: 536
  

what is the equivalent in c# for left function in vb

ids = Left(ids, Len(ids) - 1)

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Cheri Garcia     Answered On: Oct 04

use the substring method of the string object
ex:
string s ="Hello!";
Response.write(s.Substring(0,2));
outputs: He

 
Didn't find what you were looking for? Find more on c# left Or get search suggestion and latest updates.




Tagged: