What is the correct syntax to create ASP.NET hyperlink?

101. What is the correct syntax to create ASP.NET hyperlink?

  1. < asp:HyperLink ID="ih1" runat="server" Text="IncludeHelp" NavigateUrl="www.includehelp.com" ></asp:HyperLink>
  2. < asp.net:HyperLink ID="ih1" runat="server" Text="IncludeHelp" NavigateUrl="www.includehelp.com" ></asp.net:HyperLink>
  3. < asp_net:HyperLink ID="ih1" runat="server" Text="IncludeHelp" NavigateUrl="www.includehelp.com" ></asp_net:HyperLink>
  4. None of the above

Answer: A) < asp:HyperLink ID="ih1" runat="server" Text="IncludeHelp" NavigateUrl="www.includehelp.com" ></asp:HyperLink>

Explanation:

The first syntax is correct to create an ASP.NET hyperlink. Here we refer <a href="http://www.includehelp.com">to www.includehelp.com</a> from the hyperlink.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.