String.Compare has a optional parameters to ignoring or honoring their case. string.Compare("xxx", "XXX", False); Below is the sample. Compare.aspx using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace WebApplication1 { public partial class Compare : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void btnCompare_Click(object sender, EventArgs e)... Read more »
↧