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 / krishna prasad

in databound event
foreach(dataview/datagrid items)
{
find the linkbutton(objLinkButton) row.findcontrl
("LinkButtonID")
objLinkButton.attributes.add("onClick","return "validates
();")
}

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What’s the use of “GLOBAL.ASAX” file?

1039


What is ashx file in asp.net?

1022


How can you enable impersonation in the web.config file?

1098


What is webresource axd?

839


What is query string in asp.net?

1023


Do you know caching feature?

911


What is the biggest disadvantage of “Other Return Types” in Web API?

1372


What are the disadvantages of view state?

1050


What is server components?

982


Securitywise What are the Enhancements in 2.0?

1895


Why viewstate is used in asp.net?

981


Where the viewstate is stored after the page postback?

1019


What are the differences between code behind and code inline?

1027


What is the difference between globalization and localization?

911


What is the difference between ASP.NET Webforms and ASP.NET MVC?

1089