If Request Empty Request =

Posted on 2011-10-21
Last Modified: 2012-05-12

Is this possible?

<% If Request("l") = "" Then
Request("l") = (RSMemberLocality.Fields.Item("Locality").Value)
End If%>

When I try it I get an error -

Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'Request'
/retainersurveyresults.asp, line 28

Question by:garethtnash
    LVL 15

    Accepted Solution

    Request is Read-Only, I would suggest you assign the value of recordset to a variable and use that variable in your code.

    <% If Request("l") = "" Then
    somevariable = (RSMemberLocality.Fields.Item("Locality").Value)
    End If%>
    LVL 11

    Assisted Solution

    Agreed, maybe better written as:

    someVariable = Request("I")
    if someVariable = "" then
      someVariable =  (RSMemberLocality.Fields.Item("Locality").Value)
    end if

    response.write someVariable



    Author Closing Comment

    Thanks both

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
    Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
    In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
    In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now