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 semantic gap?
What are the steps to follow to host a web application on a web server?
What are standard controls?
Can you change a master page dynamically at runtime? How?
What is localhost in asp.net?
What is viewstate? What does the "enableviewstate” property do? Whay would I want it on or off?
What is synchronous and Asynchronous post back ?
What is sdlc process?
What is the difference between login controls and forms authentication?
Is viewstate secure?
What is cas?
What is asp.net response object?
In how many ways we can retrieve table records count?
Explain the advantages of caching?
What is state management react?