I am writing an application in which a user can register. When registering, you can select several options, and according to these fields the registers are visible or not, and they are required or not. I came up with the idea that all fields will be included in updatePanel, and when users change the registration settings, I would set the visibility of these fields on the server side.
It works, but incredibly slowly, and more on FF, I have this error:
Status information is invalid for this page and may be corrupted
3 checkboxes with other fields are in updatePanel
Each field is in the dl tag with runat="server>
I had to do this as this reason for the “required” option. I just add the css class to this dl (needed in javascript validation. If the field should be visible, I set visible = "false" for the given dl, and then this field for example FirstName with a heading, etc., is not visible after the postback .
Am I doing something wrong? Why it takes so much time (~ 4 minutes on localhost), and it really doesn't work in firefox (when I use debug, I think the process ends without errors on ff, I don’t understand this at all :)
If the update panel is so weak that it will be another option to change the visibility and add the necessary class for all dls. The logic is quite complex and should make a query to the database, so simple javascript will be quite complicated.
Thanks for any tips,
Oh, and I use ASP.Net and cannot update this project.
Thanks for the help, goodbye