Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

expected querystring causes error on page

Participant ,
Jan 18, 2007 Jan 18, 2007
My page contains a list menu whose labels and values are dynamic. I have set the initial value to equal a querystring. The page works fine when the querystring is present. However, if the page is accessed without the use of the expected querystring, I'm given the error message "...Requested operation requires a current record"

What can I add to the Dreamweaver generated script to avoid this trouble?
TOPICS
Server side applications
279
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Jan 19, 2007 Jan 19, 2007
aonefun wrote:
> What can I add to the Dreamweaver generated script to avoid this trouble?

In the Recordset dialog box, click the Advanced button, and then edit
the variable used in place of the query string. Give it a default value
equal to one of your existing records.

--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Translate
LEGEND ,
Jan 19, 2007 Jan 19, 2007
aonefun wrote:
> What can I add to the Dreamweaver generated script to avoid this trouble?

In the Recordset dialog box, click the Advanced button, and then edit
the variable used in place of the query string. Give it a default value
equal to one of your existing records.

--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 19, 2007 Jan 19, 2007
LATEST
You could use the 'show region if recordset not empty' server behaviour.

--
Jules
http://www.charon.co.uk/charoncart
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004




Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines