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

Can you explain one critical mapping? Performance issue which one is better?

0 Answers  


Which type if caching will be used if we want to cache the portion of a page instead of whole page?

0 Answers  


Difference between datagrid and datareader?

1 Answers  


What is Serilazation? how many type of serilazation are their?

3 Answers  


What is ViewState? How is it encoded? Is it encrypted? Who uses ViewState ?

1 Answers  


Windows Authentication (via Active Directory) and SQL Server authentication (via Microsoft SQL Server username and passwords). Which one is trusted and which one is untrusted?

3 Answers  


Which browsers support the xmlhttprequest object?

0 Answers  


How to unit test Web API?

0 Answers  


WHAT IS THE SEQUENCE IN WHICH ASP.NET EVENTS IS PROCEED?

4 Answers  


The technical part was on ASP.Net only of web services.

1 Answers   Symphony,


Is it true that a Web service must be written in .NET or not?

0 Answers   Siebel,


About Windows/Forms Authentication

1 Answers  


Categories