I am trying to redirect another site on button click.
Answer Posted / gopakumar
There is a mistake in answer is that the link button
control doesn't contain the NavigateUrl property but we do
this task by doing this in the linkbutton control source
view is:
<asp:LinkButton ID="lnkbtn" runat="server"
OnClick="lnkbtn_Click"><a
href="http://www.google.com">Link</a></asp:LinkButton>
</div>
The OnCommand="link" is not needed.
<asp:LinkButton ID="lnkbtn" OnClick="lnkbtn_Click"
runat="server" >
<a href="http://www.google.com">Link</a>
</asp:LinkButton>
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the typical session identifier?
What is a uri query?
What is session start?
Is there any limit for query string? Means what is the maximum size?
When was asp.net released?
Difference between singleton and singlecall.
when a request is made in Life cycle of ASP.NET page .
How you can add an event handler?
Where the cookie value is stored?
What is .net remoting?
What is asp.net caching?
What is http pipeline in asp.net?
What is the web.config file in asp?
What is the postback property in asp.net?
What is the difference between ASP.NET Webforms and ASP.NET MVC?