Click here to Skip to main content
13,044,115 members (83,262 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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 20:57pm
Updated 31-Oct-11 21:05pm
RaviRanjankr 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
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][^]
Abhinav S 1-Nov-11 3:16am
RaviRanjankr 1-Nov-11 4:09am
Thanks Abhinav.
Rate this: bad
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.
Rate this: bad
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[^].

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 1 Nov 2011
Copyright © CodeProject, 1999-2017
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