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

Explain weak typing and strong typing.

0 Answers  


Can you explain how ASP.NET application life cycle and page life cycle events fire?

0 Answers   MindCracker,


How does session authentication work?

0 Answers  


How to write unmanaged code and how to identify whether the code is managed /unmanaged?

4 Answers   Accenture,


Input:http://www.allinterview.com/forms/questionform.php Output:http://www.allinterview.com/forms/questionform Write c# program to get the above desired output for the given Input.....

3 Answers   Bally Technologies,






What are the disadvantages of view state?

0 Answers  


Can viewstate be accessed in another page?

0 Answers  


How do I force the dispose method to be called automatically, as clients can forget to call dispose method?

0 Answers  


Is asp net front end or backend?

0 Answers  


In What Order Do The Events Of An Aspx Page Execute. As A Developer Is It Important To Undertsand These Events?

0 Answers   Siebel Systems,


How do you specify whether your data should be passed as Query string and Forms (Mainly about POST and GET)

2 Answers  


What are clr?cts?cls?

4 Answers   e4e, HCL, Microsoft, Tata Communications,


Categories