I am trying to redirect another site on button click.

Answer Posted / anju

Hi Anjani, 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" OnCommand="link"><a href="http://www.google.com">Link</a></asp:LinkButton>
</div>

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a form tag?

511


What are the types of caching in asp.net?

556


What's the use of formatters in .net?

576


Explain about the .NET framework?

574


What is http response header?

567






Can you explain autopostback?

539


How does output caching work in ASP.NET?

504


Do gac'ed assemblies have fulltrust?

645


What is asp.net master page?

557


How to do state management in ASP.NET?

601


What is the difference between response.redirect and server.transfer?

538


What is httpresponse?

516


What is an example of an application service provider?

457


What is the viewstate in asp.net?

573


Explain asp.net application life cycle?

552