title: Input String Was Not Found In A Correct Format Error While Uploading Files
body: <p>I was trying to get an upload feature in my website built using ASP.NET. But it keeps throwing me this error
  Server Error in '/' Application.</p>
  
  <p><strong>Input string was not in a correct format.</strong></p>
  
  <p><strong>Description:</strong> 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. </p>
  
  <p><strong>Exception Details:</strong> System.FormatException: Input string was not in a correct format.</p>
  
  <p><strong>Source Error:</strong> </p>
  
  <pre><code>Line 43:lblDescription.Text = "Problem Description:";
  Line 44:txtDescription.Text = dr["problem_desc"].ToString();
  Line 45:this.lblFileName.Text = dal.GetFileName(ConstClass.ConnOLEDB, Convert.ToInt16(dr["problem"].ToString()));
  Line 46:break;
  Line 47:case "2": //Alter
  </code></pre>
  
  <p><strong>Source File:</strong> C:\eteam\eteam.net - on\eteamuno\module_edit.aspx.cs    Line: 45 </p>
  
  <p><strong>Stack Trace:</strong> </p>
  
  <pre><code>[FormatException: Input string was not in a correct format.]
     System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer&amp; number, NumberFormatInfo info, Boolean parseDecimal) +12639413
     System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +224
     System.Int16.Parse(String s, NumberStyles style, NumberFormatInfo info) +41
     eteamuno.module_edit.editvalue() in C:\eteam\eteam.net - on\eteamuno\module_edit.aspx.cs:45
     eteamuno.module_edit.Page_Load(Object sender, EventArgs e) in C:\eteam\eteam.net - on\eteamuno\module_edit.aspx.cs:24
     System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
     System.Web.UI.Control.LoadRecursive() +71
     System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3064
  </code></pre>
  
  <p>Can anyone please help me with this?</p>