Groups | Blog | Home


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 > january 2007

Filter by week: 1 2 3 4 5

Issue with Private Functions
Posted by Victor at 1/31/2007 6:14:14 PM
I just tried a test comparing a Function to a Private Function with this code: <% Option Explicit dim X1 X1 = 9 Private Function RealTest(here) RealTest = here + X1 End Function Response.Write "The answer is " & RealTest(10) %> I get "The answer is 19". If the function is define...more >>


include external file
Posted by Giorgio at 1/31/2007 2:34:17 PM
hi, how can i include a webpage from another server with ASP? (Without frames) i tried XMLHTTP, but i loose the stylesheet, images src and relative links of the included page. See http://www.punticardinali.it/1winhttp.asp ("222" is a text in the calling page, other staff is included) Ty ...more >>

security issue about expose file directory
Posted by c676228 at 1/31/2007 11:26:02 AM
Hi all, If in an ASP program, I need to display a pdf file link for users to print and read. Is there any security issue? We are thinking about doing this is many mail servers block emails with pdf file attachment. We just try to give an opportunity to users to print the document themselves...more >>

Classic ASP and IIS 6.0
Posted by anon at 1/31/2007 8:03:00 AM
The following code works on IIS 5.0 on a Windows 2000 server. Response.Clear Response.ContentType = "application/rtf" Response.AddHeader "content-disposition", "inline;filename=letter.rtf" response.write l_strBuffer But on IIS 6.0 running on Windows 2003 server we get an error. "Internet Ex...more >>

comparing values of field and inserting data based on comparision to third filed
Posted by Tradeorganizer at 1/30/2007 8:42:48 PM
Hi, I have a database with table name as test in that i have 6 colums they are name varchar (20) address varchar (20) position varchar (20) nametype1 varchar (20) nametype2 varchar (20) nametype3 varchar(20) nametype4 varchar(20) nameval varchar(20) nameval1 varchar(20) nameval2 va...more >>

Adding Different Fields
Posted by Mangler at 1/30/2007 8:39:26 AM
Say I have to different recordsets that have the fields: rsA.Fields.Item("A").Value ,rsB.Fields.Item("B").Value How would I add those to fields? It may be my inexperience but when I tried something like rsA.Fields.Item("A").Value + rsB.Fields.Item("B").Value didnt work because one o...more >>

how to compare value of two fileds and based on that insert value into third fileds
Posted by Tradeorganizer at 1/30/2007 1:29:05 AM
Hi, I have a database with table name as test in that i have 6 colums they are name varchar (20) address varchar (20) position varchar (20) nametype1 varchar (20) nametype2 varchar (20) nameval varchar(20) now in the nametype1 and nametype2 there are values like nametype1 ...more >>

Blank page running ASP page on Windows Vista
Posted by JL at 1/29/2007 8:09:38 PM
Hello, I've a strange problem with Windows Vista, running an ASP page on local machine (http://localhost/test.asp), the page does not give me any error but the asp code is not executed (simple code : <% response.write("hello") %> ), it show me a blank page, I think I've put all the settting...more >>



Date format for ASP and SQL String Doesn't Produce Results
Posted by Billy at 1/29/2007 5:05:22 PM
This string is supposed to provide all records from an MDB database that match the courier and date specified in the query. I Response.Write the query and I get a date as 1/27/2007. The date format style is exactly the field specification as I see in the MDB Date field in the Courier table. ...more >>

Classic ASP
Posted by Arne at 1/29/2007 9:19:00 AM
How do I turn on Classic Asp on Windows XP? I get the error message This type of page is not served. Description: The type of page you have requested is not served because it has been explicitly forbidden. The extension '.asp' may be incorrect. Please review the URL below and make sure th...more >>

Page Cannot Be displayed
Posted by JimO at 1/28/2007 8:29:40 PM
I'm using classic ASP. I made a change to a page and I got a Page Cannot Be Displayed error. I changed the code back and now I get the same thing. Other pages can run and access the db server. I tried taking out includes and bypassing some code. I've also checked both the Application and Eve...more >>

downloaded file shows action cancelled
Posted by Kollmorgen at 1/28/2007 7:34:00 PM
I have an asp page that outputs a word document. Wnen the user attempts to open this page from a hyberlink in an email document the word document opens fine but if they save then an action cancelled message appears in a browser window. If you cut and paste this same link into IE and attempt to...more >>

