L
Luc
Hi,
I want to know whether a hyperlink is enterd in a textbox. An user enters
this string into a textbox: <a href='http://...'>click</a>
In order to know that, i tried to know whether the string "click" was typed
in the textbox.
This is what i did:
<asp:TextBox ID="TextBox1" TextMode="MultiLine"
runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Button" />
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim hl As String = "click"
Dim x As Integer
Dim txt as string = TextBox1.text
x = txt.IndexOf(hl)
if x>0 then
response.write("yes")
else
response.write("yes")
end if
End Using
But this gives 0 .
Is there a way to determine whether "click" is entered, or is there a way to
determine whether a hyperlink is entered in the textbox?
Thanks
Luc
I want to know whether a hyperlink is enterd in a textbox. An user enters
this string into a textbox: <a href='http://...'>click</a>
In order to know that, i tried to know whether the string "click" was typed
in the textbox.
This is what i did:
<asp:TextBox ID="TextBox1" TextMode="MultiLine"
runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Button" />
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim hl As String = "click"
Dim x As Integer
Dim txt as string = TextBox1.text
x = txt.IndexOf(hl)
if x>0 then
response.write("yes")
else
response.write("yes")
end if
End Using
But this gives 0 .
Is there a way to determine whether "click" is entered, or is there a way to
determine whether a hyperlink is entered in the textbox?
Thanks
Luc