newbie - HTML Anchors

M

Mark Oliver

What is the easiest way to insert a <a href="http:\\somesite.htm">some
text</a>? HTML anchor. Can highlighted text be converted to an anchor
like it is in FrontPage?

Thanks,
Mark
 
G

Guest

Have you tried using the hyperlink control. In Visual Studio.Net you can
just drag the control from the toolbox to the web form. Otherwise use this
code:

<asp:HyperLink id="HyperLink1" runat="server" NavigateUrl="default.aspx">My
HyperLink</asp:HyperLink>

HTH MikeL
 
S

Scott M.

FYI: slashes (/) are always forward slash (/), not back slash (\) in web
development.
 
S

Saravana

If you are using vs.net, then your highlighted text can be converted to
anchor tag. After highlighting the text you want to convert, you can press
either ctrl+l or select format menu -->conver to hyperlink option. Then your
text will be converted to hyperlink
 
M

Mark Oliver

Thanks Saravana!
Mark

Saravana said:
If you are using vs.net, then your highlighted text can be converted to
anchor tag. After highlighting the text you want to convert, you can press
either ctrl+l or select format menu -->conver to hyperlink option. Then your
text will be converted to hyperlink
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top