H
Hai Nguyen
Hi everyone
I'm building a web application which create a lot of HTML textboxes (not
datagrid) to get input from user. Being assosiate with a textboxe is a
requiredfield validator. The code is below. I don't know why after hitting
submit button, it does show me the error such as "*" symbol next to the box.
After I filled out those textboxes again and hit button to process the page.
It does not do anything, look like still waiting for an event.
RequiredFieldValidator dateValid = new RequiredFieldValidator();
dateValid.ID = "required" + stringID ;
dateValid.ControlToValidate = stringID;
//Response.Write(dateValid.ClientID+"<br>");
dateValid.Display = ValidatorDisplay.Dynamic;
I would like to ask for a solution.
Thanks
I'm building a web application which create a lot of HTML textboxes (not
datagrid) to get input from user. Being assosiate with a textboxe is a
requiredfield validator. The code is below. I don't know why after hitting
submit button, it does show me the error such as "*" symbol next to the box.
After I filled out those textboxes again and hit button to process the page.
It does not do anything, look like still waiting for an event.
RequiredFieldValidator dateValid = new RequiredFieldValidator();
dateValid.ID = "required" + stringID ;
dateValid.ControlToValidate = stringID;
//Response.Write(dateValid.ClientID+"<br>");
dateValid.Display = ValidatorDisplay.Dynamic;
I would like to ask for a solution.
Thanks