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

Define static member?

634


What is the use of execute non query in asp.net?

585


Explain how cookies work.

693


Which tool you have done?

1552


What is the behavior of a Web browser when it receives an invalid element?

716






What is intrinsic objects in asp.net?

740


What is a viewstate?

653


What is side-by-side execution? Can two applications, one using a private assembly and other using a shared assembly, be stated as side-by-side executables?

661


Which authentication uses a combination of windows and iis authentication?

670


What is session start?

611


What is preprocessor in .net? Where it use?

619


What is meant by asp.net?

619


How can exception be handled with out the use of try catch?

644


What is base class of .net?

639


I have an external link in my application say www.xyztest.com. Today this site works on http protocal. Tommorow it may run on https. So i cant hardcore the protocal in the site. When a user clicks on the link how can i know if the external site works on http or https and takes him to that place?

1568