Server Error in '/' Application.

Value was either too large or too small for an Int16.

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.OverflowException: Value was either too large or too small for an Int16.

Source Error:


Line 18:         if (!Page.IsPostBack)
Line 19:         {    
Line 20:         short zpageno = Convert.ToInt16(Request.QueryString["pageno"]);
Line 21:         String zstate_code = (String)Request.QueryString["stateid"];
Line 22:         String zcity_short_descr = (String)Request.QueryString["cityid"];

Source File: d:\Applications\jobsinhand\list_jobs.aspx.cs    Line: 20

Stack Trace:


[OverflowException: Value was either too large or too small for an Int16.]
   System.Int16.Parse(String s, NumberStyles style, NumberFormatInfo info) +194
   System.Convert.ToInt16(String value) +64
   list_jobs.Page_Load(Object sender, EventArgs e) in d:\Applications\jobsinhand\list_jobs.aspx.cs:20
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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