Server Error in '/' Application.

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 30: {
Line 31: int pid = int.Parse(Request.QueryString["pid"]);
Line 32: int id = int.Parse(Request.QueryString["id"]);
Line 33: INewsType RCon = new RNewsType();
Line 34: TNewsType info = RCon.GateItem(pid);

Source File: d:\webnew\one.aspx.cs    Line: 32

Stack Trace:

[FormatException: Input string was not in a correct format.]
System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +14292453
System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +305
one.navInfo() in d:\webnew\one.aspx.cs:32
one.Page_Load(Object sender, EventArgs e) in d:\webnew\one.aspx.cs:20
System.Web.UI.Control.LoadRecursive() +71
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178

Version Information: Microsoft .NET Framework Version:4.0.303乐虎国际唯一官网 ; ASP.NET Version:4.0.303乐虎国际唯一官网 .34209