• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 501
  • Last Modified:

ASP.NET/VB: Case Insensitive Equals

Using ASP.NET/VB, how can I make this case insensitive?

ElseIf (row("name") = "logo") Then

Open in new window

0
hankknight
Asked:
hankknight
2 Solutions
 
Éric MoreauSenior .Net ConsultantCommented:
easy way:
ElseIf (row("name").ToString().ToUpper() = "LOGO") Then
0
 
Meir RivkinFull stack Software EngineerCommented:
ElseIf  (String.Compare( row("name"),"logo",StringComparison.OrdinalIgnoreCase) == 0)
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now