ASP.NET UCase(),ToUpper() เปลี่ยนข้อความให้อยู่ในรูปแบบตัวอักษรพิมพ์ใหญ่
Syntax
UCase(String)
String.ToUpper()
Sample
<%@ Page Language="VB" %>
<script runat="server">
Sub Page_Load(sender As Object, e As EventArgs)
Dim strString As String = "I Love ThaiCreate.Com Version 2009 "
Me.lblText1.Text = UCase(strString)
Me.lblText2.Text = strString.ToUpper()
End Sub
</script>
<html>
<head>
</head>
<body>
<form runat="server">
<asp:Label id="lblText1" runat="server"></asp:Label>
<br />
<asp:Label id="lblText2" runat="server"></asp:Label>
</form>
</body>
</html>