Hi!
In my website, I have a button that is suppose to show or hide a panel depending if it is hidden or not. When I click on the button, I get this error:
Input string was not in a correct format.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.FormatException: Input string was not in a correct format.
I searched the web a little bit, and it seems this error has to do with type casts, but this has nothing to do with my function. Here's my code:
Code for the button in the aspx page:
CODE
<asp:Button ID="btnNouvSite" runat="server" onclick="btnNouvSite_Click" Text="Nouveau site / Add site" />
Code in the code behind file (I'm using C#):
CODE
protected void btnNouvSite_Click(object sender, EventArgs e){
panNouvSite.Visible = !panNouvSite.Visible;
}
Anybody has an idea what my problem is? Thanks in advance!