473,508 Members | 2,241 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP: 'request'-object is unknown

hi, I get an error that the request object is unknown, the owc
pivottable is normally clientside and request.querystring is something
from the serverside, maybe that't the problem... Can anybody help
me???

thx

<html>

<head>
<title>PivotTable Component</title>
<!--#include file="Adovbs.inc"-->
<!--#include file="header.asp"-->

</head>

<body>

<!-- PivotTable Control -->
<object classid="clsid:0002E520-0000-0000-C000-000000000046"
id="PivotTable1" width="450" height="300">
</object>
<script language=VBScript>

Dim sSQL
Dim sConn
Dim item
Dim c
Set c = PivotTable1.Constants
PivotTable1.AutoFit = True
PivotTable1.AllowDetails = False
PivotTable1.DisplayFieldList = false

' Specify the SELECT criteria
sSQL = "select * from alles"

'Specify the connection string
sConn = "Provider=SQLOLEDB; Data Source = bew2vachach01; Initial
Catalog = finrap; User Id = sa; Password= as"

' Bind the PivotTable to the results of the query
PivotTable1.ConnectionString = sConn
PivotTable1.CommandText = sSQL
' Show all result columns in the report
'PivotTable1.ActiveView.AutoLayout

' Format the numbers
set pview = PivotTable1.ActiveView

'rijen instellen
For teller=1 to request.form("aantal")
rij="rij" & teller
if request.form(rij) <> "" then
pview.RowAxis.InsertFieldSet pview.FieldSets(request.form(rij))
end if
next
</script>

</body>
</html>
Jul 19 '05 #1
4 4261
you realize that this:
<script language=VBScript>

Makes this all CLIENT-SIDE VBScript, not ASP

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"spacecake" <re***********@hotmail.com> wrote in message
news:38**************************@posting.google.c om...
hi, I get an error that the request object is unknown, the owc
pivottable is normally clientside and request.querystring is something
from the serverside, maybe that't the problem... Can anybody help
me???

thx

<html>

<head>
<title>PivotTable Component</title>
<!--#include file="Adovbs.inc"-->
<!--#include file="header.asp"-->

</head>

<body>

<!-- PivotTable Control -->
<object classid="clsid:0002E520-0000-0000-C000-000000000046"
id="PivotTable1" width="450" height="300">
</object>
<script language=VBScript>

Dim sSQL
Dim sConn
Dim item
Dim c
Set c = PivotTable1.Constants
PivotTable1.AutoFit = True
PivotTable1.AllowDetails = False
PivotTable1.DisplayFieldList = false

' Specify the SELECT criteria
sSQL = "select * from alles"

'Specify the connection string
sConn = "Provider=SQLOLEDB; Data Source = bew2vachach01; Initial
Catalog = finrap; User Id = sa; Password= as"

' Bind the PivotTable to the results of the query
PivotTable1.ConnectionString = sConn
PivotTable1.CommandText = sSQL
' Show all result columns in the report
'PivotTable1.ActiveView.AutoLayout

' Format the numbers
set pview = PivotTable1.ActiveView

'rijen instellen
For teller=1 to request.form("aantal")
rij="rij" & teller
if request.form(rij) <> "" then
pview.RowAxis.InsertFieldSet pview.FieldSets(request.form(rij))
end if
next
</script>

</body>
</html>

Jul 19 '05 #2
If you do a view-source, you'll see that your code shows up in there,
because the code you have is not specified as being server-side code, either
with <% %> or <script RUNAT=SERVER...></script>

Ray at work

"spacecake" <re***********@hotmail.com> wrote in message
news:38**************************@posting.google.c om...
hi, I get an error that the request object is unknown, the owc
pivottable is normally clientside and request.querystring is something
from the serverside, maybe that't the problem... Can anybody help
me???

thx

<html>

<head>
<title>PivotTable Component</title>
<!--#include file="Adovbs.inc"-->
<!--#include file="header.asp"-->

</head>

<body>

<!-- PivotTable Control -->
<object classid="clsid:0002E520-0000-0000-C000-000000000046"
id="PivotTable1" width="450" height="300">
</object>
<script language=VBScript>

Dim sSQL
Dim sConn
Dim item
Dim c
Set c = PivotTable1.Constants
PivotTable1.AutoFit = True
PivotTable1.AllowDetails = False
PivotTable1.DisplayFieldList = false

