Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

check boxes 1

Status
Not open for further replies.

sroberts82

Programmer
Oct 11, 2005
36
US
Hi
I have a checkbox on my form and everything works grand. Except I want it to appear checked when I load the page. I was doing this:

box.Checked = true;
and it came up as being checked alright, but when I tried to check it off and submit the form, it still returns true. Whats the rumpus here could anyone tell me? Thank you in advance
Stephen
 
How are you setting the checked = true?

Hope everyone is having a great day!

Thanks - Jennifer
 
Page_Load
if(!IsPostBack)
box.Checked=true
 
how you would do it I have no idea. But I am sure it would have something to do with the IPostBackEventHandler...
 
nice one, that was the problem, the post back. Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top