Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
I need c# code for my admin page which is having one hyperlink then dropdown to either accept,reject or cancel the request and then a submit button.
I need code for onclick event of button to submit the request on database
Posted 31-Oct-11 21:57pm
Edited 31-Oct-11 22:05pm
v2
Comments
RaviRanjankr at 1-Nov-11 3:06am
   
what do you want to do onClick event. please be more specific while aksing question. we need more detail about your question
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

The Button.Click event is raised when the Button control is clicked. This event is commonly used when no command name is associated with the Button control (for instance, with a Submit button).
Have a look there - MSDN-[Button.Click Event][^]
  Permalink  
Comments
Abhinav S at 1-Nov-11 3:16am
   
5!
RaviRanjankr at 1-Nov-11 4:09am
   
Thanks Abhinav.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You need to just double click on the button, it will automatically generate onclick event and then you can write whatever code you need to execute on button click.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

The OnClick event is fired when a button is clicked.
Here[^] is a very nice and easy example (click on the submit button).
 
Setting the defaultbutton on the form will set it to be the Submit button[^].
  Permalink  
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web02 | 2.8.1411022.1 | Last Updated 1 Nov 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100