Can Not Display Underscore Character
Posted by scott at 1/28/2007 6:09:29 PM
Is there a way to make the underscore Character display in a browser? I've tried several different fonts but the "_" character will not display. ...more >>

SMTPsvg.Mailer error
Posted by Mike H at 1/27/2007 12:13:00 PM
I'm using a block of ASP to allow a user to send a form via e-mail. However, someone keeps sending me spam through this form and they're using a bogus return address. I'm testing for a successful send, which should fail if the return address is not valid, but I'm still getting the junk. Th...more >>

Doubt ASP.net vs classic ASP
Posted by Paulo at 1/27/2007 11:36:05 AM
Hi... I have tryed my best to understand the asp.net, but the visual of asp.net pages are the most complicated, because on asp we have total control over the layout the page, on the asp.net for example we have a lot of components, like tables wich already have paging, etc.. a lot of code must ...more >>

Selecting Random Records
Posted by John Fairhurst at 1/27/2007 9:51:48 AM
Hi, The following code should select the specified number of records randomly from the database <% .... query = "SELECT [Titles.Index] FROM [Titles]" Set RS = Server.CreateObject("ADODB.Recordset") ' Response.Write query RS.Open query, objConn, 1, 2, 1 Randomize Timer '...more >>

multi-language user interface for an asp page
Posted by c676228 at 1/26/2007 5:16:03 PM
Hi all, I have a good question for you. Our company would like to display Chinese(either simplifiled or traditional version) for all field labels on any asp page, but customers can enter text/data in English with any fields. My question is: do I have to make another copy of the program and ju...more >>

