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
Define static member?
What is the use of execute non query in asp.net?
Explain how cookies work.
Which tool you have done?
What is the behavior of a Web browser when it receives an invalid element?
What is intrinsic objects in asp.net?
What is a viewstate?
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?
Which authentication uses a combination of windows and iis authentication?
What is session start?
What is preprocessor in .net? Where it use?
What is meant by asp.net?
How can exception be handled with out the use of try catch?
What is base class of .net?
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?