A
Antoine Oulevay
Hello
I'm making a Web application in ASP.Net, and I've got some problems using several DropDownList controls. A CustomValidator control is assigned to each DropDownList control. And a validating function is emplemented for each of the ServerValidate event of the CustomValidator controls. Evry DropDownList has his AutoPostBack property set to "true", and the Lists are initialized with some values, and the first of these values is an empty string. By tracing the execution of my page_load procedure, I saw that by validating the control, if the empty string is selected in a DrpDownList, his ServerValidate event isn't called
My question is, why doesn't the system handle empty string or even a space (" ") the same way as other strings?
I'm making a Web application in ASP.Net, and I've got some problems using several DropDownList controls. A CustomValidator control is assigned to each DropDownList control. And a validating function is emplemented for each of the ServerValidate event of the CustomValidator controls. Evry DropDownList has his AutoPostBack property set to "true", and the Lists are initialized with some values, and the first of these values is an empty string. By tracing the execution of my page_load procedure, I saw that by validating the control, if the empty string is selected in a DrpDownList, his ServerValidate event isn't called
My question is, why doesn't the system handle empty string or even a space (" ") the same way as other strings?