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 is meant by asp.net?
How long the items in ViewState exists?
Explain the difference between server control and html control.
explain code with datachaching with example
Is asp.net outdated?
What is OSI layer? Explain different layers.
What are the benefits of Razor View?
What is repository pattern in mvc.net? : asp.net mvc
Where is the view state data stored in asp net?
What is meant by server side scripting?
What is owin authentication?
Explain the use of dataadapter.
What does asp in asp.net stand for?
What is master page in dtp?
How does session work?