Asp.Net Source :- In my project i have gridview control -
item template. Its have asp:button control. my requirement
is while click this button i need to display some alert
message.
Could you please help me which gridview event i need to
write source code?
Please give me a quick response.
Thanks

Answers were Sorted based on User's Feedback



Asp.Net Source :- In my project i have gridview control - item template. Its have asp:button contr..

Answer / bhavin khatri

you can write code for messege directly to the click event
of button otherwise
write 'Edit' in the commandname property of button which u
are added then in gridview write onrowediting event

Is This Answer Correct ?    4 Yes 1 No

Asp.Net Source :- In my project i have gridview control - item template. Its have asp:button contr..

Answer / hari

Item command event

Is This Answer Correct ?    3 Yes 0 No

Asp.Net Source :- In my project i have gridview control - item template. Its have asp:button contr..

Answer / mintu

add commandname="Updateme" for your button and in rowcommand event of datagrid

if (e.CommandName == "Updateme")
{

//ur code
}

Is This Answer Correct ?    3 Yes 0 No

Asp.Net Source :- In my project i have gridview control - item template. Its have asp:button contr..

Answer / vishwanath

In Item data bound event I will find that button and add the
attribute(calling the javascript function) to that button.

Is This Answer Correct ?    2 Yes 0 No

Asp.Net Source :- In my project i have gridview control - item template. Its have asp:button contr..

Answer / debopriyo

Buble event

Is This Answer Correct ?    1 Yes 0 No

Asp.Net Source :- In my project i have gridview control - item template. Its have asp:button contr..

Answer / debopriyo

Gridview1.SelectedIndexChanged.....

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

In my code i have 3 tables,i have to insert 3 tables data using single insert query so that i wrote transations in a sp.but what my problem is,in those 3 tables i have to include my empId from another table.when i'm passing values im getting error at this EmpId. how can i solve this error to execute insert query? plesae tell me the solution...

1 Answers  


Which object wraps the state or data of a user?

0 Answers  


What is the difference between file-based dependency and key-based dependency?

0 Answers  


Difference between Response.redirect vs server.transfer?

0 Answers  


How is the asp.net mvc architecture different from others? : asp.net mvc

0 Answers  






Difference between ByVal and ByRef?

2 Answers   Microsoft,


Give me one example of Web API Routing?

0 Answers  


How to use class library reference in asp.net project? Can you give me the example with source Class library haves classes like Database, insert, update, delete, reflection how can i use the database class connection in insert class to insert the record in to the Main Project in asp.net.

1 Answers  


One of the properties of the Web Part has an incorrect format. Windows SharePoint Services cannot deserialize the Web Part. Check the format of the properties and try again. - this error is occured in Sharepoint 2007 while deploy the web part

1 Answers   WebInfo,


Have u used webcontrols?Tell me something about these?

2 Answers   Microsoft,


Describe paging in asp.net?

0 Answers  


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

2 Answers  


Categories