D
darrel
I'm trying to take the value of a textbox and titleCase. A recent question
posted here by myself sent me to this page:
http://msdn2.microsoft.com/en-gb/library/system.globalization.textinfo.totitlecase.aspx
Where I found this sample code:
Dim instance As TextInfo
Dim str As String
Dim returnValue As String
returnValue = instance.ToTitleCase(str)
Upon trying to use it on my page:
Dim str_title As String
Dim instance As System.Globalization.TextInfo
Dim str_titlePreCaseChange As String = Trim(tbx_title.Text)
str_title = instance.ToTitleCase(str_titlePreCaseChange)
I get an error on the last line of :
Object reference not set to an instance of an object.
....and I'm not sure why.
-Darrel
posted here by myself sent me to this page:
http://msdn2.microsoft.com/en-gb/library/system.globalization.textinfo.totitlecase.aspx
Where I found this sample code:
Dim instance As TextInfo
Dim str As String
Dim returnValue As String
returnValue = instance.ToTitleCase(str)
Upon trying to use it on my page:
Dim str_title As String
Dim instance As System.Globalization.TextInfo
Dim str_titlePreCaseChange As String = Trim(tbx_title.Text)
str_title = instance.ToTitleCase(str_titlePreCaseChange)
I get an error on the last line of :
Object reference not set to an instance of an object.
....and I'm not sure why.
-Darrel