Input string not in correct format
--------------------------------------------------------------------------------
I am trying to view a picture from a table. I am getting this error
Input string not in the correct format.
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.FormatEx ception: Input string was not in a
correct format.
Source Error:
Line 45: cmdGetFile.Para meters("@Attach mentID").Value =
Request("Attach mentID").ToStri ng
Line 46: dbconn.Open()
Line 47: dr = cmdGetFile.Exec uteReader
Line 48: If dr.Read Then
Line 49: Response.Conten tType = dr("ContentType ").ToString
Source File: d:\inetpub\wwwr oot\viewpicture s\ViewAttachmen t.aspx.vb
Line: 47
Stack Trace:
[FormatException : Input string was not in a correct format.]
System.Data.Sql Client.SqlComma nd.ExecuteReade r(CommandBehavi or
cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
System.Data.Sql Client.SqlComma nd.ExecuteReade r()
Computers_Net.V iewAttachment.P age_Load(Object sender, EventArgs e)
in d:\inetpub\wwwr oot\viewpicture st\ViewAttachme nt.aspx.vb:47
System.Web.UI.C ontrol.OnLoad(E ventArgs e)
System.Web.UI.C ontrol.LoadRecu rsive()
System.Web.UI.P age.ProcessRequ estMain()
Any help will be appreciated
Thanks in advance
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com