VB.NET & IndexOf() - IndexOf() : Return the index of the first occurrence of one or more characters, or the first occurrence of a string, within this string.
ShotDev Focus:
- VB.NET & IndexOf()
Example
IndexOf.aspx
<%@ Page Language="VB" %> <script runat="server"> Sub Page_Load(sender As Object, e As EventArgs) Dim strString As String = "www.ShotDev.Com" Me.lblText1.Text = strString.IndexOf("ww") End Sub </script> <html> <head> <title>ShotDev.Com Tutorial</title> </head> <body> <form runat="server"> <asp:Label id="lblText1" runat="server"></asp:Label> </form> </body> </html>
Screenshot