Click here to Skip to main content
14,666,206 members
Home » Discussions » ASP.NET
   

ASP.NET

 
AnswerRe: Refresh button resubmitting data - How to prevent this? Pin
Dinesh Mani18-Mar-10 21:14
MemberDinesh Mani18-Mar-10 21:14 
GeneralRe: Refresh button resubmitting data - How to prevent this? Pin
saanj18-Mar-10 23:36
Membersaanj18-Mar-10 23:36 
AnswerRe: Refresh button resubmitting data - How to prevent this? Pin
Arun Jacob18-Mar-10 23:50
MemberArun Jacob18-Mar-10 23:50 
QuestionPerformance: Many small file downloads Pin
Pavolh18-Mar-10 1:42
MemberPavolh18-Mar-10 1:42 
AnswerRe: Performance: Many small file downloads Pin
Aman Bhullar18-Mar-10 2:04
MemberAman Bhullar18-Mar-10 2:04 
AnswerRe: Performance: Many small file downloads Pin
R. Giskard Reventlov18-Mar-10 2:19
MemberR. Giskard Reventlov18-Mar-10 2:19 
GeneralRe: Performance: Many small file downloads Pin
Pavolh18-Mar-10 3:33
MemberPavolh18-Mar-10 3:33 
QuestionTypical String Manipulation [modified] Pin
Satish - Developer17-Mar-10 23:40
Member Satish - Developer17-Mar-10 23: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 0:54
MemberSneha Bisht18-Mar-10 0:54 
GeneralRe: Typical String Manipulation Pin
Satish - Developer18-Mar-10 2:22
Member Satish - Developer18-Mar-10 2:22 
GeneralRe: Typical String Manipulation Pin
Not Active18-Mar-10 2:36
mentorNot Active18-Mar-10 2:36 
AnswerRe: Typical String Manipulation Pin
JHizzle18-Mar-10 1:45
MemberJHizzle18-Mar-10 1:45 
GeneralRe: Typical String Manipulation Pin
Satish - Developer18-Mar-10 2:07
Member Satish - Developer18-Mar-10 2:07 
GeneralRe: Typical String Manipulation Pin
JHizzle18-Mar-10 3:53
MemberJHizzle18-Mar-10 3:53 
AnswerRe: Typical String Manipulation Pin
Not Active18-Mar-10 2:46
mentorNot Active18-Mar-10 2:46 
GeneralRe: Typical String Manipulation Pin
Satish - Developer18-Mar-10 3:01
Member Satish - Developer18-Mar-10 3:01 
GeneralRe: Typical String Manipulation Pin
Not Active18-Mar-10 3:04
mentorNot Active18-Mar-10 3:04 
Questionhow to give access permission on menu control based on user type from database using asp.net wit c# Pin
developerit17-Mar-10 22:19
Memberdeveloperit17-Mar-10 22: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 22:27
MemberVinodKumar0117-Mar-10 22: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 22:36
MemberPaul Unsworth17-Mar-10 22:36 
Questionwhat is dll file for scanning the document using twain controlx in asp.net with vb.net [modified] Pin
vbmadhavi17-Mar-10 21:47
Membervbmadhavi17-Mar-10 21:47 
AnswerRe: what is dll file for scanning the document using twain controlx in asp.net with vb.net Pin
Catherine Sea22-Mar-10 22:08
MemberCatherine Sea22-Mar-10 22:08 
QuestionRegular Expression Pin
rajanandal17-Mar-10 19:59
Memberrajanandal17-Mar-10 19:59 
AnswerRe: Regular Expression Pin
Arun Jacob17-Mar-10 20:41
MemberArun Jacob17-Mar-10 20:41 
AnswerRe: Regular Expression Pin
carlecomm18-Mar-10 23:45
Membercarlecomm18-Mar-10 23: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.