I have a web user control displayed through mojoportal. I have an if condition that checks for IsPostback and hides elements accordingly. I also have an Updatepanel which displays or hides a checkbox according to the selected value of the RadiobuttonList
Now the problem is when i use the updatepanel I have to disable the IsPostback otherwise i'm getting an exception
Invalid postback or callback argument. Event validation is enabled using in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
How can i accomplish this? I need to hide the elements after the form is submitted or loaded the first time.