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 9:              If Not Request.QueryString("t") Is Nothing Then
Line 10:                 If Request.QueryString("t").ToString.Trim <> "" Then
Line 11:                     tnum = Request.QueryString("t").ToString.Trim
Line 12:                 End If
Line 13:             End If

Source File: C:\inetpub\wwwroot\angelnbella\category.aspx.vb    Line: 11

Stack Trace:


[FormatException: Input string was not in a correct format.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat) +181
   Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value) +60

[InvalidCastException: Conversion from string "6Page=20" to type 'Integer' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value) +240
   category.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\angelnbella\category.aspx.vb:11
   System.Web.UI.Control.OnLoad(EventArgs e) +92
   System.Web.UI.Control.LoadRecursive() +54
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.36480