letter be is inserted into numbers as digit group separator
Posted by aa at 1/26/2007 4:57:12 PM
when I ourput data from Access, numbers bigger than 999 are shown with letter "B" inserted into the 4th position left to the coma. (in my w2k regional settings I have the decimal dot separator set to "." and digit group separater set to nothing. In Access the number are shown with "." as decima...more >>

Request object, ASP 0105 (0x80004005) An array index is out of range.
Posted by steve_jackson NO[at]SPAM cox.net at 1/26/2007 12:57:29 PM
I get this error, when I am trying to update a table in an Access DB through our intranet. Here is the section of code that is generating the error: FormItemID = Request.Form("FID") StoreNo = Request.Form("STNO") OrderQty = Request.Form("OQTY") %> <% strDBPath = Server.MapPath("\Databa...more >>

http 500: server error
Posted by ben at 1/26/2007 9:31:23 AM
Hi, i have an application running ASP code and ASP.NET together. It worked fine before i installed IE 7. The application has Windows Integrated authentification set in IIS 5.1 (windows xp prof). Now, with version 7 of IE, the aspx pages work as usual, but the asp pages give HTTP 500: serve...more >>

Forcining An ASP page to expire
Posted by Sam at 1/26/2007 5:51:05 AM
HI - I have the following asp page and no matter what I try every time I exit this page and click the back button the page remains in cache. Any suggestions? thanks <% Response.AddHeader "pragma","no-cache" Response.AddHeader "cache-control","private" Response.Buffer = True Response.Ex...more >>

ASP POST perfomance problem
Posted by Georgy Malyshev at 1/25/2007 12:34:59 PM
Hello, All! I have a simplistic ASP application, only default.asp file without any scripts just HTML to say "Hello world!". It is running under IIS 5.1 on XP SP2 machine. I also have some simplistic ISAPI extension DLL as reference point for my performance measurements. My client is a conso...more >>

Find length of field from database table
Posted by SSG at 1/24/2007 11:47:25 PM
In my database table , I have field to store the text,.. I am tryinf to find the length of the filed in ASP like below response.write len(rs("cname1")) It is displaying the value , when the data in the field is nonzero, it is not displaying anything if the filed is mty in table.. I cant...more >>

Displaying questions grouped into categories and subcategories
Posted by Drew at 1/24/2007 8:55:21 AM
I posted this to the asp.db group, but it doesn't look like there is much activity on there, also I noticed that there are a bunch of posts on here pertaining to database and asp. Sorry for cross-posting. I am trying to build a "checklist", where a user can navigate to an ASP page on the in...more >>

SELECT statement pulls field names - how to avoid?
Posted by Billy at 1/23/2007 4:44:26 PM
I do a SELECT * from table command in an ASP page to build a text file out on our server, but the export is not to allow a field name rows of records. The first thing I get is a row with all the field names. Why do these come in if they are not part of the table records? How do I eliminate this ...more >>

textfile - write to beginning of file?
Posted by btopenworld at 1/23/2007 3:58:56 PM
Hi - question from a relative asp novice I have written to text files in the past, but always appending new data to the end of the text file. I now want to add the new data to the beginning of the file. The text file would be a record of orders placed through a web form. The text file would...more >>

Error message from ASP.NET 2.0
Posted by Horst Wutscher at 1/23/2007 2:47:09 PM
Hello, I hope somebody can help me! I get an error message from ASP.NET 2.0 if i want open one report from SQL Server 2005 - Reporting Services over the url, for example: http://severname/reportserver/department/report-test If i open the Report over the normal -> Graphik URL, http://rep...more >>

Select (dropdown) list and set value based on table column
Posted by mcauliffe at 1/23/2007 11:47:01 AM
I have an old application ( pre-VB5) that I need to add a select/option list to. This is an edit program so the values for the form will be retrieved from a database. How do I set the value of the dropdown with the value from the database. The value in the database is either new, trial, mai...more >>

upload a word file to html format
Posted by sweet at 1/23/2007 9:00:03 AM
can anybody help me out?what i need to do is -- upload a .doc file to an html format so that the formatted text is not changed.can someone plz provide me with the asp code for this? -- sweet ------------------------------------------------------------------------ Posted via http://www....more >>

Help accessing an XML document from a URL
Posted by TheDude5B at 1/23/2007 6:36:31 AM
Hi, I have the following code which accesses an XML document and then displays the document using XSL. ----------------------------------------------------------------------------------------------------------------------- Dim xmlDocument Dim xslDocument Dim path Dim XSLTemplate Dim proc Dim...more >>

ASP Session Variables
Posted by Victor at 1/22/2007 6:35:59 PM
I've got a website that displays the same whether it is accessed using www. or not. ex: http://www.mysite.com and http://mysite.com give me exactly the same website (both represent the top subdomain). HOWEVER... it seems that while they share the same application variables (of course) they ...more >>

recordset data getting truncted during response.write
Posted by cbtechlists NO[at]SPAM gmail.com at 1/22/2007 12:55:55 PM
I have an ASP app that we've moved from a Windows 2000 to a Windows 2003 server (sql server 2000 to sql server 2005). The job runs fine on the old servers. Part of the app takes a recordset and response.writes out comma delimited strings so that the results are opened in Excel or saved to a f...more >>

Image Resizing with ASP
Posted by vunet.us NO[at]SPAM gmail.com at 1/22/2007 11:05:54 AM
I have been using Imager Resizer (http://www.crazybeavers.se/products_imagerresizer.asp) DLL component to handle all my image resizing on server side and delivering a custom-size image to the clients. This component does not always work well (or works well every other time only). Is there any p...more >>

How to Run ASP File Daily?
Posted by vunet.us NO[at]SPAM gmail.com at 1/22/2007 8:37:29 AM
I am hosting a website on Windows 2003 server, IS6, MS SQL Server. I have one ASP file I would like to run daily. How can I do it if I do not have acces to OS's management (to use, for example, task scheduler) and I do not want to include this page within other pages of the website to be run (be...more >>

SP Command Error
Posted by Mangler at 1/22/2007 8:16:38 AM
I a running a SP and calling it through ASP. I keep getting this error: Parameter object is improperly defined. Inconsistent or incomplete information was provided. I think I have the format of the date wrong somewhere. Can someone help? Here is the command: <% Dim spDup__rma ...more >>

Date Calculation
Posted by colleen1980 NO[at]SPAM gmail.com at 1/22/2007 7:06:58 AM
Hi: Can any one please tell me how to i calculate the next month starting day and next month ending date. For example if this is january then i need the next month that is february starting day and february ending day. I need to calculate the date in that way given below, I mean without query. B...more >>

If then statement
Posted by cmt at 1/22/2007 5:38:09 AM
I am trying to display an image link based on the day of the week. My code gets the days for today, yesterday, and tomorrow and also today's hour. Note: function returns 1 if image link should work function returns 0 if image link should be disabled It should display the image link if: ...more >>

CMS Navigation in ASP
Posted by Abs at 1/22/2007 12:42:21 AM
Hello, i've built a simple CMS app but i was wondering how to implement a tree like (or drop down) navigation system using classic ASP. Any assistance appreciated. Abs ...more >>

Allow Users Of Website To Create Their Own Hyperlinks On A Page
Posted by Dave Marden at 1/20/2007 3:05:25 PM
Is it possible to allow a person whom navigates to a particular page to type in a URL to a website they visit often, and have it be treated like code on the page itself for them to use it as a hyperlink? If so, any suggestions would be appreciated. Thanks, Dave Marden ...more >>

TEXT AREA ROWS IN HTML
Posted by SSG at 1/20/2007 12:52:02 PM
In HTML , I need textarea box with 4 rows & 5 cols . But if I enter the 4 th row, it shouldnt allow 5 th row... Only 4 rows should be accepted, can anyone tell me hw to creat text box? ...more >>

ActiveX control "Click to activate and use this control" message
Posted by fniles at 1/19/2007 1:21:38 PM
For IE users, we now encountered a "Click to activate and use this control" when the web page has an ActiveX Control. There is a compatibility patch that changes the default bahavior back to what it was prior to the April Security update, but it is only temporary. In the following article ht...more >>

Help with the POST method
Posted by gtg489w NO[at]SPAM gmail.com at 1/19/2007 12:02:32 PM
I'm having trouble reading data that i send to the server using ajax. The call I'm making in the client-side javascript is: fullProject.open("POST", url, false); fullProject.setRequestHeader('Content-Type','application/x-www-form-urlencoded'); fullProject.send('var1=' + projectData); and...more >>

Time Comparison - why is this not working?
Posted by Joey Martin at 1/18/2007 5:56:21 AM
Please look at code below. I am trying to compare the NOW time with a "deadline" time. Please help. Just not sure why this is not working. I need to be able to say IF IT'S BEFORE 9:30 TODAY, IT'S OKAY TO ADD SOMETHING. IF IT'S AFTER 9:30 TODAY, YOU MUST ADD IT TOMORROW. CODE: nowtime=now() ...more >>

regExp Experts.....
Posted by Russell at 1/17/2007 4:07:06 PM
hey, I'm struggling trying to get the concepts of the regExp function down.... What i'm trying to achieve is to remove all white space from html formatted source code. I have the following regExp search string to remove all html source code but that is not what i require.. RegExp.Patte...more >>

IIS session and IE7
Posted by abcd at 1/17/2007 9:56:46 AM
I have asp and asp.net web application. When I run it in IE7 in first tab it starts a new session. When I open second tab and browse to the same site the new session is not started (infact I need to have new session there). Whereas, 2 IE instances generate 2 unique sessions. Only issue is with...more >>

File Upload using Classic ASP?
Posted by alabraha at 1/17/2007 6:40:13 AM
Hi! It's been awhile since I've had to upload files with classic asp and now that we're changing servers, we're having a problem with the server guys. They don't want to install any components on the server in case they cause problems with the server (memory leaks, etc...). We are currently...more >>

Problem with field type nvarchar(max)
Posted by maurox at 1/17/2007 5:49:39 AM
Hi, i have a simple table with a field called "authors". this filed have a nvarchar(max) type (in MSSql 2005). i have a simple query "Select authors FROM table". in query analizer this return the value of authors, but when i run this in asp page, the field is empty. in the code i have: ...more >>

500 Error: Page Cannot be displayed
Posted by cmt at 1/17/2007 5:09:20 AM
Greetings! I have an asp page that writes out a URL that points to files on a network drive. It has been working fine up until a week ago. I haven't made any changes to the server or code, so I can't figure out why the script suddenly stopped working. I have verified that the files do ex...more >>

Maximum fields in MS Access 2002 table
Posted by SSG at 1/17/2007 2:19:46 AM
WHat is the maximum no . of fields , we can create in Ms access 2002 table...... ...more >>

VERY strange issue with SQL 2000 + ADO Command object
Posted by George Shawn at 1/16/2007 6:17:36 PM
Hi, I am running into an extremely frustrating problem and after hours of troubleshooting have not made any progress. When I try to use the ADO Command object to update a table, I receive the following error message: Microsoft OLE DB Provider for ODBC Drivers error '80040e10' No value giv...more >>


DevelopmentNow Blog