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


Please Help Members By Posting Answers For Below Questions

Any one can tell how we store tiff format images in database and retrive from the database(need for tiff format only)

1620


Which .NET framework supports Web API?

599


Do session use cookies in asp net?

498


Which is better session or viewstate?

514


What is the file through which you can customize your asp.net application?

550






What is the difference between user control an custom control?

617


8. Why do you want to work here?

1484


How do you implement postback with a text box?

563


How ViewstateMac works?

2366


What are cao and sao.

548


Explain the difference between Web Garden and Web Farm?

551


How many types of controls are there in asp.net?

526


1.what is the application pool. 2.what is the HttpModile and Http Handler. 3.C# 3.0 Features ? 4.Anonoymous Type,methopd and claas in 3.0? 5.difference between statsic and const ? 6.session vs application 7.state management clint side and server side ? 8.Genric list 9.c# 3.0 vs 3.5

1764


Is asp.net mvc front end or backend? : Asp.Net MVC

494


What is the difference between session and application?

509