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
How do I open an ashx file in windows 7?
Explain global assembly cache.
What is a web server? What are the load limits in it?
How to find last error which occurred?
Is LINQ performance wise better or using sqlcommand?
What is cookies in asp net?
How would you turn off cookies on one page of your website?
What is a session http?
Can you set which type of comparison you want to perform by the comparevalidator control?
What is the full meaning of asp.net?
What should you do is you want to remove an existing component but would like to make some funtionalities?
Where is session data stored in asp net?
Explain how viewstate is being formed?
What is custom events?
What is a web based system?