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 exception handling in .net.

0 Answers  


can u any one tell me clearly where is stored cache datas?

2 Answers   Apollo,


Differentiate between globalization and localization.

0 Answers  


all asp.net interives questions

1 Answers  


What is the difference between typeof() vs gettype()?

0 Answers  






What is Auto-event wireup? what is the default value for this? when u change the value what will happen?

1 Answers   CMC,


What is web api and why to use it?

0 Answers  


What is difference between Server.Transfer and Response.Redirect in ASP.NET?

0 Answers   Sans Pareil IT Services,


What is the use of web.config and machine.config files?

0 Answers   Amdocs,


Which object encapsulates state or data of a user?

0 Answers  


What is State Management in .Net and how many ways are there to maintain a state in .Net?

6 Answers  


What’s the difference between Response.Write() andResponse.Output.Write()?

1 Answers  


Categories