Sorry wrong post.
Here is the sample code that i want to send, by the way where do you
check the controls ?
// HTML
<div id="natty" name="natty" runat =server ></div>
// dynamic create of checkbox
private void Page_Load(object sender, System.EventArgs e)
{
for(int i = 0;i < 10 ; i ++)
{
CheckBox o = new CheckBox();
o.Visible = true;
o.ID = "myCheckBox" + i.ToString() ;
o.Text = "try" + i.ToString() ;
this.FindControl("natty").Controls.Add (o);
}
}
// check for control value on Button click
private void Button1_Click(object sender, System.EventArgs e)
{
bool x = ((CheckBox)this.FindControl("myCheckBox2")).Checke d ;
}
Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114
Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377
Know the overall picture
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!