' Specify the SELECT criteria
sSQL = "select * from alles"

'Specify the connection string
sConn = "Provider=SQLOLEDB; Data Source = bew2vachach01; Initial
Catalog = finrap; User Id = sa; Password= as"

' Bind the PivotTable to the results of the query
PivotTable1.ConnectionString = sConn
PivotTable1.CommandText = sSQL
' Show all result columns in the report
'PivotTable1.ActiveView.AutoLayout

' Format the numbers
set pview = PivotTable1.ActiveView

'rijen instellen
For teller=1 to request.form("aantal")
rij="rij" & teller
if request.form(rij) <> "" then
pview.RowAxis.InsertFieldSet pview.FieldSets(request.form(rij))
end if
next
</script>

</body>
</html>

Jul 19 '05 #3
I changed my code this way:

For teller=1 to request.form("aantal")
rij="rij" & teller
if <% request.form(rij) %> <> "" then
pview.RowAxis.InsertFieldSet pview.FieldSets(<% request.form(rij) %>)
end if
next

when I run the program I get this error:

Error Type:
Request object, ASP 0102 (0x80004005)
The function expects a string as input.

POST Data:
rij1=manager&aantal=5
Jul 19 '05 #4
spacecake wrote on 05 mrt 2004 in
microsoft.public.inetserver.asp.general:
I changed my code this way:

For teller=1 to request.form("aantal")
rij="rij" & teller
if <% request.form(rij) %> <> "" then
pview.RowAxis.InsertFieldSet pview.FieldSets(<%
request.form(rij) %>)
end if
next

when I run the program I get this error:

Error Type:
Request object, ASP 0102 (0x80004005)
The function expects a string as input.

POST Data:
rij1=manager&aantal=5


Faulty code

request.form("aantal") shows you are in serverside ASP,
then you start ASP by <% request.form(rij) %>

Mixing serverside and clientside code will never work.

Probeer je code netjes te scheiden.

===============================================

btw:

Even if you were in a clientside HTML part of your code,
<% request.form(rij) %> would not give any output,
should be <% = request.form(rij) %>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #5

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

Similar topics

5
6288
by: Boris Nikolaevich | last post by:
This is backwards of what I usually want--normally if you have a long-running ASP script, it's a good idea to check to see whether the client is still connected so you can cancel execution. ...
3
2395
by: No Spam Please | last post by:
I have a script. Its a login form that has the user enter their First Name, Last Name and ID #. That data along with the currdate and currtime is placed in an access database and the framed page...
1
5452
by: Wayne Smith | last post by:
Applies to: Microsoft FrontPage 2000, Microsoft Access 2000, IIS 5.0 Operating System: Microsoft Windows 2000 Professional I am trying to protect a portion of a web site by allowing users to...
17
4984
by: Roland Hall | last post by:
I eliminated cookies from my shopping cart this morning. I'm now using sessions to keep track of users. In my global.asa I have the following: sub Session_onStart session.Timeout = 20...
3
2643
by: Brian Birtle | last post by:
**** A CHALLENGE TO THE GURUS - refute the statement "It's impossible to build a file upload progress meter using ASP.NET" **** First person to prove me wrong gets "All Time .NET Programming GOD"...
3
2027
by: Ben | last post by:
I'm having problems with cookies from asp.net to asp back to asp.net. It seems like I can set a cookie in asp.net fine, and alter it at will, as soon as asp touches it, asp.net won't have...
5
12270
by: Neil Rossi | last post by:
I have an issue with a particular ASP page on two web servers. Let's call these servers Dev1 and Beta1. Both Servers are running IIS 5, Windows 2000 SP4 with "almost" all of the latest patches. ...
3
6207
by: satishknight | last post by:
Hi, Can some one tell me how to change the validation sequence for the code pasted below, actually what I want it when any one enters the wrong login information (already registered users) then it...
5
3409
by: =?Utf-8?B?R1ROMTcwNzc3?= | last post by:
Hi Guys, It's been a while, I've got a small problem that I could do with your expertise on. As you know (I Think) I build websites for recruitment agencies, part of the website includes a job...
24
3675
by: jerrydigital | last post by:
Hello, I am new to this forum but have read several posts and I thank you for your great assistance. I am stumped right now. I have a user registration form in asp that is set to a form...
0
7123
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...
0
7326
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,...
1
7046
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...
0
7498
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5627
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,...
1
5053
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3182
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
418
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...

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.