This topic is locked

Error opening add page

5/3/2005 1:36:09 PM
ASPRunnerPro General questions
A
aspbeginner author

Sergey,

I receive the following error when trying to open the add page. I have downloaded the recent release of 3.2
Here is the error:
Error Type:

ADODB.Recordset (0x800A0CC1)

Item cannot be found in the collection corresponding to the requested name or ordinal.

/movies2/Movies_add.asp, line 1030
Here is the section of the code from the add page (I bolded the line the error is on):
sFieldName = "Thumbnail"

if rs.EOF and rs.BOF then

strValue=""

else

strValue = GetData(rs.Fields(sFieldName), FORMAT_NONE )

end if
if GetEditFormat(sFieldName) <> EDIT_FORMAT_HIDDEN then

Response.Write vbCRLF & "<tr><td class=shade>"

Response.Write Label(sFieldName) & " "

Response.Write "</td><td>"

end if
nType = rs.Fields(sFieldName).Type

bUpdatable = IsUpdatable(rs.Fields(sFieldName))
if GetEditFormat(sFieldName) <> EDIT_FORMAT_HIDDEN then
strEncoded = HTMLEncode(strValue)
if bUpdatable or IsBinaryField(rs.Fields(sFieldName)) or Format(rs.Fields(sFieldName).Name)=FORMAT_DATABASE_FILE then

sFormat = GetEditFormat(sFieldName)

Response.Write BuildEditControl(rs.Fields(sFieldName), strValue, sFormat, sMode)

else

strEncoded = HTMLEncode(GetDefaultValue(sFieldName))

Response.Write Replace(strEncoded, vbcrlf, "
")

end if
' add icons if required

Response.Write GetLegendIcon(sFieldName, nType, i)
Response.Write "</td></tr>"
else

Response.Write BuildEditControl(rs.Fields(sFieldName), strValue, GetEditFormat(sFieldName), sMode)

end if

Sergey Kornilov admin 5/4/2005

Hi,
please send Movies_add.asp file to support@xlinesoft.com for investigation.
PS. Did you modify this file manually?