Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Web Coding

Reply
 
LinkBack Thread Tools
Old 02-15-08   #1 (permalink)
WaterCooler
 
DanNEBTD's Avatar
 
amd nvidia

Join Date: Mar 2006
Location: Boca Raton, FL
Posts: 2,323

Rep: 120 DanNEBTD is acknowledged by manyDanNEBTD is acknowledged by many
Unique Rep: 103
Folding Team Rank: 284
Hardware Reviews: 8
Trader Rating: 8
Default ASP.net checkbox.Checked function?

I am trying to make a site that allows a user to sign up for baseball tickets. Part of that site has a checkbox next to each for the three types of seat types (bleacher, box, gen admission). I want it so that when I check a box it will make a txt box visible to allow the user to enter the number of seats. It works fine ATM but only after I change the view and go back can I do this instantaneously? . . . . Here is my simple coding for the method:

Code:
    protected void cbxBox_CheckedChanged(object sender, EventArgs e)
    {
        lblBoxNum.Visible = true;
        txtBoxNum.Visible = true;
}
Thanks
__________________
Quote:
Originally Posted by GuardianOdin View Post
Overkill doesn't exist on OCN. It's what we do.
XPS M1330: T7500, 4GB, 13.3" LED WXGA, 128 8400 GS, 120GB 5400RPM, 802.11 AGN, 9 cell, Fingerprint, Ultimate x64, 4 Year Accidental Damage/lojack/warranty.
__________________

System: The 1K CFM Machine
CPU
Opty 170 ccb1e 0609fpaw
Motherboard
A8N32-SLI
Memory
2 gigs Gskill PC4000
Graphics Card
EVGA 7950X2
Hard Drive
4x 36gig Raptors raid 0, 1x 200gig storage
Sound Card
XtremeMusic w/Z5500
Power Supply
PC&P Silencer 750 Quad
Case
Mozart Tx
CPU cooling
Stinger V6, quadrad
OS
Vista Home Premium x86
Monitor
32" Syntax Olevia
DanNEBTD is offline I fold for Overclock.net DanNEBTD's Gallery   Reply With Quote
Old 02-16-08   #2 (permalink)
Programmer
 
stupid's Avatar
 
amd nvidia

Join Date: Jan 2006
Location: Fahaheel, Kuwait
Posts: 1,224

Rep: 144 stupid is acknowledged by manystupid is acknowledged by many
Unique Rep: 113
FAQs Submitted: 1
Trader Rating: 4
Default

be sure to set AutoPostBack="true" in CheckBox control
__________________
"If there is a god, I hope he has a good excuse"
Woody Allen

System: Minazo
CPU
Opteron 1210
Motherboard
Biostar TForce 550 SE
Memory
2x1GB G.Skill DDR2 800
Graphics Card
eVGA 8800GT
Hard Drive
500GB 16MB Buf Samsung
Power Supply
Corsair HX520W Modular
Case
CoolerMaster Centurion 5
CPU cooling
CoolerMaster GeminII & Scythe SFF21Ds
GPU cooling
Accelero S1 & Scythe SFF21D
OS
XP Pro SP2
Monitor
Dual monitors: 22" & 19" Widescreens
stupid is offline   Reply With Quote
Old 02-16-08   #3 (permalink)
Bifford
 
BFRD's Avatar
 
intel nvidia

Join Date: Dec 2004
Location: Carrollton, TX
Posts: 4,167

FAQs Submitted: 8
Folding Team Rank: 18
Hardware Reviews: 2
Trader Rating: 11
Default

I am not sure what you mean by "change the view." If you want to show the textbox without causing a full post-back you will need to either write some custom javascript functions or use ajax. You can check out MSAJAX at ajax.asp.net, it is really easy to use and great for doing things like this. It will make your page execution much smoother to the end-user with minimal effort on your part.
__________________
Helpful Posts (Hopefully )
Overclocker's Calculator
Photo Editing - B&W w/Color Accents

