Forums
This topic is locked
Redirect after Record Delete
Posted 28 Oct 2007 20:39:11
1
has voted
28 Oct 2007 20:39:11 Jeannette Bierman posted:
If someone could help me, I would be forever grateful. I am trying to redirect to a dynamic page after a record deletion but keep running into the following error.Microsoft VBScript runtime error '800a01a8'
Object required: ''
/mycms/delimage.asp, line 49
Following is the code that I've used.
' *** Delete Record: declare variables
if (CStr(Request("MM_delete") = "form1" And CStr(Request("MM_recordId") <> "" Then
MM_editConnection = MM_connADV2005_STRING
MM_editTable = "Images"
MM_editColumn = "imageID"
MM_recordId = "" + Request.Form("MM_recordId" + ""
MM_editRedirectUrl = "admimages.asp?MLSno=" + (rsImages.Fields.Item("MLSno".Value) + ""
You'll have to excuse my programing ignorance but if you can help, I would appreciate it. THank you!
Replies
Replied 29 Oct 2007 12:05:38
29 Oct 2007 12:05:38 Georgi Kralev replied:
Hi Jeannette,
From the following line I believe that your language is <b>VBScript</b>.
if (CStr(Request("MM_delete") = "form1" And CStr(Request("MM_recordId") <> "" Then
But later you use <b>+</b> for concatenating strings.
Try to replace <b>+</b> with character <b>& </b>
For example:
MM_recordId = "" <b>&</b> Request.Form("MM_recordId" <b>&</b> ""
MM_editRedirectUrl = "admimages.asp?MLSno=" <b>&</b> (rsImages.Fields.Item("MLSno".Value) <b>&</b> ""
I hope this helps you.
Regards,
Georgi Kralev
----------------------------------
Support - www.DMXzone.com
From the following line I believe that your language is <b>VBScript</b>.
if (CStr(Request("MM_delete") = "form1" And CStr(Request("MM_recordId") <> "" Then
But later you use <b>+</b> for concatenating strings.
Try to replace <b>+</b> with character <b>& </b>
For example:
MM_recordId = "" <b>&</b> Request.Form("MM_recordId" <b>&</b> ""
MM_editRedirectUrl = "admimages.asp?MLSno=" <b>&</b> (rsImages.Fields.Item("MLSno".Value) <b>&</b> ""
I hope this helps you.
Regards,
Georgi Kralev
----------------------------------
Support - www.DMXzone.com