473,890 Members | 1,450 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unable to Display Data

Here is the relevent part of my code. I am trying to learn ASP.
<body>
<table border="0" cellspacing="0" cellpadding="0" >
<form name="frmSearch 1a" 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="paren t.Search.locati on.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="VBSCR IPT" %>
<!-- METADATA TYPE="typelib" FILE="c:\progra m files\common
files\system\ad o\msado15.dll" -->
<%
occFilt = Request.QuerySt ring("fo")
response.write (occFilt)
%>
</body>
The response.write command is not displaying any data. Am I close?

Thank you for your time.

Jul 22 '05 #1
6 1934
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="frmSearch 1a" 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="paren t.Search.locati on.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="VBSCR IPT" %>
<!-- METADATA TYPE="typelib" FILE="c:\progra m files\common
files\system\ad o\msado15.dll" -->
<%
occFilt = Request.QuerySt ring("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="paren t.Search.locati on.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
Jul 22 '05 #2
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" <mo****@nospam. cling> wrote in message
news:aI******** *********@fe3.n ews.blueyonder. co.uk...
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="frmSearch 1a" 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="paren t.Search.locati on.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="VBSCR IPT" %>
<!-- METADATA TYPE="typelib" FILE="c:\progra m files\common
files\system\ad o\msado15.dll" -->
<%
occFilt = Request.QuerySt ring("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="paren t.Search.locati on.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

Jul 22 '05 #3
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" <mo****@nospam. cling> wrote in message
news:aI******** *********@fe3.n ews.blueyonder. co.uk...
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="frmSearch 1a" 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="pa rent.Search.loc ation.href='Sea rch.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="VBSCR IPT" %>
<!-- METADATA TYPE="typelib" FILE="c:\progra m files\common
files\system \ado\msado15.dl l" -->
<%
occFilt = Request.QuerySt ring("fo")
response.wri te (occFilt)
%>
</body>
The response.write command is not displaying any data. Am I close?

Thank you for your time.

Remove "parent.Search. " from
onchange="par ent.Search.loca tion.href='Sear ch.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


Jul 22 '05 #4
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" <mo****@nospam. cling> wrote in message
news:y2******** **********@fe1. news.blueyonder .co.uk...
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" <mo****@nospam. cling> wrote in message
news:aI******** *********@fe3.n ews.blueyonder. co.uk...
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="frmSearch 1a" method="get">
<tr>
<td align=center>
<font style="font: 12px;"><b>Enter any part of the
occupatio n</font></b></td><tr><td>
<input type="text" name="fo" style="FONT-SIZE: 12px; width: 185px"
onchange="p arent.Search.lo cation.href='Se arch.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.AS P

<body>
<%@ LANGUAGE="VBSCR IPT" %>
<!-- METADATA TYPE="typelib" FILE="c:\progra m files\common
files\syste m\ado\msado15.d ll" -->
<%
occFilt = Request.QuerySt ring("fo")
response.wr ite (occFilt)
%>
</body>
The response.write command is not displaying any data. Am I close?

Thank you for your time.
Remove "parent.Search. " from
onchange="pa rent.Search.loc ation.href='Sea rch.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



Jul 22 '05 #5
I am using the onchange event because I want to use the data "FO" in a
particular frame on my page.
"HartSA" <dv*********@cc nusa.com> wrote in message
news:eP******** ******@TK2MSFTN GP14.phx.gbl...
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" <mo****@nospam. cling> wrote in message
news:y2******** **********@fe1. news.blueyonder .co.uk...
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" <mo****@nospam. cling> wrote in message
news:aI******** *********@fe3.n ews.blueyonder. co.uk...

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="frmSearch 1a" 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.l ocation.href='S earch.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.A SP
>
><body>
><%@ LANGUAGE="VBSCR IPT" %>
><!-- METADATA TYPE="typelib" FILE="c:\progra m files\common
>files\syst em\ado\msado15. dll" -->
><%
>occFilt = Request.QuerySt ring("fo")
>response.w rite (occFilt)
>%>
></body>
>
>
>The response.write command is not displaying any data. Am I close?
>
>Thank you for your time.
Remove "parent.Search. " from
onchange="p arent.Search.lo cation.href='Se arch.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

Jul 22 '05 #6
HartSA wrote:
I am using the onchange event because I want to use the data "FO" in a
particular frame on my page.
"HartSA" <dv*********@cc nusa.com> wrote in message
news:eP******** ******@TK2MSFTN GP14.phx.gbl...
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" <mo****@nospam. cling> wrote in message
news:y2****** ************@fe 1.news.blueyond er.co.uk...
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" <mo****@nospam. cling> wrote in message
news:aI**** *************@f e3.news.blueyon der.co.uk...
>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="frmSearch 1a" method="get">
>><tr>
>><td align=center>
>><font style="font: 12px;"><b>Enter any part of the
>>occupatio n</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.AS P
>>
>><body>
>><%@ LANGUAGE="VBSCR IPT" %>
>><!-- METADATA TYPE="typelib" FILE="c:\progra m files\common
>>files\sys tem\ado\msado15 .dll" -->
>><%
>>occFilt = Request.QuerySt ring("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.l ocation.href='S earch.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="frmSearch 1a" 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="locat ion.href='Searc h.asp?fo=' + this.value + '' ;">
</td>
</tr>
</table>
</form>
</body>
</HTML>

Search.asp
<%@LANGUAGE="VB SCRIPT" CODEPAGE="1252" %>
<HTML>
<body>
<%
occFilt = Request.QuerySt ring("fo")
response.write (occFilt)
%>
</body>
</HTML>

Morris
Jul 22 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
3089
by: soup_or_power | last post by:
The pop up window has several checkboxes. I'm unable to access the checkboxes using the handle from window.open. Any way to do this? var display; function showSugg(but_id, sugg1, sugg2, sugg3, sugg4, sugg5) { display=window.open('','_blank','menubar=0,location=no,status=no,directories=no,toolbar=no,scrollbars=yes,height=150,width=190')
0
1286
by: S Stone | last post by:
Visual Studio is unable to display the XSD for editing. When I attempt to open one from the solution explorer, part of the editing surface attempts to display the XSD but it never fully repaints and displays the image. This occurs when I attempt to open an existing one or when I use the Add New Item, Dataset steps from the menu to create a new dataset. The dataset is usable in code but I am unable to edit it. I can view the .vb file but...
0
12083
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in '/CinemaBookingSystem' Application. -------------------------------------------------------------------------------- ERROR General error Unable to open registry key 'Temporary (volatile) Jet DSN for process
3
1899
by: JeffDotNet | last post by:
I wrote a small data processing application that writes a summary of several hundred files. I use drag and drop on a panel (Panel1) to grab the absolute path to each of these files. Then I begin analyzing all of the files. I noticed (on the same machine) that some user profiles appear to abbreviate the absolute paths to these files thus breaking my data loading mechanism. Does anyone know how I can programmatically change this filepath...
3
5253
by: den 2005 | last post by:
Hi everyone, Here is code working on..Trying to insert record with a column with Image or VarBinary datatype in sql database from a existing jpeg image file, then retrieve this image from database and display it in a Image web control dynamically(at runtime). The process after being displayed in the web control, user click insert/add button, it converts the image(jpeg) file to bytes and store it the database with Image or VarBinary...
0
2022
by: Nachi | last post by:
I have installed SQL Server 2000 with VS 2005 - did not install SqlExpress\Sql 2005. I have a remote Sql Server Instance locally. The normal application connectes to this Sql Server. When I run Asp.Net Configuration from VS 2005 it gives this error. I have removed 'LocalSqlServer' in machine.Config and added in web.config as following.
1
2355
by: Erik Lautier | last post by:
Hello, I'm using a multipart/form-data upload to put an image into SQL Server, and it appears to be working, but I'm unable to display the image. All I'm getting is the text of the URL we're on in Firefox and a missing image icon in IE! Any ideas why this isn't working? Here's the image upload code: Dim intImageSize As Int64 Dim strImageType As String Dim ImageStream As Stream
2
4869
by: jej1216 | last post by:
Using PHP to populate a form, I am not able to display any text area data -- it displays as blank. <?php echo "<textarea rows=11 cols=120 name=inc_descr value='".$incdescr."'></textarea>"; ?> The value might be "Patient stumbled on his shoelaces and fell to the floor. Staff were unable to get to the patient to break his fall." Using the code above, the text area is blank.
0
1406
by: geeteshss | last post by:
the present problem is that i am unable to display data in datagrid....... but the data is visible in database..below is the code what should i do...earlier i could view it also below this code is the code which is in my html page plz help........ private void Page_Load(object sender, System.EventArgs e) { if (!Page.IsPostBack) { BindData(); }
0
9978
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9822
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11232
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10819
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10923
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9633
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5851
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6045
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3277
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.