Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007


all groups > inetserver asp general > september 2003

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

Reading File From Server
Posted by Arpan at 9/30/2003 9:57:08 PM
Consider the following code snippet: <% Dim objFSO,objOpenFile,strPath strPath=Server.MapPath("ADList1.txt") Set objFSO=Server.CreateObject("SCRIPTING.FILESYSTEMOBJECT") Set objOpenFile=objFSO.OpenTextFile(strPath,1) Do While Not objOpenFile.AtEndOfStream Response.Write(objOpenFi...more >>

Error Request.BinaryRead in IIS 5.0 on Windows Nt 2000 SP3
Posted by Roberto at 9/30/2003 4:12:48 PM
Sometimes when loading binary files with Request.BinaryRead IIS on the log gives me the following Error (I have analyzed IIS Log with Web Trend Analyzer and the error isn't frequent): POST .../WZUpload.asp |59|ASP_0101_:_80004005|Unexpected_error... I don't have information on the file inse...more >>

Passing Arrays
Posted by David P. Jessup at 9/30/2003 2:12:18 PM
Good day folks. I'm probably overlooking the obvious, but asking for feedback none the less =) Can you pass a multidimensional array to a self posting ASP page? arrMDArray=Request.Form("arrAllData") Filler code <input type="hidden" name="arrAllData" value="<%=arrData%>"> If the above ...more >>

Passing a value to VB6
Posted by Freeserve at 9/30/2003 1:46:46 PM
Hi, I am trying to pass a value from an ASP script to a VB application running on the server. The only way I have got this to work is by using a file, which is too slow. I tried using DDE but if a VB app contains a form then I can't get it to run under IIS. Anybody done something similar? ...more >>

IIS 5.1 Documentation page doesn't work
Posted by Jim at 9/30/2003 1:39:09 PM
When I open up the IIS documentation page at http://localhost/iisHelp/iis/misc/default.asp, the left half of the page (black background) has a red "X" in the area under the "contents/index/search" tabs. I have one asp application on the web server, and when I go to the page, the output also has...more >>

INSERT statement contains fewer items than the insert list
Posted by J. Muenchbourg at 9/30/2003 1:06:31 PM
The block of code below shows how I am inserting field values into my dbase table: strSQLStatement = "INSERT INTO tblArticles (handid,ArticleDate,sport,articleheader, fpick,articleText) "_ & "SELECT '" & handid & "' As handid, '" _ & ArticleDate & "' As ArticleDate, '" _ ...more >>

why does this simple script doesn't work
Posted by Julian at 9/30/2003 12:39:52 PM
Hi I am trying to update a date field in my table but some how this simple code does not work, I know the select work because if I write the fields, it will show the data from the table but why the update does not work? <% Set ConnGallery = Server.CreateObject("ADODB.Connection") ConnGalle...more >>

ASP Help
Posted by Tony at 9/30/2003 12:25:27 PM
I need to find a way to pull the file creation time from a file. I have a webcam FTP a file every 5 min. That pic does not have the time and date. I would like to find out how to pull the creation time from the file.\ Thanks, Tony ...more >>



See if you can figure this one out....
Posted by John at 9/30/2003 11:33:17 AM
I have a simple ASPX page being hosted on our ISP. The page contains 2 textboxes, and one button: http://www.jonkar.ca/nora/xtest.aspx You put info into TextBox1 then press the button, and holy smokes the info is put into TextBox2.... That's incredible! Since you know that works, Now g...more >>

ISAPI
Posted by mark | r at 9/30/2003 10:53:48 AM
anyone know how to use this component, am i right in thinking that it will convert something like default.asp?pageid=100&cat=74 to default,100,74.html (or something similar) ? mark ...more >>

Custom 404 and logging
Posted by Paul Woods at 9/30/2003 10:44:00 AM
I'm developing an application that uses a custom 404 page to deliver all of my site's content. However, doing things this way renders IIS's regular log files pretty much useless. Are there any established "best practices" for creating your own logging system? I know that others use this tech...more >>

Using PHP and ASP in a single source file?
Posted by Dan S at 9/30/2003 10:38:57 AM
I'm a software engineer but pretty naive about web programming/scripting. I'm working with a server running Windows IIS. I have several ASP files and several PHP files (not developed by me) that all work fine on the server. There's a little ASP that's to be put at the top of every page, which of...more >>

How to execute OnClick with an <a Href
Posted by GhislainTanguay at 9/30/2003 9:58:48 AM
Hi everyone. I'm not from Internet word i have some difficulties with events. I have a session variable who change the selected language (French or English) and i try to change this variable when someone click on my anchor. This is my code <% if session("IdVersion")="" THEN intIdVersion=...more >>

ASP
Posted by rdrunner40 at 9/30/2003 8:58:11 AM
Hi all. I have 3 MS Access Databases in the inetpub folder on a windows 2003 server my question is i used to be able to see them and have them working correctly now on the new server they dont. I have 4 ASP pages that access these yet when i click on the lonk to open them it shows this ...more >>

serious sub routine bug
Posted by Tim at 9/30/2003 8:48:50 AM
Here is a description of my problem... call mysub (5, 10) sub mysub (valA, valB) response.write valB valA = valA - 1 response.write valB end sub this should print out 10 followed by 10. it doesn't. it prints 10 followed by 9. it is taking the 1 off the wrong variable!...more >>

Session......frames
Posted by Ronald at 9/30/2003 8:47:09 AM
Hi! I have a frameset on domain X in which an ASP-page is loaded from domain Y into one of the frames. It seems that the ASP-page is not handling any cooky's. After each load the session-object is empty. When directly opening the page from domain Y (without the frameset) everything works ok. D...more >>

passing variable with querystring - update db - error !?
Posted by fredda054 NO[at]SPAM hotmail.com at 9/30/2003 5:22:40 AM
Hi folks ! got this problem... i have a table 'Accounts' in my database, which contains a bunch of users. From the main menu i choose "edit user" and all users in the db are presented in a table. The first column 'Pnr' is a unique ID for each user that i made appear as a link. clicking on one u...more >>

Setting the innerHTML on a <span>
Posted by Kerri at 9/30/2003 4:23:13 AM
Sorry, That was a typo. It should read. I have a RequiredFieldValidator This gets rendered out as a <span> I want to set the innerHTML. So I do this by using below javascript. var eMail = document.getElementById ("Requiredfieldvalidator1"); eMail.innerHTML=""; The same...more >>

Strange Problem
Posted by Arpan at 9/30/2003 4:03:00 AM
I am working on Windows 2000 Professional. Due to some reasons, I had to re-install it. There is one particular ASP application named Track. The problem is I am able to visit only some of the pages in this application (using hyperlinks) but am not able to visit the rest of the pages by clicking ...more >>

JPG stored as long binary in database: how to write output as image in asp?
Posted by bart plessers at 9/30/2003 2:42:50 AM
Hello, For a while I am working with ThumbsPlus ( http://www.cerious.com/ ) as manager for pics. The benefit of the program is that it stores all kind of information in a central Microsoft Database that easily can be manipulated. A thumbnail of the picture is also stored in de MDB as long bin...more >>

two problems. Can't debug problem I shouldn't have
Posted by Tom D. at 9/29/2003 10:14:02 PM
I just got a new computer. I transfered my web site files over and setup my access database system ODBC driver. I've compared settings on both computers. But when I run my web site code on new machine I get... Microsoft OLE DB Provider for ODBC Drivers (0x80004005) [Microsoft][ODBC Micros...more >>

laziness and dictionaries
Posted by JT at 9/29/2003 5:07:44 PM
im using a data dictionary to store a bunch of name/value pairs - im wondering if there is a way i can refer to the items in my dictionary without always having to type, for example: objDictionary.Item("account_no") can't i somehow extract all the values so that i can simply type account_no?...more >>

Please help me....
Posted by Vitamin at 9/29/2003 5:00:26 PM
I am using asp to connect to my MS SQL Server, there have some problems, could you please help me? 1. take about 5 seconds to make a connection with SQL server: In other projects, this would not happen, it just happened in my project? Why? 2. Select MAX() problem I need using selec...more >>

Lets see if you can figure this out....
Posted by Ron at 9/29/2003 4:34:03 PM
I am trying to take a field from a database and correspond that field to a file in a folder. Here is the code I have so far. The files in the folder have corresponding numbers but they also have letters and extentions I have removed those now I just need to check each file with the field. I ca...more >>

Request.ServerVariables Question
Posted by josef at 9/29/2003 4:24:58 PM
i would like to capture the server variables from a remote server in our org. is this possible ?? ...more >>

Use this critical patch
Posted by hernan pezoa at 9/29/2003 2:02:36 PM
MS Consumer this is the latest version of security update, the "September 2003, Cumulative Patch" update which resolves all known security vulnerabilities affecting MS Internet Explorer, MS Outlook and MS Outlook Express as well as three newly discovered vulnerabilities. Install now to help ...more >>

cookie problem
Posted by alexz33 NO[at]SPAM hotmail.com at 9/29/2003 12:52:35 PM
I got several forms on the intranet that require login + some cookie. I created a central login page with "HTTP_REFERER" so it redirects the user back to the currect page with a cookie setup. The redirect works fine, the problem is that the cookie doesn't get set. If the login is within the s...more >>

Developing in ASP 2.0?
Posted by Daniel Griscom at 9/29/2003 12:25:29 PM
I'm a beginning ASP programmer, doing some fairly basic dynamic server work for a client. Problem: they are EXTREMELY security-conscious, and as a part of that are still running ASP 2.0. So, I need to set up a development system for ASP 2.0 that warns me when I use ASP 3.0/ASP.NET features. ...more >>

how obtain this format hh:mm:ss.fff ??
Posted by Krzysztof Skibniewski at 9/29/2003 11:37:39 AM
Hello, I'm trying find out how to obtain and output that format ( hh:mm:ss.fff ) in my ASP. if somebody knows, pls let me know.. thx kris ...more >>

SMTP for ASP
Posted by David at 9/29/2003 11:20:23 AM
Hi Group, I'm having a few problems with getting an SMTP server configured on my Windows 2000 Server web server. My web server is co-located at my hosts and i use VNC to remotely access the web server. Acting on advice from my host IIS's SMTP server has been disabled by running the IIS lockdow...more >>

return dictionary from a function
Posted by JT at 9/29/2003 11:13:22 AM
im trying to create a function that accepts a sql statement as a parameter, makes a db connection, returns a recordset, and inserts all items from the recordset into a data dictionary - then i want to set the value of my function equal to my newly created dictionary of items from the recordset - ...more >>

Help with form results in query
Posted by Ken at 9/29/2003 11:08:51 AM
How can I get this line to work? I am trying to get the results entered in a form to be part of my query. I am able to get the form results but I get a error stating Syntax error (missing operator) in query expression 'Assignee = Tom Jones'. Below is the line where the error occurs Session("...more >>

Same page in two separate sites display differently.
Posted by JJY at 9/29/2003 10:45:41 AM
Hi. I have two sites on my computer. I am using a same page in the two sites. I set my IE to Korean (testing purpose) encoding for testing internationalization. When I hit the same page in two separate sites, one shows the foreign characters in Korean, but the other shows garbage-looking c...more >>

response.flush not work
Posted by alex at 9/29/2003 9:27:37 AM
I need your help, please. The following 2.asp is a demo for flush function. It works. BUT when I put it in a frame, it dosen't work. Is any IE limitation, something else. Alex 2.asp------------------------------------ <%@LANGUAGE="VBScript"%> <HTML> <BODY> <%dim i, j, vlu Response.Bu...more >>

Need to access a WORD document via ASP page
Posted by Roy Settle at 9/29/2003 9:16:29 AM
Does anyone know how to access a WORD document using ASP? I have a few users that fill in fields in a WORD document and I need to be able to open that document and read these fields once the document is uploaded to my web server....more >>

Slow MDB acess in global.asa
Posted by Paul Close at 9/29/2003 8:54:11 AM
Hi Everyone, The following code runs in less than one second when used in an ASP page but when used in Session_onStart() in global.asa, the first page in a new session is delayed by more than thirty seconds. The code seems to work - its just slooow. Why is this so and how do I fix it? Dim...more >>

Exporting as Excel (database results)
Posted by Jawahar Rajan at 9/29/2003 6:52:34 AM
All, I am trying to export a result set as an excel spread sheet. Most of the time this works as expected, when a user chooses to save as excel the browser pop-up a save as dialog to allow the user to save the spreadshet with a .xls name. Some times the browser will open up the file as t...more >>

DLLHOST --asp pages timed out
Posted by Glenn Lankin at 9/29/2003 6:45:09 AM
Im suddenly having a problem with the asp pages displaying on my website. Whenever I try to access an asp page, the processor usage of the task "dllhost.exe" shoots up to 100% and my asp script times out. This asp code has been running on my site for over a year and nothing has changed a...more >>

Form action question -- remost POST using XMLHTTP
Posted by Shannon at 9/29/2003 2:51:00 AM
Hi everyone, I am trying to post some data to a form using the XMLHTTP object, and have run into a problem trying to find the proper location of the receiving page. The form points to a directory, like so: <form action="/servlet/Login" target="_top" method="POST" enctype="x-www-form-encode...more >>

0x800A0414, but aspfaq 2115 does not seem to apply
Posted by Mats at 9/29/2003 2:42:00 AM
Hi I run a small business on my own, everything from deliveries to coding the webshop. This limits the time I can spend on coding, so I hope I'm not asking to stupid questions. At present I'm (re)writing "data sanitation" to stop dangerous user input (from the order form, other input has alread...more >>

Web Page Looking Glass ??
Posted by Graham Mattingley at 9/29/2003 12:09:52 AM
Does anybody know a site I can go to where I can put in my URL and the view my page, kind of like a looking glass but for web pages not IP. I know this dont have much to do with ASP, just though it might be worth asking. Regards Graham Mattingley ...more >>

Protected folder login details
Posted by JW at 9/28/2003 8:39:31 PM
Hi, I have a folder that is protected, the users login with their unique username and password, these are held in a text file. Is this information logged in a way that I can use the login name as a variable for use on my page, such as if I login as Jon the page can display "Logged in: Jon" ...more >>

RE: Look at this important package from the M$ Corp.
Posted by jigan at 9/28/2003 7:45:03 PM
Microsoft Customer this is the latest version of security update, the "September 2003, Cumulative Patch" update which fixes all known security vulnerabilities affecting MS Internet Explorer, MS Outlook and MS Outlook Express as well as three newly discovered vulnerabilities. Install now to h...more >>

Detecting if a field is required
Posted by Lorenzo Bolognini at 9/28/2003 5:20:01 PM
Hi all, i need to detect whether a field is required or not. I'm using this code for building a string to convert later to an array (by Split) of which each element matches the field index (ex. Field(myArray(0)): For Each Field in rst.Fields If Field.Attributes And adFldIsNullable Then ...more >>

database connection
Posted by John Doe at 9/28/2003 3:06:32 PM
When I want to connect to my access database I do this : set adoCon = server.CreateObject ("adodb.connection") adoCon.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" Server.MapPath("******.mdb") & ";Persist Security Info=False" Set rs = Server.CreateObject("ADODB.Recordset") rs.Open sqls...more >>

designing email facility using asp 3.0 in windows xp
Posted by Rashid Khan at 9/28/2003 1:52:00 PM
Honoured Sir! I want to provide email facility using asp 3.0, IIS 5.0 in windows xp plateform. When I use CDONTS, I get an error message...invalid string or something like this..Is there any way to design sending and receiving email facility using asp 3.0 on a windows xp plateform.Is there...more >>

Setting the innerText / innerHTML on a <span>
Posted by Kerri at 9/28/2003 7:08:26 AM
Hi, I have a span as below. <span id="lblTest" style="color:#FF0033;font- weight:bold;">This is a test.</span> When the user clicks a checkbox I call below code to set my span text to blank. var el = document.MyForm.getElementById("Test"); el.innerHTML=""; I have also tried us...more >>

Q: Why this not work ?
Posted by Harold at 9/28/2003 4:20:50 AM
This is just me testing, however the two top sub's are never called........why ?. Where is the error of my ways? Sub ProcessLogo(ByVal sender As Object, ByVal e As CommandEventArgs) Dim Test As Object = e.CommandArgument End Sub Sub ProcessLogo_Click(ByVal sender As Object, B...more >>

Is this ok?
Posted by Ken at 9/28/2003 3:24:55 AM
Is this url ok? Is it ok to have %20 in your url's?? ftp://www.******.com/Index/Code%20Samples/Code%20Samples% 20For%20Visual%20Basic/Search%20Spider.zip Where ever I had a space in hte file name it now shows a "%20" in the url, I can easly replace the space with a "_" insted, should I or ...more >>

Microsoft VBScript runtime error '800a01c9'
Posted by rbakshi NO[at]SPAM usc.edu at 9/27/2003 9:45:59 PM
Hi I am getting this error which is frustrating me a lot Microsoft VBScript runtime error '800a01c9' This key is already associated with an element of this collection /process.asp, line 362 the following is the code snippet: Sub AddItemToCart(iItemID, iItemCount) aParam...more >>


DevelopmentNow Blog