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 > june 2005

Filter by week: 1 2 3 4 5

checking for nothing entered in an asp form post
Posted by wk6pack at 6/30/2005 4:00:38 PM
Hi, How do you check for a empty value from a form? lservice = request.form("pservice") if not isnull(lservice) then <== this doesnt work. tried "" empty string and it still didnt work. ...... I'm having problems with the fact the user didnt enter anything. The field is optional. ...more >>

Detect image size automatically in asp?
Posted by Guojun Zhu at 6/30/2005 12:54:18 PM
I am writing a little script for an online album. The pictures' size varies a lot. I have a maxim size for every displayed picture because the layout of the page. So I want to resize the larger one to that size while leave the smaller one in their original size. Is there any script or code th...more >>

Word.Application Dictionary?
Posted by James at 6/30/2005 12:53:52 PM
I'm using Server.CreateObject(Word.Application) to execute a spell check. Works fine, but we'd like to add a few of our more common company-isms to the dictionary, as they're getting flagged every time. I tried opening Word on the Server and adding one to the dictionary. I also tried it locally...more >>

JScript runtime error '800a138f' 'undefined' is null or not an obj
Posted by NO[at]SPAM at 6/30/2005 12:25:03 PM
I am running some off-the-shelf software that is written in ASP, which uses JScript to generate dynamic content within HTML forms. There are several ASP pages which are partially rendering to IE, but stop midway through with an error embeded in the page: "Microsoft JScript runtime error '800a...more >>

using meta tag and values posting page
Posted by wk6pack at 6/30/2005 11:33:24 AM
Hi, I'm trying to redirect the page while trying to pass some values to the next asp page. I'm not getting any values when I do this. Is this possible? I'm using the code below to redirect <META HTTP-EQUIV="Refresh" CONTENT="5; URL=supportservicelist.asp"> but when I look at the value...more >>

Losing Session?
Posted by James at 6/30/2005 11:00:26 AM
Session("UserName") is set when someone logs in. Get to a page that displays a record where you can type a comment. The form has an onSubmit event that calls a javascript function. That function sets a javascript variable called beenChecked = true and then calls a PopUp window to spell check ...more >>

Capture text messaging
Posted by JasonH at 6/30/2005 10:38:09 AM
Hi all, I have a client that wants to allow users to signup for a contest using text messaging. I have no idea where to start with this, so hoping someone here has some experience with this. Any info / suggestions / starting points would be very much appreciated. ...more >>

How to address one item in a collection object
Posted by Guojun Zhu at 6/30/2005 9:54:08 AM
I am using VBscript in ASP. I am trying to address one file in a folder object. Below is the relevant code Set MyDirectory=Server.CreateObject("Scripting.FileSystemObject") ' MyFolders is contents of folder containing photos.asp Set MyFolders=MyDirectory.GetFolder(Server.MapPath("./")) ...more >>



Determine Header Size
Posted by Tom B at 6/30/2005 12:00:00 AM
hello all, Our central site has set up a VPN for us so we can access our network from home. Unfortunately, our Intranet won't come up. We've been told it is because the Intrusion Prevention System on the firewall is blocking it because the headers are too large. How can I determine h...more >>

CDO.message and UTF8
Posted by Chaotical Impulse at 6/30/2005 12:00:00 AM
Help! Trying to send mail with ASp and CDO, but my local (croatian) characters are completely left out from the message! It's not like some strange chars are shown, but nothing. like they are ignored. The ASP page has <%@language="vbscript" codepage="65001"%>. What parameters of the CDO...more >>

Redirecting users to different site
Posted by Dave at 6/29/2005 9:36:28 PM
I am moving a web to a new address. The old address will be shut down in several weeks. Is there a way to automatically redirect users who come to the old site in these last few weeks to the appropriate page on the new site? ...more >>

