Click here to Skip to main content
14,689,406 members
Home » Discussions » ASP.NET
   

ASP.NET

 
AnswerRe: Refresh button resubmitting data - How to prevent this? Pin
Dinesh Mani18-Mar-10 22:14
MemberDinesh Mani18-Mar-10 22:14 
GeneralRe: Refresh button resubmitting data - How to prevent this? Pin
saanj19-Mar-10 0:36
Membersaanj19-Mar-10 0:36 
AnswerRe: Refresh button resubmitting data - How to prevent this? Pin
Arun Jacob19-Mar-10 0:50
MemberArun Jacob19-Mar-10 0:50 
QuestionPerformance: Many small file downloads Pin
Pavolh18-Mar-10 2:42
MemberPavolh18-Mar-10 2:42 
AnswerRe: Performance: Many small file downloads Pin
Aman Bhullar18-Mar-10 3:04
MemberAman Bhullar18-Mar-10 3:04 
AnswerRe: Performance: Many small file downloads Pin
R. Giskard Reventlov18-Mar-10 3:19
MemberR. Giskard Reventlov18-Mar-10 3:19 
GeneralRe: Performance: Many small file downloads Pin
Pavolh18-Mar-10 4:33
MemberPavolh18-Mar-10 4:33 
QuestionTypical String Manipulation [modified] Pin
Satish - Developer18-Mar-10 0:40
Member Satish - Developer18-Mar-10 0:40 
Hi, the requirement looks easily but i am not knowing how to achieve this.
i have two strings as below

string _mainstr = "INDI,GERM,ENGL,SCOT,BLAC,BANG,CHIN,JAPN";
string _substr = "CHIN,ENGL,INDI";


Now i want to remove all other country names from _mainstr which are not in _substr. But the order shouldn't be changed.

I am looking an ouput from _mainstr as follows

_mainstr = "INDI,ENGL,CHIN";

Here the order is important.

How can i get this in c#? Please give an idea
G. Satish
modified on Thursday, March 18, 2010 5:50 AM

AnswerRe: Typical String Manipulation Pin
Sneha Bisht18-Mar-10 1:54
MemberSneha Bisht18-Mar-10 1:54 
GeneralRe: Typical String Manipulation Pin
Satish - Developer18-Mar-10 3:22
Member Satish - Developer18-Mar-10 3:22 
GeneralRe: Typical String Manipulation Pin
Not Active18-Mar-10 3:36
mentorNot Active18-Mar-10 3:36 
AnswerRe: Typical String Manipulation Pin
JHizzle18-Mar-10 2:45
MemberJHizzle18-Mar-10 2:45 
GeneralRe: Typical String Manipulation Pin
Satish - Developer18-Mar-10 3:07
Member Satish - Developer18-Mar-10 3:07 
GeneralRe: Typical String Manipulation Pin
JHizzle18-Mar-10 4:53
MemberJHizzle18-Mar-10 4:53 
AnswerRe: Typical String Manipulation Pin
Not Active18-Mar-10 3:46
mentorNot Active18-Mar-10 3:46 
GeneralRe: Typical String Manipulation Pin
Satish - Developer18-Mar-10 4:01
Member Satish - Developer18-Mar-10 4:01 
GeneralRe: Typical String Manipulation Pin
Not Active18-Mar-10 4:04
mentorNot Active18-Mar-10 4:04 
Questionhow to give access permission on menu control based on user type from database using asp.net wit c# Pin
developerit17-Mar-10 23:19
Memberdeveloperit17-Mar-10 23:19 
AnswerRe: how to give access permission on menu control based on user type from database using asp.net wit c# Pin
VinodKumar0117-Mar-10 23:27
MemberVinodKumar0117-Mar-10 23:27 
AnswerRe: how to give access permission on menu control based on user type from database using asp.net wit c# Pin
Paul Unsworth17-Mar-10 23:36
MemberPaul Unsworth17-Mar-10 23:36 
Questionwhat is dll file for scanning the document using twain controlx in asp.net with vb.net [modified] Pin
vbmadhavi17-Mar-10 22:47
Membervbmadhavi17-Mar-10 22:47 
AnswerRe: what is dll file for scanning the document using twain controlx in asp.net with vb.net Pin
Catherine Sea22-Mar-10 23:08
MemberCatherine Sea22-Mar-10 23:08 
QuestionRegular Expression Pin
rajanandal17-Mar-10 20:59
Memberrajanandal17-Mar-10 20:59 
AnswerRe: Regular Expression Pin
Arun Jacob17-Mar-10 21:41
MemberArun Jacob17-Mar-10 21:41 
AnswerRe: Regular Expression Pin
carlecomm19-Mar-10 0:45
Membercarlecomm19-Mar-10 0:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.