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 66: 	<tr><td height=15 colspan="2">&nbsp;</td></tr>
Line 67: 	<tr>
Line 68: 		<td colspan="2" align=center><%for j=1 to pimg%><a href="projectimage.aspx?tabid=<%response.write (tabid)%>&pimgid=<%response.write (pid*134809271187)%><%response.write (j)%>" class=link2>
Line 69: 			<img style="border: 1px solid #003399" src="NIM/PROJECTS/pimg<%response.write (pid*134809271187)%><%response.write (j)%>s.jpg" width=96 height=72></a>
Line 70: 		<%next%>

Source File: C:\Inetpub\vhosts\toskal.ir\httpdocs\projectdetail.aspx    Line: 68

Stack Trace:


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

[InvalidCastException: Conversion from string "" to type 'Integer' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value) +284
   ASP.projectdetail_aspx.__Render__control2(HtmlTextWriter __w, Control parameterContainer) in C:\Inetpub\vhosts\toskal.ir\httpdocs\projectdetail.aspx:68
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +276
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +80
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +169
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +80
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +169
   System.Web.UI.Page.Render(HtmlTextWriter writer) +40
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +80
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4239


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