Author: Jamie1985 | Posted on: 7/9/2008 3:13:40 AM | Views : 1071

 Hi
 I have the following code:
 foreach (DataRow row in dataSetselect.Tables[0].Rows)
        {
            lb = new Label();
            tb = new TextBox();
            lb.Text = "<br />" + row["field"].ToString() + " ";
            tb.Text =  row["field"].ToString();
            tb.ID = Guid.NewGuid().ToString();
            RequiredFieldValidator reqv = new RequiredFieldValidator();
            reqv.ControlToValidate = tb.ID;
   &n ...

Go to the complete details ...