System: Main Rig
CPU
E6700 Conroe
Motherboard
Abit QuadGT
Memory
2GB G.Skill PC2 8000 (HZ)
Graphics Card
EVGA 8800GTX
Hard Drive
150 GB Raptor X / 300GB Storage
Sound Card
Audigy 2 ZS
Power Supply
PCP&C Silencer 750
Case
Sigma Shark
CPU cooling
Stock (for now)
GPU cooling
Stock
OS
Vista Ultimate
Monitor
Dual Samsung 204b
BFRD is offline I fold for Overclock.net Overclocked Account BFRD's Gallery   Reply With Quote
Old 02-16-08   #4 (permalink)
WaterCooler
 
DanNEBTD's Avatar
 
amd nvidia

Join Date: Mar 2006
Location: Boca Raton, FL
Posts: 2,323

Rep: 120 DanNEBTD is acknowledged by manyDanNEBTD is acknowledged by many
Unique Rep: 103
Folding Team Rank: 284
Hardware Reviews: 8
Trader Rating: 8
Default

Quote:
Originally Posted by stupid View Post
be sure to set AutoPostBack="true" in CheckBox control
Thank you . . you're amazing . . . I hate learning this stuff with a half a$$ teacher who gives vauge lectures and assignments

Quote:
I am not sure what you mean by "change the view." If you want to show the textbox without causing a full post-back you will need to either write some custom javascript functions or use ajax. You can check out MSAJAX at ajax.asp.net, it is really easy to use and great for doing things like this. It will make your page execution much smoother to the end-user with minimal effort on your part.
Thanks, I would have to keep it in ASP though as its for my class. . . dont worry . . you still get an e-cookie from me
__________________
Quote:
Originally Posted by GuardianOdin View Post
Overkill doesn't exist on OCN. It's what we do.
XPS M1330: T7500, 4GB, 13.3" LED WXGA, 128 8400 GS, 120GB 5400RPM, 802.11 AGN, 9 cell, Fingerprint, Ultimate x64, 4 Year Accidental Damage/lojack/warranty.
__________________

System: The 1K CFM Machine
CPU
Opty 170 ccb1e 0609fpaw
Motherboard
A8N32-SLI
Memory
2 gigs Gskill PC4000
Graphics Card
EVGA 7950X2
Hard Drive
4x 36gig Raptors raid 0, 1x 200gig storage
Sound Card
XtremeMusic w/Z5500
Power Supply
PC&P Silencer 750 Quad
Case
Mozart Tx
CPU cooling
Stinger V6, quadrad
OS
Vista Home Premium x86
Monitor
32" Syntax Olevia

Last edited by DanNEBTD : 02-16-08 at 12:50 AM.
DanNEBTD is offline I fold for Overclock.net DanNEBTD's Gallery   Reply With Quote
Old 02-16-08   #5 (permalink)
Programmer
 
stupid's Avatar
 
amd nvidia

Join Date: Jan 2006
Location: Fahaheel, Kuwait
Posts: 1,224

Rep: 144 stupid is acknowledged by manystupid is acknowledged by many
Unique Rep: 113
FAQs Submitted: 1
Trader Rating: 4
Default

no problem
__________________
"If there is a god, I hope he has a good excuse"
Woody Allen

System: Minazo
CPU
Opteron 1210
Motherboard
Biostar TForce 550 SE
Memory
2x1GB G.Skill DDR2 800
Graphics Card
eVGA 8800GT
Hard Drive
500GB 16MB Buf Samsung
Power Supply
Corsair HX520W Modular
Case
CoolerMaster Centurion 5
CPU cooling
CoolerMaster GeminII & Scythe SFF21Ds
GPU cooling
Accelero S1 & Scythe SFF21D
OS
XP Pro SP2
Monitor
Dual monitors: 22" & 19" Widescreens
stupid is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -4. The time now is 08:04 AM.


Overclock.net is a Carbon Neutral Site Creative Commons License Internet Security By ControlScan

Terms of Service / Forum Rules | Privacy Policy | Advertising | Become an Official Vendor
Copyright © 2008 Shogun Interactive Development. Most rights reserved.
Page generated in 0.14435 seconds with 9 queries