Click here to Skip to main content
15,904,155 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to send the values from one textbox to another when the checkbox is selected in asp.net using c# without submit button.


I am getting the code when the submit button is clicked.

So please find out the query and send me the useful code to me.



Thanks Regards

Sriaknth.J
Posted
Comments
Ashishmau 26-May-11 4:21am    
U can do from client side using javascript or from server side as suggested below.

Set checkbox AutoPostBack property to True, it will then send a postback when its state is changed
 
Share this answer
 
If u already done this in submit button then just paste the code in

if(CheckBox1.Checked=true)
{
//Your code
}
 
Share this answer
 
use checkbox checked changed event....

From this event,
if(checkbox1.checked)
{
textbox2.text=textbox1.text
}
 
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