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 r the asp.net list controls and difference between them?
What parameters can you pass in the url of the api? Can get and post use the same url?
How can I have a particular web page in an asp.net application which displays its own error page?
Explain the differences between clr & cts?
How to communicate via Remote proxy with Client? a)MarshalByRef b)Marshal by Value or Any thing else?
What are the different types of validation controls provided in ASP.NET?
Describe Segmentation With Paging?
What is the difference between cookie and session?
Explain the features that make asp.net more used framework? : asp.net mvc
How Can assign alias name for ASP.NET Web API Action?
Is razor a programming language?
Explain login controls.
Can you use c# without .net?
What is the asp.net mvc folder conventions? : asp.net mvc
What r the asp.net list controls and diff. Between them?