C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » ASP.NET »

What is the corresponding property for onclick and onclientclick of dategrid in gridview?


Posted Date: 29 Nov 2008      Posted By: Rasmi Ranjan      Member Level: Gold     Points: 1   Responses: 2



hi all
What is the corresponding property for onclick and onclientclick of dategrid in gridview?





Responses

Author: lalitha    29 Nov 2008Member Level: GoldRating: 3 out of 53 out of 53 out of 5     Points: 3

They are same for both . Actually they are properties of Button , Link Button controls. If you place the buttons either Gridview or datagrid you can get those properties

syntax:

<asp:LinkButton ID="lnkdelete" runat="server" Text="Delete" CommandName="Delete" OnClientClick="return confirm('Are you sure you want to delete the record?');"></asp:LinkButton>

Regards
lalitha



Author: Rasmi Ranjan    29 Nov 2008Member Level: GoldRating: 2 out of 52 out of 5     Points: 3

Thanks....
But for this onclick event of gridview one method heading should be created in .cs file.Where i need to code.But to do this i am not finding such event in the event property of gridview.



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : What is onclick and onclintclick property in datagrid?In gridview what is that?
Previous : ASP.NET Email Was not delivered
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use