Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What are the Difference between asp.net and asp ?

1232


What are the HTML server controls in ASP.NET?

1129


What is difference between rest and soap?

1179


What is event in asp.net?

1065


Explain the difference between response.redirect vs server.transfer

1191


Is it possible to develop a single web application using ASP.NET webforms and ASP.MVC?

1118


Where is cookie used in asp.net?

1148


calling result set one procedure to anothar procedure in sql2000

1820


What is server side in asp.net?

1024


Name the method that needs to be invoked on the dataadapter control to fill the generated dataset with data?

1035


What is the difference between custom controls and user controls?

987


Is razor a programming language?

1062


How you can manage the state of application at the server side in ASP.NET?

1110


How would you get asp.net running in apache web servers?

1092


What are type/key pairs in client script registration? Can there be 2 scripts with the same type/key pair name?

990