how to validate check box?
-
Web Page setting -> .aspx.cs -> protected void chkBILL_CheckedChanged(object sender, EventArgs e) { if (chkBILL.Checked == false) { lRCVTYPE.Text = "P/O No"; cmdLKPO.Enabled = true; lBILLDTID.Visible = false; txtBILLDT.Visible = false; } else { lRCVTYPE.Text = "Bill No"; cmdLKPO.Enabled = false; lBILLDTID.Visible = true; txtBILLDT.Visible = true; } } This is coding. When I checked check box, cs coding is not activated. How can I make it work when check box checked? Please help me.
-
Web Page setting -> .aspx.cs -> protected void chkBILL_CheckedChanged(object sender, EventArgs e) { if (chkBILL.Checked == false) { lRCVTYPE.Text = "P/O No"; cmdLKPO.Enabled = true; lBILLDTID.Visible = false; txtBILLDT.Visible = false; } else { lRCVTYPE.Text = "Bill No"; cmdLKPO.Enabled = false; lBILLDTID.Visible = true; txtBILLDT.Visible = true; } } This is coding. When I checked check box, cs coding is not activated. How can I make it work when check box checked? Please help me.
Set AutoPostback=true You'd do better IMO to write javascript to do this, so that there's no need for a postback.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
Set AutoPostback=true You'd do better IMO to write javascript to do this, so that there's no need for a postback.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
tooltip="Check if you input for billing" AutoPostBack="true" />