Solved

ASP.NEt First Character to upper

Posted on 2008-10-23
1
680 Views
Last Modified: 2013-11-26
How can I make the following always return in proper case?  First Character to upper case.

lblPage.Text = request.QueryString("page")
0
Comment
Question by:lrbrister
1 Comment
 
LVL 18

Accepted Solution

by:
UnifiedIS earned 500 total points
Comment Utility
This will make the first character upper and leave the rest as is
Dim s As String = request.querystring("page")
lblPage.Text = s.Substring(0, 1).ToUpper & s.Substring(1)
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
how to split multiple lines delimiter : 8 52
Where to begin studying? 5 62
Get String split 5 30
Format column on datatable 7 13
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now