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?

Answers were Sorted based on User's Feedback



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

Answer / ish

Make object of particular button

Ex:

LinkButton lnbDelete=(LinkButton) e.Item.FindControl
("Delete");

After that we can use it with JavaScript:
lnbDelete.Attributes.Add("Onclick","javascript:return
confirm('Are you sure you want to delete this?');");

Is This Answer Correct ?    8 Yes 2 No

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

Answer / 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

More ASP.NET Interview Questions

Why do we use web config?

0 Answers  


Hi, I Dont know about Application and Session State management. Can anyone explain me with simple example?

1 Answers  


i need code for insert,delete,update adn display records using stored procedure in C#

2 Answers  


List some of the important session state modes of asp.net.

0 Answers  


Can you change a Master Page dynamically at runtime?

0 Answers  


Types of session management in ASP.NET ?

2 Answers   Microsoft,


Suppose there is one web farm with 3 servers inside with same configuration and the same project is running inside all servers.Which session mode is usde for all these and why?

3 Answers  


What is x xss protection?

0 Answers  


Give a few examples of page life cycle events.

0 Answers   Accenture,


What is HTTP MODULE & HTTP HANDLERS in ASP.NET? How a developer can utilize in the application? Please provide example.

1 Answers   IBM,


What are the types of validation in asp net?

0 Answers  


What is the namespace used to store the information about the user?s locale?

1 Answers   NeoSoft, Siebel,


Categories