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 difference between custom controls and user controls?
What is asp net_sessionid?
How to deploy/publish webservices?How many ways?Plz explain me
How asynchronous call can be implemented using delegates?
Explain about secure socket layer?
What is caching? What are different ways of caching in asp.net?
Which protocol is used to call web service?
In your ASP.NET 2.0 web application you want to display an image that is selected from a collection of images. What approach will you use to implementing this?
Explain the concept of MVC Scaffolding?
How can we register exception filter globally?
What are sql joins?
What is user control in asp.net?
What is role-based security in asp.net?
Is asp.net different from asp? If yes, explain how?
What are themes and skins in 2.0, explain usage scenario?