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 are the Difference between asp.net and asp ?
What are the HTML server controls in ASP.NET?
What is difference between rest and soap?
What is event in asp.net?
Explain the difference between response.redirect vs server.transfer
Is it possible to develop a single web application using ASP.NET webforms and ASP.MVC?
Where is cookie used in asp.net?
calling result set one procedure to anothar procedure in sql2000
What is server side in asp.net?
Name the method that needs to be invoked on the dataadapter control to fill the generated dataset with data?
What is the difference between custom controls and user controls?
Is razor a programming language?
How you can manage the state of application at the server side in ASP.NET?
How would you get asp.net running in apache web servers?
What are type/key pairs in client script registration? Can there be 2 scripts with the same type/key pair name?