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

What is the full meaning of asp.net?

0 Answers  


what are the main advantage in .net?

4 Answers   TCS,


What is the significance of proxy user?

0 Answers   MCN Solutions,


how can u create the blog in asp.net with C#?what is the data type u will use to store in sql server?

0 Answers   IBM,


Describe session handling in a webfarm?

0 Answers  






What would be salary for 6+ years of experience in ASP.NET in different metro city in india?

4 Answers  


What is the difference between mechine.config and web.config?

0 Answers  


How do you use a custom validator? When might you want to use one?

3 Answers   Infosys,


Define common type system?

0 Answers  


How long do session variables last?

0 Answers  


How to implement form based authentication in asp.net application?

0 Answers  


One Listbox showing all cities. If you select one city in list box the information related to that particular city should be displayed in Datagrid . How do you do that?

3 Answers   HCL,


Categories