Cannot Add a new Forum

Topics: Request
Nov 9, 2007 at 2:57 AM
hi all

when I try to add a new forum I get the following 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.

Source Error:


Line 59:
Line 60: Protected Sub AddTopic_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Line 61: ClubStarterKit.Web.Forum.AddTopic(TopicName.Text, Description.Text, SectionCHECK.Checked, Integer.Parse(Weight.Text), LockedCHECK.Checked, VisibleCHECK.Checked, DropDownList1.SelectedValue)
Line 62: Response.Redirect("~/forum/manage.aspx")
Line 63: End Sub


Source File: C:\inetpub\wwwroot\FCU\Forum\Manage.aspx Line: 61


also, I found that there is alot of Input string was not in a correct format error in the statistics section: adding season, adding team, etc...

Thanks
Nov 9, 2007 at 3:03 AM
I found the problem....

you need to put in the weight of the forum else you will get this error. should probably include a validation procedure here...

Hannibal