Here is the sanitized code: (Instant C# is fixing the conversion of
VB's TypeOf for the next release)
//INSTANT C# TODO TASK: Insert the following converted event handlers
at the end of the 'InitializeComponent' method for forms or into a
constructor for other classes:
//Button1.Click += new System.EventHandler(Button1_Click);
private void Button1_Click(object sender, System.EventArgs e)
{
CheckBox chkTester = null;
System.Text.StringBuilder sb = new System.Text.StringBuilder();
foreach (Control cntrlTester in Page.Controls[1].Controls)
{
if (cntrlTester is System.Web.UI.WebControls.CheckBox)
{
chkTester = (CheckBox)cntrlTester;
sb.Append(chkTester.ID + " : " + chkTester.Checked.ToString() +
"<br>");
}
}
Label1.Text = sb.ToString();
}
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com