Home »
MCQs »
ASP.Net MCQs
What is the correct syntax to create ASP.NET hyperlink?
101. What is the correct syntax to create ASP.NET hyperlink?
- < asp:HyperLink ID="ih1" runat="server" Text="IncludeHelp" NavigateUrl="www.includehelp.com" ></asp:HyperLink>
- < asp.net:HyperLink ID="ih1" runat="server" Text="IncludeHelp" NavigateUrl="www.includehelp.com" ></asp.net:HyperLink>
- < asp_net:HyperLink ID="ih1" runat="server" Text="IncludeHelp" NavigateUrl="www.includehelp.com" ></asp_net:HyperLink>
- 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.