@insertAlias
Hello InsertAlias,
Sorry for not closing the webpage and running it again through the ".Net" server after adding 'http://' to the href attribute in <a> tag. I only refreshed it previously.
Anyways, now I am able to open Google page using the following link:
<a href="http://www.google.com" target="_blank">Google</a>
But this is what I am doing, I am asking the user to enter URL in a textbox and when they click submit button the URL will be stored in the database.
And from the database I am retrieving the URL and creating <a> tags as follows:
-
<asp:Repeater ID="CMLinkRepeater" runat="server"><ItemTemplate>
-
<a href="<%#DataBinder.Eval(Container.DataItem,"CMLink_URL") %>" target="_blank"><%#DataBinder.Eval(Container.DataItem,"CMLink_Name") %></a>
-
<br />
-
</ItemTemplate></asp:Repeater>
-
But, with the above procedure the user is able to open the link only if they enter, say "http://www.google.com" in the textbox.
What if they enter "www.google.com" in the textbox? How can I overcome this issue?