running ASP on XP Home
is it possible to install PWS on XP Home?
If not, is there another way to run asp on XP Home? Tag: searchenginelist and entertainment Tag: 334914
How to read sequentially from a random point in a large Xml File.
Hello
Have a huge XML file with multitudes of "LogEntry" nodes / text
lines.
A small sample of this xml/text content is below.
The file could be anywhere between 200 to 2000 MB.
My questions comes in two parts.
(A)
I would like a solution (or ideas for it), in C#, -- to randomly
access a really huge xml file, and to sequentially read only the
"memory permiting" number of nodes into memory, from a place randomly
selected in the huge file. The application otherwise returns an out
of memory error or gets very slow, if i try to load the entire file,
because the user like to "scroll" through the file, viewing different
parts. Like when scrolling through a huge Word document.
How is this (best) done?
(B)
What is, and/or how would i estimate, the max amount of xml or text
from the file that the application can have in it's memory? The
application is both a web applicatin and a windows standalone.
On a 32bit machine with 2GB Ram, the virual memory is 2GB, which gives
an answer.
But i have a Java app that goes in a unhandled heap error already when
loading xml from a 200MB size file.
Any ideas, solutions, or links concerning the above (especially (A))?
One avenue is to try to base a sequential reader on a random access
stream.
I tried this idea. I based the XmlTextReader (for seqeuntial read) on
the FileStream (for randon access), but this didnt work. There is
some test code at the bottom of this email that shows some of this.
I used the FileStream for random access via the FileStream.Seek(..)
method.
But the XmlTextReader.Read() didn't start reading from the new
position.
The following:
FileStream.Seek(<Random NewPosition>, SeekOrigin.Begin);
FileStream.Read();
would read from a the new position, but it didnt effect the
positioning of XmlTextReader.Read().
Even though XmlTextReader is based on the same FileStream.
It caused though the last read of the XmlTextReader to validate the
xml erroneously (when the xml was actually ok).
An alternative is to base a StreamReader on a FileStream.
The StreamReader.BaseStream is available for random access, and the
StreamReader is there for sequential read.
But i think the same problem is there, as when basing the
XmlTextReader on the FileStream.
As a side thought to the problem, - it could be more easily solved if
MicroSoft offered an indexing mechanism (for application purposes) on
NTSF files. But this isn't the case. Or if i could load the huge
file into a database table, but the requirement is only to use xml
files (or flat files), so this isn't an option.
This question involves several "technologies". So i am posting it on
several newsgroups.
Here's a sample of the XML:
Each "LogEntry" node is viewed as line of text in a GridView
controller.
<Logs AtrA="AllTheLogs">
<Log AtrA="log1" AtrB="Machine nr 1">
<LogEntry AtrA="name1" AtrB="time" AtrC="location" />
<LogEntry AtrA="name2" AtrB="time" AtrC="location" />
<LogEntry AtrA="name3" AtrB="time" AtrC="location" />
<LogEntry AtrA="name4" AtrB="time" AtrC="location" />
</Log>
<Log AtrA="log2" AtrB="Machine nr 1">
<LogEntry AtrA="name5" AtrB="time" AtrC="location" />
<LogEntry AtrA="name6" AtrB="time" AtrC="location" />
</Log>
</Logs>
Some test code using XmlTextReader(FileStream) based on a file with
the above xml.
I used the VS debugger to look into the variables.
System.IO.FileStream fs = null;
int i = 0;
long[] bookMarks = new long[4000];
String[] linesOfText = new String[4000];
byte[] aBuffer = new byte[1000];
char[] charBuffer = new char[1000];
try
{
fs = new FileStream("c:\\aXMLfile.xml",
FileMode.OpenOrCreate);
System.Xml.XmlTextReader reader = new
XmlTextReader(fs);
long lngthOfFS = fs.Length;
Boolean a = false;
while (reader.Read())
{
bookMarks[i] = fs.Position;
StreamReader sr = new StreamReader(fs);
if (i == 2)
{
fs.Read(aBuffer, 0, aBuffer.Length);
fs.Position = 0;
fs.Read(aBuffer, 0, aBuffer.Length);
for (int g = 0; g < aBuffer.Length; g++)
{
charBuffer[g] = (char)aBuffer[g];
}
}
linesOfText[i] = "Attribute count: "
+ reader.AttributeCount
+ ", NodeType: "
+ reader.NodeType
+ ", Name: "
+ reader.Name
+ ", value: "
+ reader.Value;
a = reader.HasAttributes;
if (reader.HasAttributes)
{
for (int ii = 0; ii < reader.AttributeCount; ii
++)
{
reader.MoveToAttribute(ii);
linesOfText[i] = linesOfText[i]
+ "Attribute " + ii.ToString() + ":"
+ ", Name: "
+ reader.Name
+ ", value: "
+ reader.Value;
}
}
i++;
}
}
catch(Exception e)
{
String message = e.ToString();
}
finally
{
fs.Unlock(0, fs.Length);
}
Other references:
Efficient Techniques for Modifying Large XML Files
http://msdn2.microsoft.com/en-us/library/aa302289.aspx
XML Reader with Bookmarks
http://msdn2.microsoft.com/en-us/library/aa302292.aspx
The Best of Both Worlds: Combining XPath with the XmlReader
http://msdn2.microsoft.com/en-us/library/ms950778.aspx
Comments to references:
Helena Kupkova developed a XmlBookmarkReader class (based on
XmlReader). But when XmlBookmarkReader sets a bookmark on a read
node, it caches it and the following node, to be able to "replay" the
bookmark when it is needed. On huge files, an early bookmark will
cache the xml content of the file until the applicaiton runs out of
memory.
Dare Obasanjo XPathReader doesnt avoid a sequential read of the file,
testing for each read, for a match for one or more xpaths. For a new
XPath, the code would have to seqential reading from the start of the
file.
--
Regards,
Paul Tag: searchenginelist and entertainment Tag: 334905
Web dynamic data tree software to show relationships ....
Hi,
I am looking for a software that can generate a tree of data. For
example, I am trying to track real estate relationships like a lessor,
tenant, general contractor, and subcontractors. I would like a visual
representation of this relationship based on the values in my database
showing the hierarchy much like a site map or family tree.
Can anyone recommend how I could do this or suggest a software?
Thank you,
Ray Tag: searchenginelist and entertainment Tag: 334902
Running DOS Commands with Unix UNC Paths within ASP
I just posted this in microsoft.public.inetserver.iis but thought this might
be a better place for it.
I have the following ASP page that simply executes a DIR command on a UNC
path and displays the results. When the UNC path is a Windows machine the
output is as expected however when the UNC path is a Unix machine running
Samba, nothing is returned. I've configured the Authentication Method for the
IIS web site to use an account that has permissions to both the Windows and
Unix shares and confirmed this is the case by logging into the IIS server via
RDP as this account and running the command from a DOS window, which works
fine for both the Windows and Unix shares. The Samba server is configured to
authenticate against the same domain as the IIS and File share servers.
I don't believe there is a permissions problem and instead there is some
wierd interaction between the CMD.EXE instance created by the ASP page and
Unix server running Samba.
<%
Set objShell = CreateObject("WScript.Shell")
Set objExec = objShell.Exec("cmd /c dir \\server\share")
Set objStdOut = objExec.StdOut
strOutput = objStdOut.ReadAll
Response.Write strOutput
%> Tag: searchenginelist and entertainment Tag: 334897
custom 404 page works in IE but not firefox
Hi all,
A couple of months ago. I posted a thread and asked for help for redirect
all our site *.htm pages to *.asp pages because of our site upgrade almost
all *.htm to *.asp.
So some community members suggested use custom error page and redirect the
page to the same file but different ext. *.asp and it works fine in IE. But
when we tested in firefox today. it is not working. I wonder why? It is
because firefox return different format qstr? can you give me some clue. How
can I display the qstr in broswer in order to investigate it?
here is the code:
<% ' vbs
qstr = Request.ServerVariables("QUERY_STRING")
If instr(lcase(qstr),".htm")>0 then
on error resume next
x = replace(qstr, "404;http://www.mydomain.com:80","")
'404;http://www.mydomain.com:80
x = replace(x,".htm",".asp")
'server.transfer x
Response.Status="301 Moved Permanently"
Response.AddHeader "Location", x
'Response.Redirect x
on error resume next
Response.Redirect "http://www.mydomain.com/404Page.htm"
on error goto 0
Else
on error resume next
Response.Redirect "http://www.mydomain.com/404Page.htm"
End if
%>
--
Betty Tag: searchenginelist and entertainment Tag: 334895
asp engine sets cache-control to private
Hi, i am trying to set cache control from iis to no-transform it works fine
but when asp runs it alsoe sets it automaticly to private.
see the example below
-----------------------------------------
HTTP Status Code: HTTP/1.1 200 OK
Connection: close
Date: Wed, 02 Apr 2008 21:44:09 GMT
Server: Microsoft-IIS/6.0
Cache-Control: no-transform
Content-Length: 2523
Content-Type: application/xhtml+xml
Set-Cookie: ASPSESSIONIDCSBDCRTR=FGAKMIMBBEEFCKEMGOMAOEGF; path=/
Cache-control: private
--------------------------------------
is there any way to change this auto mode? i know i can change it in the asp
but i have 100s of pages and it wouldn't be easy to go back once its set in
asp pages. Tag: searchenginelist and entertainment Tag: 334894
aspsmartupload error
I am using Windows XP and have registered the aspsmartupload dll and moved it
into the system32 directory. I get the following error
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80070005)
[Microsoft][ODBC Microsoft Access Driver]General error Unable to open
registry key 'Temporary (volatile) Jet DSN for process 0x918 Thread 0xa90 DBC
0x96768d4 Jet'.
The error occurs on the line where I set my variable called mySmartUpload
Here is my code
<%Set Cnn = Server.CreateObject("ADODB.Connection")
Cnn.Open "Driver={Microsoft Access Driver (*.mdb)};Dbq= "&
Server.MapPath(".") & "\jobpostingsdb.mdb; uid=admin; pwd=hi12tech"
Dim mySmartUpload
Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")
mySmartUpload.Upload
sql = "insert into jobpostings (testing) values
('"&mySmartUpload.Form("testing")&"')"
cnn.execute(sql)
I usually get these types of errors when trying to access a database. My
understanding is aspsmartupload has nothing to do with a database. And the
database I'm using in this program is making a successful connection (at
least there was no error on the line of code that opened the connection).
Any suggestions?
Thanks!! Tag: searchenginelist and entertainment Tag: 334885
replacing a space or something like that
Not sure how the title should have been, but here goes
I want to take txt that i copy from a table on a site
ex
someplayername 1bff911a47a2e3044c5f4f6a27d68533 4.xxx.203.xx
212.xxx.208.195 03/18/07 19:36:41
someplayername2 1930ca7a22e0985c4241b859a06f740f 4.xxx.203.xx
66.55.xxx.100 03/18/07 19:09:41
now there would be several lines like this.
i want to put it into a form text area and submit it.
on the asp page, i want it to put a | between each item on each line, but
NOT after the last item on each line.
so the output would look like this.
ex
someplayername | 1bff911a47a2e3044c5f4f6a27d68533 | 4.xxx.203.xx |
212.xxx.208.195 | 03/18/07 19:36:41
someplayername2 | 1930ca7a22e0985c4241b859a06f740f | 4.xxx.203.xx |
66.55.xxx.100 | 03/18/07 19:09:41
i know you will ask why. this is the format for my vbulleten forum to make a
table.
now sometimes, there is more than one space between objects there. so i
would want to be able to take out the extra spaces so it would be like
someplayername | 1bff911a47a2e3044c5f4f6a27d68533 | 4.xxx.203.xx |
212.xxx.208.195 | 03/18/07 19:36:41
someplayername2 | 1930ca7a22e0985c4241b859a06f740f | 4.xxx.203.xx |
66.55.xxx.100 | 03/18/07 19:09:41
now if removing the spaces is a big deal, then i won't care to do it.
but the question i have is basically how to do this.
i could replace "" with |, but then it would replace every space right?
I only need one space between replaced.
Hope I am not confusing folks out there.
If anyone can help, I would appreciate it
TIA
Bam Tag: searchenginelist and entertainment Tag: 334879
RTF/DOC to PDF
I am creating RTF and DOC files on the fly based on database values.
Is there any component that converts RTF/DOC to PDF on the fly?
I know I can create PDF directly but they are not as flexible as I
need them to be. I need to create the RTF/DOC file first, then convert
it to PDF.
Grateful of any help.
Regards,
Dave Tag: searchenginelist and entertainment Tag: 334876
URL for server page
I'm developing a Web App using C#. I want a page in the app to refer to
another page in the app. I tried to create a web request with the page
address below:
pageAddress = "http://~/clientDBQuery.aspx";
WebRequest request = WebRequest.Create (pageAddress);
and got the following error:
Exception Details: System.UriFormatException: Invalid URI: The hostname
could not be parsed.
What is the syntax for referring to a page on the current site so I don't
have to change it when it's published?
When I used the following page address:
pageAddress = "http://clientDBQuery.aspx";
I didn't get the parsing error but the debugger didn't stop on a break point
I set in the LoadPage method. This seems to occurr because it goes to a page
on my ISP which doesn't exist.
What's the right way to handle this situation?
Thanks, Neil Tag: searchenginelist and entertainment Tag: 334875
how to include Google tracking code in html file
Hi all,
I put GA's tracking code in a html file called ga_track.html and include in
any *.asp file before the end of the </body>, see below:
<!--#Include Virtual="/TISMSDE/GA_track.html" -->
</body>
<!-- Google Analytic Tracking Code :GA_track.html-->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." :
"http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost +
"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-2356948-8");
pageTracker._initData();
pageTracker._trackPageview();
</script>
everything looks Ok and these code could be seen when you view any page's
source code. but my question is how we should include this piece of code in
*.html
file. In what way we include this file(or *.js file), the code could be seen
when you open view source in browser instead of just one line code
<!--#Include Virtual="/TISMSDE/GA_track.html" -->
or <<script type="text/javascript" src="/tismsde/ga_track.js"></javascript>
since I am afaid of GA cannot work correctly without seeing the piece of
code directly in the browser.
Any recommendation?
--
Betty Tag: searchenginelist and entertainment Tag: 334873
Difference between ie6 and ie 7
We are moving in our org from ie6 to ie7.
Can anyone point me to a Documnet state all differences between the versions
I need to know how to prepare our web applications for the change.
thank you very much.
--
moital Tag: searchenginelist and entertainment Tag: 334870
download using asp
dear sir/madam
I have to do something like this that a user see list of record if
he would find record and want to download that list then a button
should be available on page so that he could download that list
in a pdf file of that record. please help me
Thanks in advance Tag: searchenginelist and entertainment Tag: 334866
Executing programs in "background"
Hi,
I'm using Windows XP, IIS & ASP to develop a web service that executes
several programs (command line .exe files) on a server, shows next
webpage with info on progress in execution, and presents the results
page. Basically, on the first webpage (html) user chooses which
programs are to be executed, and then an asp script runs the programs
on the server.
The problem is that I don't know how to run these programs in
"background" such that my webpage with "progress info" can be loaded
and refreshed. Each program generates a file, so it is easy to figure
out which programs are complete. At the end of the day, I would like
to have a list of programs with labels "incomplete" or "complete". The
webpage should refresh every couple of seconds.
So far I have put the sequence of programs to be executed in asp file
and it is working, but I cannot display/refresh the webpage during the
execution. The webpage is being displayed after all programs are
complete.
Any suggestions are very appreciated...
Thanks in advance,
Wojciech Tag: searchenginelist and entertainment Tag: 334864
Upload file using asp
dear sir/madam
I have to do something like this that a user see list of record if
he would find record and want to upload that list then he could upload
in a pdf file of that record. please help me
Thanks in advance Tag: searchenginelist and entertainment Tag: 334853
Create a word document from form fields
Is there a way to create a word document when a submit button is pressed. I
have a form that is filled out and the data sent to a database but I would
alos like the data to be added to a work template and sent to someone by
email. Has this been done and if so are there any examples.
Thanks Tag: searchenginelist and entertainment Tag: 334850
allow user to download data in MS Money format
I need to allow user to save dataset to their computer in Microsoft Money
format. I searched internet for help on this but found nothing helpful. I
also chatted with MS Online Concierge to no avail.
If you could, please provide pointers to steps how to accomplish this. If
you will provide the steps yourself, please be very explicit in what you
provide. I do not know how to accomplish this task and need detailed help.
Thank you. Tag: searchenginelist and entertainment Tag: 334848
Assessing XML Data
Hi,
I'm using a form to go submit data to a third party web site http://ononemap.com
at "http://ononemap.com/lib/ajx/api". The contents of the form are
hidden form fields [populated from my database], the data will have
been validated.
If I successfully submit the data (I can use get or post) I get
something like:
- <results requestedaction="add">
<submission response="OK" id="123456789" />
</results>
Can anyone assist? I need to 'receive' the reslutlant XML data and
store the id into my database. If I had something like
request.querystring("id") or request.form("id") I'd be more than
happy, but this information is surely just displayed on the page that
I post to!
Maybe I'm a little dim here but I just can't figure how to retreive
that info.
If there is a failure I'd get somthing like:
<results requestedaction="add">
<error type="incomplete" fieldname="title" />
<error type="invalid" fieldname="price" />
<error type="invalid" fieldname="imgurl" />
</results>
I could do with retrieving that data also!
Thanks
Jon Tag: searchenginelist and entertainment Tag: 334823
Security Context
I am building an add user website. I have several asp scripts in this
website such as, query for username, create user, etc. Ideally I would like
to have users logon to the website, and have these scripts execute with
their individual security context. Can anyone point me in the right
direction, mabe some samples somewhere.
Thanks a bunch Tag: searchenginelist and entertainment Tag: 334813
http://localhost is not available without Internet connection
Installed IIS on w2k pro, started Personal Web server and pointed the home
catalogue to the folder with my asp codes. However IE keeps saying that
http://localhost is not available without Internet connection. Such thing
often happend on other computers, but after several refresh it worked. How
shall I get rounf this now? Tag: searchenginelist and entertainment Tag: 334812
(IIS) problems with virtual directory
Good Afternoon!
I am having problems with the display of files in a virtual directory.
At my "server1" I created a logical mapping on IIS appoint to a image
directory on "server2".
At "server1" I can browser the files on "server2", but if I'm using
Internet explorer, I got this error:
#########################################
Unable to display the page
There is a problem on the page you are looking for and it can not be
displayed.
--------------------------------------------------------------------------------
Try this:
Contact the site administrator to inform you that the error occurred
in the URL.
HTTP Error 500 - Internal server error.
IIS (Internet Information Services)
#########################################
At log I got the message:
"2008-03-19 13:30:04 W3SVC1967716968 172.16.0.236 GET /
virtual_directory_name/0040830051599.jpg - 80 - 172.16.0.236 Mozilla/
4.0+(compatible;+MSIE+7.0;+Windows+NT+5.2;+.NET+CLR+1.1.4322;+.NET+CLR
+2.0.50727) 500 16 1326"
I am visiting as follow: http://mydomain.com.br/virtual_directory_name/image_name.jpg
Best Regards,
Paulo Canavezi Tag: searchenginelist and entertainment Tag: 334803
treeview menu
Here is my scenario. I just took over an existing asp site that is using a
treeview menu on the pages. The treeview is an include file that is an
include that is on every page. The issue is, when the user clicks on a menu
option it opens a new page (menu is still there) and the menu is collapsed.
example:
menu looks something like this
Menu1
Menu2
Menu3
the user clicks on Menu1 they see this
Menu1
NE Region
SE Region
SW Region
Menu2
Menu3
When the user clicks on NE Region it takes them to the NE Region page, then
the menu is collapsed:
Menu1
Menu2
Menu3
Is there a way or an existing treeview menu out there, that will allow me to
keep the selected menu option expanded when the user goes to that page so
when they go to the NE Region page the Menu1 is expanded and NE Region is
highlighted? Tag: searchenginelist and entertainment Tag: 334802
determine images width and height
Hi,
Is there a way to determine the actual width and height of a image file ?
I'm using aspsmartupload to upload the image, how can determine and save the
width and height value ?
seems that aspsmartupload doesn't have this property.
If so, is there any method to determine it in asp in the simpliest way? I
will prefer to maintain the aspsmartupload method.
thanks.
cheers
Magix Tag: searchenginelist and entertainment Tag: 334794
Not able to run the asp.net from IIS server?
Hi friends iam using IIS server to run my asp.net program. I can
compile and run from the asp.net tool and also i can connect with sql
server. when i try to run from the IIS server i was not able to
connect with sql server and I am getting error as page cannot be
display. but i can run the static page(without using sql server
connection) from the same IIS server. I think im mistaking in the sql
server connection. can anyone help me out. Tag: searchenginelist and entertainment Tag: 334791
WScript.Shell Microsoft VBScript runtime error '800a0046'
Erorr is
---------------------
Microsoft VBScript runtime error '800a0046'
Permission denied
/a.asp, line 3
-----------------------
Code is
-----------------------
<%
Set WShShell = Server.CreateObject("WScript.Shell")
WShShell.Run "cmd /c dir", 0, True
%>
-----------------------
This is a standart iis user site at c:\inetpub\wwwroot with full
permissions to iis user.
server hasnt got any av or smilar sow installed
I have tried
------------------
editing cmd security and adding everyone user to cmd.exe just to male
sure it gets full access
editing cscript security and adding everyone user to cmd.exe just to
male sure it gets full access
nothaing has changed. I couldnt find any information on the net and
filemon®mon does not rise any persmission denied errors.
can it be anything else? may be policy? if yes where can i find it?
below copy of filemon log
---------------------------------------------------
841 11:46:17 w3wp.exe:11228 OPEN C:\Inetpub\wwwroot\a.asp SUCCESS
Options: Open Access: Read
842 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\Inetpub\wwwroot\a.asp SUCCESS FileFsVolumeInformation
843 11:46:17 w3wp.exe:11228 QUERY INFORMATION C:\Inetpub\wwwroot\a.asp
BUFFER OVERFLOW FileAllInformation
844 11:46:17 w3wp.exe:11228 CLOSE C:\Inetpub\wwwroot\a.asp SUCCESS
845 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system32\wshom.ocx SUCCESS Attributes: A
846 11:46:17 w3wp.exe:11228 OPEN C:\WINDOWS\system32\wshom.ocx SUCCESS
Options: Open Access: 00100020
847 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system32\wshom.ocx SUCCESS Length: 98304
848 11:46:17 w3wp.exe:11228 CLOSE C:\WINDOWS\system32\wshom.ocx SUCCESS
849 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system32\wshom.ocx SUCCESS Attributes: A
850 11:46:17 w3wp.exe:11228 OPEN C:\WINDOWS\system32\wshom.ocx SUCCESS
Options: Open Access: 00100021
851 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system32\wshom.ocx SUCCESS Length: 98304
852 11:46:17 w3wp.exe:11228 CLOSE C:\WINDOWS\system32\wshom.ocx SUCCESS
853 11:46:17 w3wp.exe:11228 READ C:\WINDOWS\system32\wshom.ocx SUCCESS
Offset: 4096 Length: 32768
854 11:46:17 w3wp.exe:11228 READ C:\WINDOWS\system32\wshom.ocx SUCCESS
Offset: 36864 Length: 20480
856 11:46:17 w3wp.exe:11228 READ C:\WINDOWS\system32\wshom.ocx SUCCESS
Offset: 57344 Length: 4096
857 11:46:17 w3wp.exe:11228 READ C:\WINDOWS\system32\wshom.ocx SUCCESS
Offset: 61440 Length: 16384
858 11:46:17 w3wp.exe:11228 READ C:\WINDOWS\system32\wshom.ocx SUCCESS
Offset: 77824 Length: 16384
859 11:46:17 w3wp.exe:11228 READ C:\WINDOWS\system32\wshom.ocx SUCCESS
Offset: 94208 Length: 4096
860 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system32\WINSPOOL.DRV SUCCESS Attributes: A
861 11:46:17 w3wp.exe:11228 OPEN C:\WINDOWS\system32\WINSPOOL.DRV
SUCCESS Options: Open Access: 00100021
862 11:46:17 w3wp.exe:11228 CLOSE C:\WINDOWS\system32\WINSPOOL.DRV SUCCESS
863 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system32\ScrRun.dll SUCCESS Attributes: A
864 11:46:17 w3wp.exe:11228 OPEN C:\WINDOWS\system32\ScrRun.dll SUCCESS
Options: Open Access: 00100021
865 11:46:17 w3wp.exe:11228 CLOSE C:\WINDOWS\system32\ScrRun.dll SUCCESS
866 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system32\MFC42.dll SUCCESS Attributes: A
867 11:46:17 w3wp.exe:11228 OPEN C:\WINDOWS\system32\MFC42.dll SUCCESS
Options: Open Access: 00100021
868 11:46:17 w3wp.exe:11228 CLOSE C:\WINDOWS\system32\MFC42.dll SUCCESS
869 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system32\ODBC32.dll SUCCESS Attributes: A
870 11:46:17 w3wp.exe:11228 OPEN C:\WINDOWS\system32\ODBC32.dll SUCCESS
Options: Open Access: 00100021
871 11:46:17 w3wp.exe:11228 CLOSE C:\WINDOWS\system32\ODBC32.dll SUCCESS
874 11:46:17 w3wp.exe:11228 OPEN
C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_5.82.3790.3959_x-ww_78FCF8D0\COMCTL32.dll
SUCCESS Options: Open Access: 00100021
875 11:46:17 w3wp.exe:11228 CLOSE
C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_5.82.3790.3959_x-ww_78FCF8D0\COMCTL32.dll
SUCCESS
876 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system32\odbcint.dll SUCCESS Attributes: A
877 11:46:17 w3wp.exe:11228 OPEN C:\WINDOWS\system32\odbcint.dll
SUCCESS Options: Open Access: 00100020
878 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system32\odbcint.dll SUCCESS Length: 94208
879 11:46:17 w3wp.exe:11228 CLOSE C:\WINDOWS\system32\odbcint.dll SUCCESS
885 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system32\odbcint.dll SUCCESS Attributes: A
886 11:46:17 w3wp.exe:11228 OPEN C:\WINDOWS\system32\odbcint.dll
SUCCESS Options: Open Access: 00100021
887 11:46:17 w3wp.exe:11228 CLOSE C:\WINDOWS\system32\odbcint.dll SUCCESS
888 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system32\MFC42LOC.DLL NOT FOUND Attributes: Error
889 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system32\MFC42LOC.DLL NOT FOUND Attributes: Error
890 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system32\MFC42LOC.DLL.DLL NOT FOUND Attributes: Error
891 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system32\wshENU.DLL NOT FOUND Attributes: Error
892 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system32\wshENU.DLL NOT FOUND Attributes: Error
893 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\windows\system32\inetsrv\wshENU.DLL NOT FOUND Attributes: Error
894 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system32\wshENU.DLL NOT FOUND Attributes: Error
895 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system\wshENU.DLL NOT FOUND Attributes: Error
896 11:46:17 w3wp.exe:11228 QUERY INFORMATION C:\WINDOWS\wshENU.DLL
NOT FOUND Attributes: Error
897 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system32\inetsrv\wshENU.DLL NOT FOUND Attributes: Error
898 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\Perl\site\bin\wshENU.DLL NOT FOUND Attributes: Error
899 11:46:17 w3wp.exe:11228 QUERY INFORMATION C:\Perl\bin\wshENU.DLL
NOT FOUND Attributes: Error
900 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system32\wshENU.DLL NOT FOUND Attributes: Error
901 11:46:17 w3wp.exe:11228 QUERY INFORMATION C:\WINDOWS\wshENU.DLL
NOT FOUND Attributes: Error
902 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system32\WBEM\wshENU.DLL NOT FOUND Attributes: Error
903 11:46:17 w3wp.exe:11228 QUERY INFORMATION C:\Program Files\Microsoft
SQL Server\90\Tools\binn\wshENU.DLL NOT FOUND Attributes: Error
904 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system32\wshEN.DLL NOT FOUND Attributes: Error
905 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system32\wshEN.DLL NOT FOUND Attributes: Error
906 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\windows\system32\inetsrv\wshEN.DLL NOT FOUND Attributes: Error
907 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system32\wshEN.DLL NOT FOUND Attributes: Error
908 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system\wshEN.DLL NOT FOUND Attributes: Error
910 11:46:17 w3wp.exe:11228 QUERY INFORMATION C:\WINDOWS\wshEN.DLL NOT
FOUND Attributes: Error
911 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system32\inetsrv\wshEN.DLL NOT FOUND Attributes: Error
912 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\Perl\site\bin\wshEN.DLL NOT FOUND Attributes: Error
913 11:46:17 w3wp.exe:11228 QUERY INFORMATION C:\Perl\bin\wshEN.DLL
NOT FOUND Attributes: Error
914 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system32\wshEN.DLL NOT FOUND Attributes: Error
915 11:46:17 w3wp.exe:11228 QUERY INFORMATION C:\WINDOWS\wshEN.DLL NOT
FOUND Attributes: Error
916 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system32\WBEM\wshEN.DLL NOT FOUND Attributes: Error
917 11:46:17 w3wp.exe:11228 QUERY INFORMATION C:\Program Files\Microsoft
SQL Server\90\Tools\binn\wshEN.DLL NOT FOUND Attributes: Error
918 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system32\wshENU.DLL NOT FOUND Attributes: Error
919 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system32\wshENU.DLL NOT FOUND Attributes: Error
920 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\windows\system32\inetsrv\wshENU.DLL NOT FOUND Attributes: Error
921 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system32\wshENU.DLL NOT FOUND Attributes: Error
922 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system\wshENU.DLL NOT FOUND Attributes: Error
923 11:46:17 w3wp.exe:11228 QUERY INFORMATION C:\WINDOWS\wshENU.DLL
NOT FOUND Attributes: Error
924 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system32\inetsrv\wshENU.DLL NOT FOUND Attributes: Error
925 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\Perl\site\bin\wshENU.DLL NOT FOUND Attributes: Error
926 11:46:17 w3wp.exe:11228 QUERY INFORMATION C:\Perl\bin\wshENU.DLL
NOT FOUND Attributes: Error
927 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system32\wshENU.DLL NOT FOUND Attributes: Error
928 11:46:17 w3wp.exe:11228 QUERY INFORMATION C:\WINDOWS\wshENU.DLL
NOT FOUND Attributes: Error
929 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system32\WBEM\wshENU.DLL NOT FOUND Attributes: Error
930 11:46:17 w3wp.exe:11228 QUERY INFORMATION C:\Program Files\Microsoft
SQL Server\90\Tools\binn\wshENU.DLL NOT FOUND Attributes: Error
931 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\windows\system32\inetsrv SUCCESS Attributes: D
932 11:46:17 w3wp.exe:11228 OPEN C:\windows\system32\inetsrv\ SUCCESS
Options: Open Directory Access: 00100001
933 11:46:17 w3wp.exe:11228 DIRECTORY C:\windows\system32\inetsrv\ NO
SUCH FILE FileBothDirectoryInformation: cmd"*
934 11:46:17 w3wp.exe:11228 CLOSE C:\windows\system32\inetsrv\ SUCCESS
936 11:46:17 w3wp.exe:11228 OPEN C:\WINDOWS\system32\verclsid.exe
SUCCESS Options: Open Access: 001000A1
937 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system32\verclsid.exe SUCCESS Attributes: A
938 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system32\verclsid.exe SUCCESS Length: 29184
939 11:46:17 w3wp.exe:11228 OPEN
C:\WINDOWS\system32\verclsid.exe.Manifest NOT FOUND Options: Open
Access: 001200A9
940 11:46:17 w3wp.exe:11228 CLOSE C:\WINDOWS\system32\verclsid.exe SUCCESS
941 11:46:17 verclsid.exe:3208 OPEN C:\windows\system32\inetsrv\
SUCCESS Options: Open Directory Access: 00100020
977 11:46:17 w3wp.exe:11228 OPEN C:\windows\system32\inetsrv\ SUCCESS
Options: Open Directory Access: 00100001
978 11:46:17 w3wp.exe:11228 DIRECTORY C:\windows\system32\inetsrv\ NO
SUCH FILE FileBothDirectoryInformation: cmd"*
979 11:46:17 w3wp.exe:11228 CLOSE C:\windows\system32\inetsrv\ SUCCESS
980 11:46:17 w3wp.exe:11228 OPEN C:\WINDOWS\system32\ SUCCESS Options:
Open Directory Access: 00100001
981 11:46:17 w3wp.exe:11228 DIRECTORY C:\WINDOWS\system32\ SUCCESS
FileBothDirectoryInformation: cmd"*
982 11:46:17 w3wp.exe:11228 DIRECTORY C:\WINDOWS\system32\ NO MORE
FILES FileBothDirectoryInformation
983 11:46:17 w3wp.exe:11228 CLOSE C:\WINDOWS\system32\ SUCCESS
984 11:46:17 w3wp.exe:11228 QUERY INFORMATION
C:\WINDOWS\system32\cmd.exe SUCCESS Attributes: A Tag: searchenginelist and entertainment Tag: 334789
How to use HTTP protocol to get documents ?
I need to send a request using HTTP Protocol and it will return to me some
replies, which can be an XML or HTML file. In ASP, how can I GET/POST
documents using the HTTP protocol ?
Thank you. Tag: searchenginelist and entertainment Tag: 334787
Use array to limit access
I am trying to limit access to certain pages on our intranet, and have been
using the following code to do so,
dim Login, L, LL, StringLen, NTUser
Set Login = Request.ServerVariables("LOGON_USER")
L=Len(Login)
LL=InStr(Login, "\")
StringLen=L-LL
NTUser = (Right(Login, StringLen))
If NTUser <> "DLaing" Then
If NTUser <> "DLowe" Then
If NTUser <> "DWoods" Then
Response.Redirect("http://swvtc06/swvtc/default.asp")
End If
End If
End If
The problem is that if I want to add more users to have access to the page,
then I have to add another IF and END IF line. I would like to implement
some way to do this using an array. For instance put the usernames into the
array and then if it matches then allow access, if not then redirect. I
know this is not a bulletproof way to do this, and there are more robust
methods, but this works very well for our user base and our needs. I am
having a really bad case of brain block, and cannot, for the life of me,
figure this out.
Thanks,
Drew Tag: searchenginelist and entertainment Tag: 334775
How to setup a HTTP Server in the PC
I actually used a tool called HFS(HTTP File Server 2.2a) which allows to
upload or download files but with this tool am able to retrieve the contents
of the page using GET method but not able to test the behavior of POST, PUT
and DELETE HTTP methods. I could not find anything from the help pages of
this utility i.e www.softpedia.com from where I downloaded it. I have also
used IIS but not sure about how to test these methods. Is there any other
tool with which I can test all these methods? Tag: searchenginelist and entertainment Tag: 334774
Connecting to Object that returns database connection
I'm having some issues with a dll I've created to return an ADOConnection
back to an ASP script.
I successfully open my object:
mytest = Server.CreateObject("mydll.database")
I then attempt to use the connection:
myConnection = mytest.getConnection
This is where the script breaks down with an "Object required" error.
I am able to access other methods in the dll, it just doesn't seem to be
returning the database connnection successfully.
Any help is greatly appreciated. Tag: searchenginelist and entertainment Tag: 334765
Exception when sending mail
Hello, my webhost is somehow sending a (nonstandard?) message, when a
mailbox is full the message doesn't even get sent and i get a small
window in any MUA telling me that the mailbox is full, instead of
letting the mail go through and then send back a message with the
error.
This behaviour is causing classic asp's mail send object to fail
without any details of the error.
Is there a way for me to avoid this error and continue processing the
asp page? I only know of the "on error resume next" method, but if i
do that, it will not catch the other possible errors and redirect to
my error 500 page. Tag: searchenginelist and entertainment Tag: 334764
PASSING A QUERYSTRING PARAMETER
I am new to ASP.NET 2.0 and I am developing a small application which
originally consists of 2 pages. The first page displays a GridView Control
loaded with data from a sqlDataSouce. Such a GridView has a field that is a
hyperlink to the second page which is supposed to display the detail of the
record. What I want to do is to send a QueryString Parameter to the second
page with the key to retrieve the record selected and show the information in
detail (a long description, a picture of a product, comments, price, etc.).
I have not written a single line of code (code-behind) for the first page.
How can I get the second page and send the querystring parameter? Tag: searchenginelist and entertainment Tag: 334760
GetRows() and hyperlinks
<%
' Loop through the array holding the result set and display the data
For iCounter= varC1Begin to varC1End
Response.Write("<a href=prices.asp?manuf=" & arrResultSet(0,iCounter) & ">"
& arrResultSet(0,iCounter) & "</a><br>")
Next
%>
In the above Response.Write statement arrResultSet(0,iCounter) displays the
manufacturer just like it should.
However, within the hyperlink, if a manufacturer has 2,3, or more words, it
will only show the first word. Anything after the first space is ignored.
Why?
thanks! Tag: searchenginelist and entertainment Tag: 334758
Regex replace
Dear Sir, I need to use regex to replace some string.
Below is what I use.
output = "sample data <href=""xlink:GG44-33"">, part two
<href=""xlink:GG55-123"">"
Dim regEx
Set regEx = New RegExp
regEx.Pattern = "href=\""(xlink:.*?)\"""
output = regEx.Replace(output,"href="&chr(34) &
GetDatabaseLink("$1")&chr(34))
Function GetDatabaseLink(Byval input)
'' query database based on "input" value and return value on database.
End Function
the value inside <href> tag needs to be replaced by real value from
database. Function GetDatabaseLink get the value from match string and send
it to database for query. What the database receive right now is the value
of "$1", instead of "xlink:GG44-33" and "xlink:GG55-123" in this case.
What did I do wrong?
Regards,
Guoqi Zheng Tag: searchenginelist and entertainment Tag: 334754
printing special characters to file
Hi,
I have some text in non English (e:g Arabic/Urdu/Hindi etc) language. When I
am using file system object to or normal file system to write that text to
file I get error, same code with english characters works fine.
Any idea how to solve this.
Regards Tag: searchenginelist and entertainment Tag: 334749
Trading Forex
WHO WE ARE?
We are a partnership based in India and USA. We have a collective FOREX
trading experience of 4 years.We decided to start this venture with the
intent of helping people in India and other countries take advantage of
immense potential profits from the FOREX markets. We act as Liasons
between our clients and our partner forex broker and ensure that our
clients receive adequate support inspite of being in different
countries.
WHY CHOOSE US?
* FREE!! No extras commission spreads.
* Get a friendly advocate in USA in case of broker assistance.
* FREE assistance on forex related queries [Educational /Trading
Decisions /Trading Sysems /Regulations].
* Live Trading Chat facility to discuss live calls.
WHY INTERBANKFX?
* We have had excellent experience with InterbankFx.
* Professional Charting.
* MetaTrader Support.
* Credit Card deposit facility available.
* Minimum required to open an account as little as USD 250.
* No Dealing desk.
* Full hedging and trailing stops.
* Efficient spreads [as low as 2 on euro, subject to market
volatility].
--------------------------
http://www.eecpindia.com
http://www.anchorfx.com
*** Sent via Developersdex http://www.developersdex.com *** Tag: searchenginelist and entertainment Tag: 334745
can this be solved using ASP?
Hi All,
Our company is merging two production domains(from two different servers)
onto one server. So during the migration we use an intranet testing server to
hold all files from these two domain, when we do testing, we use host file to
map intranet IPs to these two domains. It will not impact on production
sites since it won't be seen externally. These two domains navigable each
other, that means from domainA we have links to domainB, while from domainB,
we have links to domainA.
These domain names are all hard coded in the program.
Now it seems a big problem. When we move all these file to a new production
server which is at a public hosting company, we need to do testing, at this
moment,
old production servers are still running and we have to use IPs to do
testing, cannot map IPs to domain names at all. That means all hard-coded
links from domainA to domainB will not work, and I have to change all the
links from domain name to IP?
Then when we finally go live with our new production server, I have switch
back to
domain name, what a mess? I didn't think through all those steps when we did
it.
Anybody has better solution?
Thank you so much
--
Betty Tag: searchenginelist and entertainment Tag: 334744
ASP with XML isn't working :-(
Hi,
I am trying to read an RSS (generated from Y! pipes) in ASP. It isn't
working. any inputs will be highly appreciated.
I get an HTTP 500 error on IE on running it.
My code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
</head>
<body>
<%
Dim objXML
Dim objItemList
Dim objItem
Dim strHTML
On Error Resume Next
Set objXML = Server.CreateObject("MSXML2.FreeThreadedDOMDocument")
objXML.async = False
objXML.setProperty "ServerHTTPRequest", True
objXML.Load("http://pipes.yahoo.com/pipes/pipe.run?
_id=mpmmCsvz3BGjy6xQw5tC8g&_render=rss");
If objXML.parseError.errorCode <> 0 Then
Response.Write "<pre>" & vbCrLf
Response.Write "<strong>Error:</strong> " &
objXML.parseError.reason
Response.Write "<strong>Line:</strong> " &
objXML.parseError.line & vbCrLf
Response.Write "<strong>Text:</strong> " _
& Server.HTMLEncode(objXML.parseError.srcText) & vbCrLf
Response.Write "</pre>" & vbCrLf
End If
Set objItemList = objXML.getElementsByTagName("item")
Set objXML = Nothing
For Each objItem In objItemList
strHTML = strHTML & "<p>"
strHTML = strHTML & "<a href=""" & objItem.childNodes(1).text &
""">"
strHTML = strHTML & "<strong><em>" & objItem.childNodes(0).text
strHTML = strHTML & "</em></strong></a><br />" & vbCrLf
strHTML = strHTML & Replace(objItem.childNodes(2).text, "<br>",
"<br />") & vbCrLf
strHTML = strHTML & "<br><br><br><br>"
strHTML = strHTML & "</p>"
Next
Set objItemList = Nothing
Application.Lock
Application("MainContent") = strHTML
Application.UnLock
%>
<style type="text/css">
h3 {font-family: times;}
h4 {font-family: courier;}
p {font-family: times; }
</style>
<%= Application("MainContent") %>
</body>
</html> Tag: searchenginelist and entertainment Tag: 334740
Re: printing character ' and " in asp using vbscript
how to print apostrophe character ' and double quote " in asp using
vbscript. my code using response.write replaces " character with inverted
question mark.
please help Tag: searchenginelist and entertainment Tag: 334737
printing character ' and " in asp using vbscript
how to print apostrophe character ' and double quote " in asp using
vbscript.
my code using response.write replaces " character with inverted question
mark.
please help Tag: searchenginelist and entertainment Tag: 334735
some users cannot open asp page or see some images on the intranet
Hi all,
I have a very strange question. I myself cannot even make any sense from it.
We are migrating our site from one hosting company to another. In between we
have an intranet testing server so we can migrate to this testing server
before making final move.
The strange thing is a couple of internal users have some problems to open
some ASP page while others don't have problem at all. A user cannot see an
image file on a page while other users can see all the images. I am wondering
is there anything to do with access permission? I don't have any idea what's
going on since the pages just sit on the server without any changes when
users are testing.
These pages are public pages, no password protection at all, all users as
testers should have same set up. Do you think I have to check with our
network manager?
what questions I should ask? I don't have any idea.
--
Betty Tag: searchenginelist and entertainment Tag: 334733
pinging with WScript.Shell
Hello I'm using the following script to try and ping:
<% Response.Buffer = true %>
<%
url = "www.espn.com"
Set objWShell = CreateObject("WScript.Shell")
Set objCmd = objWShell.Exec("ping " & url)
strPResult = objCmd.StdOut.Readall()
set objCmd = nothing: Set objWShell = nothing
strStatus = "offline"
if InStr(strPResult,"TTL=")>0 then strStatus = "online"
response.write url & " is " & strStatus
response.write ".<br>" & replace(strPResult,vbCrLf,"<br>")
%>
I am getting the following error on the objWShell.Exec("ping " & url):
WshShell.Exec error '80070005'
Access is denied.
/test.asp, line 6
I can understand there being permssions errors if I was moving files around
in different directories but this is a straight ping. There shouldnt be any
permissions error by my thinking. Any help would be appreciated.
Thank You Tag: searchenginelist and entertainment Tag: 334726
Display recordset in columns
I would like to display a recordset using GetRows. The below works, but I
have to believe it's very crude. I googled for a solution and could only
find display that run horizontal. I want to display my results vertically. I
want to predetermine the use of 4 columns and divide the records evenly
across columns. Also, assuming 39 records, how would I get columns 1, 2, 3
to display 10 records and column 4 to display 9 records? Of course, the
number of records may change.
thanks
<%
' Retrieve the total # of rows
iRowNumber = ubound(arrResultSet,2)
%>
<%
varC1Begin = 0
varC1End = Round(iRowNumber/4)
varC2Begin = Round(varC1End) + 1
varC2End = Round(varC1End) * 2
varC3Begin = Round(varC2End) + 1
varC3End = Round(varC1End) * 3
varC4Begin = Round(varC3End) + 1
varC4End = Round(iRowNumber)
%>
<table width="0%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<%
' Loop through the array holding the result set and display the data
For iCounter= varC1Begin to varC1End
Response.Write(arrResultSet(0,iCounter) & "<br>")
Next
%><br>
</td>
<td>
<%
' Loop through the array holding the result set and display the data
For iCounter= varC2Begin to varC2End
Response.Write(arrResultSet(0,iCounter) & "<br>")
Next
%>
</td>
<td>
<%
' Loop through the array holding the result set and display the data
For iCounter= varC3Begin to varC3End
Response.Write(arrResultSet(0,iCounter) & "<br>")
Next
%>
</td>
<td>
<%
' Loop through the array holding the result set and display the data
For iCounter= varC4Begin to varC4End
Response.Write(arrResultSet(0,iCounter) & "<br>")
Next
%>
</td>
</tr>
</table> Tag: searchenginelist and entertainment Tag: 334725
GetRows
Trying to learn and use GetRows.
I'm using the example on: http://www.aspdev.org/articles/asp-getrows/
Without GetRows(), the below recordset will return 100+ manufacturer names.
With GetRows(), I get nothing.
What am I missing?
thanks
<%
Dim rsManuf
Dim rsManuf_numRows
Set rsManuf = Server.CreateObject("ADODB.Recordset")
rsManuf.ActiveConnection = ConnectString
rsManuf.Source = "{call stp_Manuf}"
rsManuf.CursorType = 0
rsManuf.CursorLocation = 2
rsManuf.LockType = 1
rsManuf.Open()
rsManuf_numRows = 0
If Not rsManuf.EOF Then
' Gets all the records
arrResultSet = rsManuf.GetRows()
End If
%>
<%
rsManuf.Close()
Set rsManuf = Nothing
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
<%
' Retrieve the total # of rows
iRowNumber = ubound(arrResultSet,2)
' Loop through the array holding the result set and display the data
For iCounter= 0 to iRowNumber
Response.Write(arrResultSet(1,iCounter) & "")
Next
%>
</body>
</html> Tag: searchenginelist and entertainment Tag: 334713