error '80040e07' wrong syntax in Date expression
Posted by Aloof at 6/29/2005 7:00:47 PM
Using Access 2000 Windows Server 2003 The following code worked fine until we moved hosting companies StartDate = Request.Form("StartDateMonth") & "/" & Request.Form ("StartDateDay") & "/" & Request.Form("StartDateYear") EndDate = Request.Form("EndDateMonth") & "/" & Request.Form ("EndDate...more >>

Code Doesn't Listen...Avoids Sub & Inserts Data Twice???
Posted by SABmore at 6/29/2005 11:29:10 AM
I have the following code that populates 3 independent drop-down boxes with data from arrays. From there the user can select a value from a drop-down list, or input data into a text box. The user then submits this to be inserted into the database. Currently I've only programmed to have the ...more >>

how handle QueryString object
Posted by Ing. Branislav Gerzo at 6/29/2005 8:58:48 AM
Hello all, user have in browser address bar this URL: http://localhost/store/CDfilter.asp?catid=3&lngid=3&osid=7&ordertype=desc&orderby=release_date&PerPage=50&PageNum=2 I have on page filter form, and also users should change the order. In this case it is ordered by release_date desc, but h...more >>

Search two databases with ASP?
Posted by Willem at 6/28/2005 9:06:35 PM
Hi, I have a newbie question: is it possible to make a search form in asp that searches in two different databases (access)? Willem ...more >>

CDO Email Help
Posted by Andrew at 6/28/2005 8:20:02 PM
I have a windows 2000 sv, with exchange 2000 running with IIS as well. I am tring to send an email with an attachment with CDO. Set cdoConfig = CreateObject("CDO.Configuration") with cdoConfig.Fields .Item(sch & "sendusing") = 2 ' cdoSendUsingPort .Item(sch & "smt...more >>

SAX and ASP tutorials
Posted by PedroX at 6/28/2005 2:42:28 PM
Can someone point me to any tutorials on how to use SAX 2+ with ASP to parse XML ? Thanks in advance. ...more >>

date and time
Posted by abcd at 6/28/2005 1:56:24 PM
How can I get date and time on the server. I want to log the date and time on the server when the ASP page is accessed. thanks ...more >>

Do I need IIS?
Posted by James at 6/28/2005 12:06:24 PM
If I want to just run basic ASP scripts and set up virtual directories on a new machine, do I need IIS or is there some other utility I can use to make this possible? XP Pro...(sans IIS) Thanks ...more >>

Out Of Memory - What Memory?
Posted by MSUTech at 6/28/2005 7:39:09 AM
Hello All, I am getting an ASP error.. that tells the server it is OUT OF MEMORY.. then the server displays a message about the DLLHOST.exe and it waits for an "OK" from me... after hitting OK... it goes back to working fine.... BUT, while the notification is up on the screen... the websi...more >>

Im experiencing strange xml transform problems
Posted by frustratedcoder at 6/28/2005 6:33:09 AM
When I call the transformnode on my xml object like this: response.write xmlobj.transformnode(xsl) I get the actual xsl sent to the browser. Here is my code: <%@LANGUAGE="VBSCRIPT"%> <% Dim xmlhttp, xsldoc, xmldoc set xmlhttp = Server.CreateObject("Microsoft.XMLHTTP") xmlhttp.ope...more >>

Folder Permissions
Posted by JA at 6/27/2005 10:23:17 PM
Hi, Does anyone know of an asp script, online somewhere, that I can use to find out the permissions of a folder? My ISP says these folders have full permissions, but my programs say "permission denied". I don't know if it is the programming, or if the folder don't really have the right perm...more >>

Replace HTML
Posted by John Smith at 6/27/2005 8:44:54 PM
Hi, I'm building a search engine for a site that uses HTML in the content management. I wanted to return search results but also filter out any HTML code that might interfere with the search results formatting. Is there an easy way of doing this or am I left with the option of using replace...more >>

File System Object question
Posted by PedroX at 6/27/2005 2:59:19 PM
I have about 200 documents to which I need to write a header and a footer. Appending (the footer) is easy, but I cannot figure out how to write to the very beginning of the file. Any help would be appreciated ...more >>

Req: ASP and AJAX resources
Posted by mark | r at 6/27/2005 12:51:32 PM
anyone know of some good ajax resources working with ASP as most of the stuff on the net is PHP thanks mark ...more >>

Print envelope
Posted by David C at 6/27/2005 12:42:16 PM
We have a classic ASP intranet web site that has been around for a while. Our customer wants to be able to print an envelope from the contact name and address table. We have other reports that we display and print from the HTML generated by our ASP code, but have not been able to find any way...more >>

return recordset of images in specific cells in a table
Posted by David Shorthouse at 6/27/2005 11:58:25 AM
Hello folks, I have an interesting problem and am looking for some advice. I am hoping to build an asp whereby records are pulled from SQL Server. These records will be merely file locations for thumbnail images I hope to display in a grid. Rather than having a grid be constructed row-t...more >>

OleDbCommand Selecting Variable Data
Posted by Jason Steeves at 6/27/2005 11:51:02 AM
-Dim cmd As OleDbCommand -cmd = New OleDbCommand("select * from qmsstats where firstname='jason'", OleDbConnection1) -OleDbDataAdapter2.SelectCommand = cmd -DataGrid1.Visible = True -OleDbDataAdapter2.Fill(DsQmsStats1) -DataGrid1.DataBind() In the above example I need to change 'jason' to ...more >>

ASP Tear functionality
Posted by Chris Kennedy at 6/27/2005 11:04:32 AM
Could anyone point me to some code/pointers that would pull down the HTML of a page as a string, a little like ASPTear? ...more >>

How to find errors in code?
Posted by Scott at 6/27/2005 10:12:49 AM
I'm coding in classic asp and can't figure how to get IE6 to display some kind of descriptive message about code errors? I have the correct settings under ADVANCED in IE's options selected. What bugs me is sometimes IE will report the line number and a message, and then other times it's the...more >>

'access denied' calling remote DCOM NT service from ASP
Posted by Sergey V at 6/27/2005 12:00:00 AM
Having following problem 1. Client: ASP application with anonymous access to be running as DOMAIN\my_user on WinXP 2. Server: DCOM NT Service runs on remote host (W2K Server) under the same account DOMAIN\my_user security within server is initialized using hr = CoInitializeSecurity...more >>

Choose a Folder with ASP.Net
Posted by Peter Wallington at 6/27/2005 12:00:00 AM
Hi All, I want to allow a user to select a windows folder for reading. I have tried to work it out without success. Can anyone help me out or point me in the right direction. I am an experienced VB6 programmer but this is my first ASP.Net project. TIA, Peter Wallington. PS: I would...more >>

Submitting a form
Posted by Griff at 6/27/2005 12:00:00 AM
I've inherited an ASP application that currently builds up a URL with a series of keys and values (http://url?key=value&key=value&key=value). Having built this up programmatically, it then does a Response.Redirect command. The problem I have is that I need to add a new key and value to thi...more >>

xmlhttpRequest caching problem
Posted by jmt at 6/26/2005 7:06:03 PM
Hi, We are having a problem with a xmlhttpRequest request returning a cached version of the request - the code we are using is inserted below. Has anyone else had this problem before - or have any ideas on what we may be doing incorrectly. Thanks JMT ---------------------------- ...more >>

Append XML using ASP
Posted by thomas at 6/26/2005 12:00:00 AM
This should be pretty simple for you guys. I've been trying to append values to my XML file but I can't get it to work correctly. index.html passes the values of a form to the new_user.asp file and I want it to write my members.xml file. Once the xml file has been written and saved, I coded ...more >>

System DSN Faster Than File DSN!
Posted by Arpan at 6/25/2005 11:29:41 PM
Microsoft, in one of its "Help & Support" pages on ADO, says that a System DSN is three times faster than a File DSN. I find that a bit odd for the simple reason that won't it be faster for a script to access a file to get info about the database source than access the same info from the registr...more >>

Parameters to Command Object!
Posted by Arpan at 6/25/2005 11:01:17 PM
Microsoft advises not to pass parameters to the Command object in the Execute statement. Why? Thanks, Arpan ...more >>

Assigning a default value to a function-variable
Posted by 0rsted at 6/25/2005 7:16:01 AM
Well, it's quite simple, it's easily done in C, but in ASP (and VB in general) i haven't been able to see it done... function setvalues(var1, var2="a", var3="b") if var2="a" then response.write("Var2 wasn't defined") end if if var3="b" then response.write("Var3 wasn't defined") end if en...more >>

Need to access ASP from a middle-tier
Posted by Mr. Smart at 6/24/2005 9:32:03 PM
I have a middle-tier written using Foxpro. I'd like this tier to coommunicate (that is pass some variables to ASP). I defined a Session variable somewhere in my ASP file, e.g. Session("Usercode") = Somevalue. Now somewhere else, I want to change this value. I tried this: UserSession = CREATEO...more >>

Displaying Word Documents
Posted by Jason Steeves at 6/24/2005 4:05:02 PM
Can someone please point me in the right direction for displaying word documents onto a webpage? The word documents will contain text/tables/pictures. I am new to this and can't quite find what I need. Thanks,...more >>

how can I get the url?
Posted by middletree at 6/24/2005 3:39:18 PM
How can I grab the URL and place it into an ASP/VBscript variable? I'm having a hard finding it in the documentation. Probably don't know the proper term to use. But if I am brought to a page, and it happens to to have an address of (this is for an Intranet app): http://intranet/displaydata...more >>

Outlook Template
Posted by BJMcLaug at 6/24/2005 9:58:29 AM
Is it possible to open a Outlook template from my webpage? The template is located on the web server. ...more >>

Displaying latest file in a directory
Posted by maxhauser NO[at]SPAM mailcity.com at 6/24/2005 9:56:56 AM
I have quick little page that I need to create but its sounds like the concept is not so quick. I have a folder with eight or ten files that can be displayed in a browser. I need to display the file with the latest creation date. I imagine there is some kind of ASP function that could like at ...more >>

How can i list ALL open connections
Posted by mark | r at 6/24/2005 9:54:45 AM
is there any ASP script that will display a list of all open connections on a shared host im trying to determine if my previous problem with "system resource exceeded" can be resolved by brute force? Mark www.iosilver.co.uk ...more >>

How can i use ASP to show the TOP 5 Record in the database ?
Posted by craymel at 6/24/2005 9:39:19 AM
Hi , can i know how can i make that the page show only TOP 5 record in the database ? -- craymel ------------------------------------------------------------------------ Posted via http://www.codecomments.com ------------------------------------------------------------------------ ...more >>

ADO recordset paging
Posted by Ing. Branislav Gerzo at 6/24/2005 8:59:37 AM
Hi all, I was at http://aspfaq.com/show.asp?id=2120, read all techniques. I choose the fasted one - it is the last "SP ROW COUNT". SP looks like: CREATE PROCEDURE SampleCDs_Paging_Rowcount @pagenum INT = 1, @perpage INT = 50 AS The problem is, I want dynamically change SQL sele...more >>

Output in the wrong place
Posted by hcastanho NO[at]SPAM gmail.com at 6/24/2005 8:45:18 AM
Hi all I'm looping thru an ASP FOR Cycle that populates a table, but when I output it, the code appears before the HTM tag instead after the body (very weird to me). I'm using <script language="vbscript" runat="server"> tag to enclose the ASP Code. Does it have anything to do? Here's a cod...more >>

Return recordset from a class.
Posted by terje at 6/24/2005 12:00:00 AM
I have this code: Class MyClass Private Sub Class_Initialize() If IsEmpty(MyRecordset) Then Set MyRecordset = Server.CreateObject("ADODB.Recordset") End Sub Public Function Foo Set Foo = MyRecordset End Function End Class And I call this class with code like this, usin...more >>

What can cause the value in Application variable to disappear?
Posted by evangeline at 6/23/2005 6:31:01 PM
We have ASP application running on IIS 5.1 and Windows 2000 server. The ASP application has few Application variables setup in global.asa. Something like this: Application.Lock() Application("fun")="play" Application.UnLock() There is no other code in the ASP application to change the valu...more >>

For Loop Through Recordset
Posted by !TG at 6/23/2005 4:00:36 PM
I currently use Do while loop, but I'd rather use a For Loop though I have never gotten the hang of them. Would some one please be so kind as to show me how to loop through a recordset....more >>


DevelopmentNow Blog