Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Updated 31-Oct-11 21:05pm
v2
Comments
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

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[^].
 
Share this answer
 
v3
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][^]
 
Share this answer
 
Comments
Abhinav S 1-Nov-11 3:16am    
5!
RaviRanjanKr 1-Nov-11 4:09am    
Thanks Abhinav.
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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900