How to compare two strings with out Case sensitive ?

Answer Posted / navin.cp

Here is the code that solve ur problem:

string str = "virtual";
if (str.Equals("virtual"))
{
// your code here....
}

Is This Answer Correct ?    8 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

1.what is the application pool. 2.what is the HttpModile and Http Handler. 3.C# 3.0 Features ? 4.Anonoymous Type,methopd and claas in 3.0? 5.difference between statsic and const ? 6.session vs application 7.state management clint side and server side ? 8.Genric list 9.c# 3.0 vs 3.5

1754


What is web api vs wcf?

574


What is cookieless session id explain in brief?

521


What are themes and skins in 2.0, explain usage scenario?

522


What is mvc in angular?

557






What is view state management in asp net?

459


What are the advantages of using Master Pages?

591


What is the difference between union and structure?

497


Can we override the enablepartialrendering property of the scriptmanager class?

637


How do you declare static variable? What is its lifetime?

503


What is the difference between a default skin and a named skin?

580


Hello, Using Visual Studio 2005 (VB) I am working to create a Web Site implementing the following: Within a gridView I have placed a dropdownlist control with a DataSourceID="SDSLkupList". SDSLkupList is a sqlDataSource used to store a lookup list for dropdownlist translation from ID to text. SDSLkupList contains the translation text and other fields related to the dropdown selection ID. (Thought it would be efficient to get everything at the same time.) I would like to provide the user the ability to select from the dropdownlist and, based on the selection, use labels to list related columns stored on the SDSLkupList in separate gridView columns. I have read that SqlDataSources are not meant to be used for individual controls. Since SDSLkupList contains all related information, is there a way to do a find using the dropdownlist selectedValue? (I was not able to discover one.) Otherwise, what should I use? It would need to set the labels on the gridView DataRowBound event as well as the SelectedIndexChanged events. Has anyone done this? Any help would be appreciated. Thanks in Advance. Neal

1366


What is web api and why to use it?

551


Which method do you use to kill explicitly a users session?

617


Distinguish between Server-side and Client-side code with its functionality?

620