Unable to Display Data

Discussion in 'ASP General' started by HartSA, Jan 8, 2005.

  1. HartSA

    HartSA Guest

    Here is the relevent part of my code. I am trying to learn ASP.


    <body>
    <table border="0" cellspacing="0" cellpadding="0">
    <form name="frmSearch1a" method="get">
    <tr>
    <td align=center>
    <font style="font: 12px;"><b>Enter any part of the
    occupation</font></b></td><tr><td>
    <input type="text" name="fo" style="FONT-SIZE: 12px; width: 185px"
    onchange="parent.Search.location.href='Search.asp?fo=' + this.value + '' ;">
    </select>
    </td>
    </table>
    </form>
    </body>

    This is the page I am trying to display the data. The name of this page is
    Search.ASP

    <body>
    <%@ LANGUAGE="VBSCRIPT" %>
    <!-- METADATA TYPE="typelib" FILE="c:\program files\common
    files\system\ado\msado15.dll" -->
    <%
    occFilt = Request.QueryString("fo")
    response.write (occFilt)
    %>
    </body>


    The response.write command is not displaying any data. Am I close?

    Thank you for your time.
     
    HartSA, Jan 8, 2005
    #1
    1. Advertising

  2. HartSA

    Morris Guest

    HartSA wrote:
    > Here is the relevent part of my code. I am trying to learn ASP.
    >
    >
    > <body>
    > <table border="0" cellspacing="0" cellpadding="0">
    > <form name="frmSearch1a" method="get">
    > <tr>
    > <td align=center>
    > <font style="font: 12px;"><b>Enter any part of the
    > occupation</font></b></td><tr><td>
    > <input type="text" name="fo" style="FONT-SIZE: 12px; width: 185px"
    > onchange="parent.Search.location.href='Search.asp?fo=' + this.value + '' ;">
    > </select>
    > </td>
    > </table>
    > </form>
    > </body>
    >
    > This is the page I am trying to display the data. The name of this page is
    > Search.ASP
    >
    > <body>
    > <%@ LANGUAGE="VBSCRIPT" %>
    > <!-- METADATA TYPE="typelib" FILE="c:\program files\common
    > files\system\ado\msado15.dll" -->
    > <%
    > occFilt = Request.QueryString("fo")
    > response.write (occFilt)
    > %>
    > </body>
    >
    >
    > The response.write command is not displaying any data. Am I close?
    >
    > Thank you for your time.



    Remove "parent.Search." from
    onchange="parent.Search.location.href='Search.asp?fo=' + this.value + '' ;">

    As an aside, your html is badly formed. Your <table> and <form> tags
    overlap, as do your <font> and <b> tags.

    Morris
     
    Morris, Jan 8, 2005
    #2
    1. Advertising

  3. HartSA

    HartSA Guest

    Thanks but that didn't work.
    I still can't display the data on that page (Search.ASP). Anything else
    that I can try?

    Thanks for the info on the code being a little a skew, I normally don't
    worry about cleaning it up until I am ready to post the site.




    "Morris" <> wrote in message
    news:aINDd.27542$...
    > HartSA wrote:
    > > Here is the relevent part of my code. I am trying to learn ASP.
    > >
    > >
    > > <body>
    > > <table border="0" cellspacing="0" cellpadding="0">
    > > <form name="frmSearch1a" method="get">
    > > <tr>
    > > <td align=center>
    > > <font style="font: 12px;"><b>Enter any part of the
    > > occupation</font></b></td><tr><td>
    > > <input type="text" name="fo" style="FONT-SIZE: 12px; width: 185px"
    > > onchange="parent.Search.location.href='Search.asp?fo=' + this.value + ''

    ;">
    > > </select>
    > > </td>
    > > </table>
    > > </form>
    > > </body>
    > >
    > > This is the page I am trying to display the data. The name of this page

    is
    > > Search.ASP
    > >
    > > <body>
    > > <%@ LANGUAGE="VBSCRIPT" %>
    > > <!-- METADATA TYPE="typelib" FILE="c:\program files\common
    > > files\system\ado\msado15.dll" -->
    > > <%
    > > occFilt = Request.QueryString("fo")
    > > response.write (occFilt)
    > > %>
    > > </body>
    > >
    > >
    > > The response.write command is not displaying any data. Am I close?
    > >
    > > Thank you for your time.

    >
    >
    > Remove "parent.Search." from
    > onchange="parent.Search.location.href='Search.asp?fo=' + this.value + ''

    ;">
    >
    > As an aside, your html is badly formed. Your <table> and <form> tags
    > overlap, as do your <font> and <b> tags.
    >
    > Morris
     
    HartSA, Jan 8, 2005
    #3
  4. HartSA

    Morris Guest

    What happens instead? And why are you using a javascript onchange event
    instead of a submit button?

    Morris

    HartSA wrote:
    > Thanks but that didn't work.
    > I still can't display the data on that page (Search.ASP). Anything else
    > that I can try?
    >
    > Thanks for the info on the code being a little a skew, I normally don't
    > worry about cleaning it up until I am ready to post the site.
    >
    >
    >
    >
    > "Morris" <> wrote in message
    > news:aINDd.27542$...
    >
    >>HartSA wrote:
    >>
    >>>Here is the relevent part of my code. I am trying to learn ASP.
    >>>
    >>>
    >>><body>
    >>><table border="0" cellspacing="0" cellpadding="0">
    >>><form name="frmSearch1a" method="get">
    >>><tr>
    >>><td align=center>
    >>><font style="font: 12px;"><b>Enter any part of the
    >>>occupation</font></b></td><tr><td>
    >>><input type="text" name="fo" style="FONT-SIZE: 12px; width: 185px"
    >>>onchange="parent.Search.location.href='Search.asp?fo=' + this.value + ''

    >
    > ;">
    >
    >>></select>
    >>></td>
    >>></table>
    >>></form>
    >>></body>
    >>>
    >>>This is the page I am trying to display the data. The name of this page

    >
    > is
    >
    >>>Search.ASP
    >>>
    >>><body>
    >>><%@ LANGUAGE="VBSCRIPT" %>
    >>><!-- METADATA TYPE="typelib" FILE="c:\program files\common
    >>>files\system\ado\msado15.dll" -->
    >>><%
    >>>occFilt = Request.QueryString("fo")
    >>>response.write (occFilt)
    >>>%>
    >>></body>
    >>>
    >>>
    >>>The response.write command is not displaying any data. Am I close?
    >>>
    >>>Thank you for your time.

    >>
    >>
    >>Remove "parent.Search." from
    >>onchange="parent.Search.location.href='Search.asp?fo=' + this.value + ''

    >
    > ;">
    >
    >>As an aside, your html is badly formed. Your <table> and <form> tags
    >>overlap, as do your <font> and <b> tags.
    >>
    >>Morris

    >
    >
    >
     
    Morris, Jan 8, 2005
    #4
  5. HartSA

    HartSA Guest

    The text goes away and nothing is displayed. I believe I already tried the
    submit button already and that didn't work either. I am at a loss. What do
    you recommend.


    "Morris" <> wrote in message
    news:y2YDd.78419$...
    > What happens instead? And why are you using a javascript onchange event
    > instead of a submit button?
    >
    > Morris
    >
    > HartSA wrote:
    >> Thanks but that didn't work.
    >> I still can't display the data on that page (Search.ASP). Anything else
    >> that I can try?
    >>
    >> Thanks for the info on the code being a little a skew, I normally don't
    >> worry about cleaning it up until I am ready to post the site.
    >>
    >>
    >>
    >>
    >> "Morris" <> wrote in message
    >> news:aINDd.27542$...
    >>
    >>>HartSA wrote:
    >>>
    >>>>Here is the relevent part of my code. I am trying to learn ASP.
    >>>>
    >>>>
    >>>><body>
    >>>><table border="0" cellspacing="0" cellpadding="0">
    >>>><form name="frmSearch1a" method="get">
    >>>><tr>
    >>>><td align=center>
    >>>><font style="font: 12px;"><b>Enter any part of the
    >>>>occupation</font></b></td><tr><td>
    >>>><input type="text" name="fo" style="FONT-SIZE: 12px; width: 185px"
    >>>>onchange="parent.Search.location.href='Search.asp?fo=' + this.value + ''

    >>
    >> ;">
    >>
    >>>></select>
    >>>></td>
    >>>></table>
    >>>></form>
    >>>></body>
    >>>>
    >>>>This is the page I am trying to display the data. The name of this page

    >>
    >> is
    >>
    >>>>Search.ASP
    >>>>
    >>>><body>
    >>>><%@ LANGUAGE="VBSCRIPT" %>
    >>>><!-- METADATA TYPE="typelib" FILE="c:\program files\common
    >>>>files\system\ado\msado15.dll" -->
    >>>><%
    >>>>occFilt = Request.QueryString("fo")
    >>>>response.write (occFilt)
    >>>>%>
    >>>></body>
    >>>>
    >>>>
    >>>>The response.write command is not displaying any data. Am I close?
    >>>>
    >>>>Thank you for your time.
    >>>
    >>>
    >>>Remove "parent.Search." from
    >>>onchange="parent.Search.location.href='Search.asp?fo=' + this.value + ''

    >>
    >> ;">
    >>
    >>>As an aside, your html is badly formed. Your <table> and <form> tags
    >>>overlap, as do your <font> and <b> tags.
    >>>
    >>>Morris

    >>
    >>
     
    HartSA, Jan 8, 2005
    #5
  6. HartSA

    HartSA Guest

    I am using the onchange event because I want to use the data "FO" in a
    particular frame on my page.


    "HartSA" <> wrote in message
    news:...
    > The text goes away and nothing is displayed. I believe I already tried
    > the submit button already and that didn't work either. I am at a loss.
    > What do you recommend.
    >
    >
    > "Morris" <> wrote in message
    > news:y2YDd.78419$...
    >> What happens instead? And why are you using a javascript onchange event
    >> instead of a submit button?
    >>
    >> Morris
    >>
    >> HartSA wrote:
    >>> Thanks but that didn't work.
    >>> I still can't display the data on that page (Search.ASP). Anything else
    >>> that I can try?
    >>>
    >>> Thanks for the info on the code being a little a skew, I normally don't
    >>> worry about cleaning it up until I am ready to post the site.
    >>>
    >>>
    >>>
    >>>
    >>> "Morris" <> wrote in message
    >>> news:aINDd.27542$...
    >>>
    >>>>HartSA wrote:
    >>>>
    >>>>>Here is the relevent part of my code. I am trying to learn ASP.
    >>>>>
    >>>>>
    >>>>><body>
    >>>>><table border="0" cellspacing="0" cellpadding="0">
    >>>>><form name="frmSearch1a" method="get">
    >>>>><tr>
    >>>>><td align=center>
    >>>>><font style="font: 12px;"><b>Enter any part of the
    >>>>>occupation</font></b></td><tr><td>
    >>>>><input type="text" name="fo" style="FONT-SIZE: 12px; width: 185px"
    >>>>>onchange="parent.Search.location.href='Search.asp?fo=' + this.value +
    >>>>>''
    >>>
    >>> ;">
    >>>
    >>>>></select>
    >>>>></td>
    >>>>></table>
    >>>>></form>
    >>>>></body>
    >>>>>
    >>>>>This is the page I am trying to display the data. The name of this
    >>>>>page
    >>>
    >>> is
    >>>
    >>>>>Search.ASP
    >>>>>
    >>>>><body>
    >>>>><%@ LANGUAGE="VBSCRIPT" %>
    >>>>><!-- METADATA TYPE="typelib" FILE="c:\program files\common
    >>>>>files\system\ado\msado15.dll" -->
    >>>>><%
    >>>>>occFilt = Request.QueryString("fo")
    >>>>>response.write (occFilt)
    >>>>>%>
    >>>>></body>
    >>>>>
    >>>>>
    >>>>>The response.write command is not displaying any data. Am I close?
    >>>>>
    >>>>>Thank you for your time.
    >>>>
    >>>>
    >>>>Remove "parent.Search." from
    >>>>onchange="parent.Search.location.href='Search.asp?fo=' + this.value + ''
    >>>
    >>> ;">
    >>>
    >>>>As an aside, your html is badly formed. Your <table> and <form> tags
    >>>>overlap, as do your <font> and <b> tags.
    >>>>
    >>>>Morris
    >>>
    >>>

    >
     
    HartSA, Jan 8, 2005
    #6
  7. HartSA

    Morris Guest

    HartSA wrote:
    > I am using the onchange event because I want to use the data "FO" in a
    > particular frame on my page.
    >
    >
    > "HartSA" <> wrote in message
    > news:...
    >
    >>The text goes away and nothing is displayed. I believe I already tried
    >>the submit button already and that didn't work either. I am at a loss.
    >>What do you recommend.
    >>
    >>
    >>"Morris" <> wrote in message
    >>news:y2YDd.78419$...
    >>
    >>>What happens instead? And why are you using a javascript onchange event
    >>>instead of a submit button?
    >>>
    >>>Morris
    >>>
    >>>HartSA wrote:
    >>>
    >>>>Thanks but that didn't work.
    >>>>I still can't display the data on that page (Search.ASP). Anything else
    >>>>that I can try?
    >>>>
    >>>>Thanks for the info on the code being a little a skew, I normally don't
    >>>>worry about cleaning it up until I am ready to post the site.
    >>>>
    >>>>
    >>>>
    >>>>
    >>>>"Morris" <> wrote in message
    >>>>news:aINDd.27542$...
    >>>>
    >>>>
    >>>>>HartSA wrote:
    >>>>>
    >>>>>
    >>>>>>Here is the relevent part of my code. I am trying to learn ASP.
    >>>>>>
    >>>>>>
    >>>>>><body>
    >>>>>><table border="0" cellspacing="0" cellpadding="0">
    >>>>>><form name="frmSearch1a" method="get">
    >>>>>><tr>
    >>>>>><td align=center>
    >>>>>><font style="font: 12px;"><b>Enter any part of the
    >>>>>>occupation</font></b></td><tr><td>
    >>>>>><input type="text" name="fo" style="FONT-SIZE: 12px; width: 185px"
    >>>>>>onchange="parent.Search.location.href='Search.asp?fo=' + this.value +
    >>>>>>''
    >>>>
    >>>>;">
    >>>>
    >>>>>></select>
    >>>>>></td>
    >>>>>></table>
    >>>>>></form>
    >>>>>></body>
    >>>>>>
    >>>>>>This is the page I am trying to display the data. The name of this
    >>>>>>page
    >>>>
    >>>>is
    >>>>
    >>>>
    >>>>>>Search.ASP
    >>>>>>
    >>>>>><body>
    >>>>>><%@ LANGUAGE="VBSCRIPT" %>
    >>>>>><!-- METADATA TYPE="typelib" FILE="c:\program files\common
    >>>>>>files\system\ado\msado15.dll" -->
    >>>>>><%
    >>>>>>occFilt = Request.QueryString("fo")
    >>>>>>response.write (occFilt)
    >>>>>>%>
    >>>>>></body>
    >>>>>>
    >>>>>>
    >>>>>>The response.write command is not displaying any data. Am I close?
    >>>>>>
    >>>>>>Thank you for your time.
    >>>>>
    >>>>>
    >>>>>Remove "parent.Search." from
    >>>>>onchange="parent.Search.location.href='Search.asp?fo=' + this.value + ''
    >>>>
    >>>>;">
    >>>>
    >>>>>As an aside, your html is badly formed. Your <table> and <form> tags
    >>>>>overlap, as do your <font> and <b> tags.
    >>>>>
    >>>>>Morris
    >>>>
    >>>>

    >
    >


    Here's the code that works on my machine. Perhaps you can match it
    against yours to see if there are any differences?

    Page1.htm
    <HTML>
    <body>
    <form name="frmSearch1a" method="get">
    <table border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td align=center>
    <font style="size: 12px;"><b>Enter any part of the
    occupation</b></font>
    </td>
    </tr>
    <tr>
    <td>
    <input type="text" name="fo" style="FONT-SIZE: 12px; width: 185px"
    onchange="location.href='Search.asp?fo=' + this.value + '' ;">
    </td>
    </tr>
    </table>
    </form>
    </body>
    </HTML>

    Search.asp
    <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
    <HTML>
    <body>
    <%
    occFilt = Request.QueryString("fo")
    response.write (occFilt)
    %>
    </body>
    </HTML>

    Morris
     
    Morris, Jan 10, 2005
    #7
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tom Wisnowski

    IDE is unable to display my apsx page

    Tom Wisnowski, Oct 20, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    315
    Tom Wisnowski
    Oct 20, 2003
  2. vk02720
    Replies:
    0
    Views:
    2,939
    vk02720
    Jul 27, 2005
  3. Marshall Dudley

    Anyone unable to display this page?

    Marshall Dudley, Jul 23, 2004, in forum: HTML
    Replies:
    2
    Views:
    418
    Philip Ronan
    Jul 23, 2004
  4. Thiyagarajan Natarajan

    Unable to display the data in dropdownlist in datagrid

    Thiyagarajan Natarajan, Oct 12, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    111
    Thiyagarajan Natarajan
    Oct 12, 2005
  5. Jake Barnes
    Replies:
    6
    Views:
    392
    9.co.uk
    Feb 8, 2006
Loading...

Share This Page