ASP.NET StartsWith() ตรวจสอบว่าใช่ข้อความเริ่มต้นหรือไม่
Syntax
String.StartsWith(String)
Sample
<%@ Page Language="VB" %>
<script runat="server">
Sub Page_Load(sender As Object, e As EventArgs)
Dim strString As String = "www.ThaiCreate.Com"
Me.lblText1.Text = strString.StartsWith("www")
End Sub
</script>
<html>
<head>
</head>
<body>
<form runat="server">
<asp:Label id="lblText1" runat="server"></asp:Label>
</form>
</body>
</html>