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...

How do you add a javascript function for a link button in a
datagrid ?

Answer Posted / vishal jani

you can add a javascript function in the link button of the
datagrid under the itemdatabound event as below


e.item.findcontrol("linkbtnname")
linkbtn.attribute.add("onclick",javascript:returnfuctionname()");

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you do windows authentication and what is the namespace? If a user is logged under integrated windows authentication mode, but he is still not able to logon, what might be the possible cause for this? In ASP.Net application how do you find the name of the logged in person under windows authentication?

1005


How do we access view state value of this page in the next page?

959


What methods are fired during the page load? Init()

925


What is application and session in asp.net?

912


What is the difference between page.registerclientscriptblock and page.registerstartupscript?

807


What is the use of service provider?

981


What is the used of "ispostback" property?

1051


Which method do you use to kill explicitly a users session?

1012


Explain the use of duration attribute of @outputcache page directive.

1061


What is the mvc framework?

959


What is the maximum timeout we can set for Cookies?

944


What is the use of placeholder control? Can we see it at runtime?

1033


Where are session variables stored?

917


What is role-based security in asp.net?

1009


What is inproc and outproc?

947