all groups > inetserver asp general > july 2004 > threads for july 15 - 21, 2004
Filter by week: 1 2 3 4 5
Type not defined error
Posted by J Quick at 7/21/2004 11:50:53 PM
I'm getting the following compilation error on the line of vb.net code
below.
Compiler Error Message: BC30002: Type 'DirectoryEntry' is not defined.
Dim dirEntry As new DirectoryEntry(strLDAPPath)
I have System.DirectoryServices added to the project references and to the
aspx form. The... more >>
can ASP check if an object is an integer?
Posted by Lord Merlin at 7/21/2004 11:44:25 PM
Sorry for the dumb question, but what is the function in ASP to see if an
object / string is an integer?
I want to check the contents of a form, and if it's an integer, i.e a
number, do something, else if it's a word do something else, and I'm not
sure howto?
--
Kind Regards
Rudi Ahle... more >>
Error on Form with VBA
Posted by bluesbrthr NO[at]SPAM home.com at 7/21/2004 6:58:37 PM
I have an error on a webpage of mine since I added a function to save
the data in Proper Case-- but a smarter proper case. The page is not
displayed so I don't know where the error is or how to fix it
(obviously.) Here is the code:
Function MakeProper(var)
If Len(var) > 0 then
... more >>
ASP weather services
Posted by Dave at 7/21/2004 4:43:48 PM
Does anyone know of an ASP / SOAP / XML based weather service?... more >>
Problems accessing an MS Access 2000 DB in ASP
Posted by Brad Pears at 7/21/2004 4:27:33 PM
Our graphic designer is developing our new company website. We have switched
providers and currently she is working on the new website which currently
ressides on the new providers server as they support the ASP development
environment. Their server is a Win2K3 server.
She is writing an ASP mo... more >>
SQL and DSN-Less connection
Posted by shank at 7/21/2004 4:16:03 PM
I've used the below DSN-Less template for a remote SQL DB, but having issues
trying to get it work on my local computer. Any idea what the values should
be? I get this error...
Error Type:
Provider (0x80040E21)
Multiple-step OLE DB operation generated errors. Check each OLE DB status
value, ... more >>
taking CHM data and using it in ASP app
Posted by middletree at 7/21/2004 3:47:01 PM
Our software system has a very extensive Help doc system, in CHM. I have
created an Intranet ticket-tracking system using classic ASP and SQL Server.
One thing I'd like to do is add all that info from the Help doc into the
Ticket app. Any suggestions?
... more >>
need help
Posted by Savas Ates at 7/21/2004 2:56:26 PM
can i change the MSIE (extra,options, securty) with asp or javascript? if
answer is yes how?
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
working out time passed between two dates
Posted by Steven Scaife at 7/21/2004 2:39:24 PM
I am trying to work out the length of time that a page was opened till it
reached another page, I amusing the script below
End_Of_Call = formatdatetime(now(), 0)
'work out the duration of the call
duration = End_Of_Call - cdate(vTime)
response.write isdate(End_Of_Call)
response.write is... more >>
asp script question
Posted by Samir at 7/21/2004 2:09:40 PM
I am try to compare more than one value to a string in my asp script ie.
<%
if strVar = "test" and strVar = "test2" and strVar = "test3" then
do some stuff
end if
%>
is there a shorter way of comparing different values to a variable?
... more >>
two server processing
Posted by Khanh Pham at 7/21/2004 12:46:46 PM
Is it possible to have server1 do a post to another page on server2?
Server2 page does it's thing and submit the results back to server1. All of
this is done without any reference in the url. I tried server.execute and
transfer but it only works on the same server.
Basically, I have a compon... more >>
Can you go to this newsgroup via a web interface ?
Posted by Fie Fie Niles at 7/21/2004 11:57:45 AM
Can you go to this newsgroup via a web interface ? If yes, what is the URL
address for that ? Thanks.
For example, you can access Outlook newsgroup on the web at
http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public.outlook.program_vba
... more >>
need quick helpp
Posted by Savas Ates at 7/21/2004 11:34:16 AM
i have an web page. it use frame set .. but main frame is one server the
other frame is another server. when i want to set a cookie or session from
child frame.. it doesnt work...
i research the problem from msn
i tried
<%Response.Buffer = True
response.AddHeader "CP","CAO PSA OUR"%>
C... more >>
Script context highlighting
Posted by dave at 7/21/2004 9:35:03 AM
Could someone please point me in the direction of a function that will parse
a "code" output and colorise the context of the script?
eg - vbulletin style [code] output
Cheers
... more >>
Sorting column headings
Posted by carmen at 7/20/2004 10:53:33 PM
I'm using the code below to display the results in rows with the column
header as hyperlinks that will sort the rows by colum heading. Is there a
way to have the results sorted (as default) in reverse order so that the
most recent are at the top of the page also when the user selects the Open
Da... more >>
Display multiple lines
Posted by JStrauss at 7/20/2004 8:55:06 PM
Hello,
Can anybody give me some tips on the best and/or easiest way to display
multiple lines in a field. The data is collected from a "textarea" field
when the form is submitted, and I want to display all of the data (multiple
lines) in a resulting HTML page. The data displays on a single line
... more >>
session quiz
Posted by Savas Ates at 7/20/2004 5:48:58 PM
i have a site which uses session("xx") value.. in my site i take a variable
and
session("xx")=request("xx")
im my url www.xx.com?xx=aaaaa
it works... and i click another page in this url www.xx.com/d.asp the
session variable is ok...
but another page
www.yy.com
in a frame it opens... more >>
Date Problem
Posted by F NO[at]SPAM yy NO[at]SPAM Z at 7/20/2004 5:16:37 PM
Hi
I have one field in SQL Database datatype as datetime. When I am inserting
or updating using asp on my machine its working fine but when I installed DB
and application on other server and try to insert or update date using asp
it giving error of date convertion.
I know that its date form... more >>
ASP, Dates & Languages
Posted by javawzl at 7/20/2004 3:35:02 PM
We have a few English websites running on a single server and are in the process of adding a Spanish website to the same server. I am trying to determine how one would set the language for a particular website. For example, instead of ASP generating a date like "Monday, July 19, 2004" .. I would lik... more >>
request instead of request.QueryString
Posted by Ivan at 7/20/2004 3:28:27 PM
hi,
I saw some program using "request("fieldname") " instead of
"request.QueryString" to get the value from URL, what's the different ??
thanks
... more >>
Script Execution Time
Posted by Dave at 7/20/2004 3:15:11 PM
Is there an easy way to determine how long it took a particular page to
execute?... more >>
Very very newbie ?
Posted by Hasan Kachal at 7/20/2004 12:48:34 PM
Hi all,
I am very very new to asp and am trying to get started fast. How do you
develope asp pages: do you open a text document and start typing codes? Or
is there a tool you use to develope asp pages.
I would appreciate any tips, advise you can give me.
Thank you,
... more >>
Form Validation
Posted by Miguel Orrego at 7/20/2004 12:37:29 PM
Hi,
I have a form that is created dynamically from a recordset, this creates a
line for each record together with 2 checkboxes, Yes & No so the source
output would be something like this:
<p>Please indicate whether you still use each piece of software detailed
below:</p>
<form name="apps" ... more >>
Re: Cannot access server variables on client
Posted by Tim Regan at 7/20/2004 12:05:34 PM
Hi All,
I left a mistake in the last line of th script. Here's the revised version.
Any ideas why it doesn't work (i.e. no fifth element and first swapped with
second)?
<html>
<head>
<script language="javascript" runat="server">
var thirdString = "Thirdly<br>";
var fifthString = ... more >>
sorting columns with Access
Posted by shank at 7/20/2004 10:48:22 AM
Is the CASE statement allowed when querying an Access database?
Assuming so, what is the correct syntax?
thanks
SELECT OrderNo, Description, Type, Label
FROM Stock
WHERE Manuf = 'M'
ORDER BY
CASE 'C' WHEN 'orderno_asc' THEN OrderNo END ASC,
CASE 'C' WHEN 'description_asc' THEN Description ... more >>
Writing out array values
Posted by JP SIngh at 7/20/2004 9:04:38 AM
Please help me with this
I have an array which has days of the month stored in it. For example at one
time it might have the values
1,2,3,6,7,8,9
at another time it might have the value
4,5,12,14,19,25
These are days of the month that have been selected and read into an array.
What ... more >>
Field calcs with OnBlur
Posted by George at 7/20/2004 6:06:01 AM
I am trying to have an auto calculation happen on a form when 1 of 2 boxes get data keyed into them. I tried using ONBLUR with both textboxes, but I kept getting an invalid object. I use VBscript for my coding.
<%
response.write(<td class=""detaill""><input type=""text"" name=""txtRate_1""... more >>
Issue with a variable form a database.
Posted by JPRW at 7/20/2004 3:14:13 AM
Hello All.
I am having issues with the visualbasic gramatic for the following scenario:
I am retrieving information from an Access 2000 Database. The current fields
are:
ebay, which is a yes / no, showing as -1 or 0
ebay_path, which is a memo field with the ebay link to the product
aucti... more >>
ASP Error Handling
Posted by Niraj Khandwala at 7/20/2004 1:02:20 AM
Dear all,
this error handling has been a pain since so manya days
using ASP 3.0 with IIS 5.0 on W2K server Created a custom error page
using the Server.GetLastError() and works fine in most of the cases.
Following are the issues :
1. Have a hughe file (5-6 mb approx) to upload, now if there... more >>
checking record older than 2 years not working?
Posted by Lord Merlin at 7/20/2004 12:58:10 AM
Good day to you all
I'm trying to see all the records in the database older than 2 years from
today, and I can't seem to be getting it to go.
SELECT * FROM comments WHERE (currentdate < 2002 - 07 - 20) ORDER BY
currentdate
I get null records returned, even though I can see some records ... more >>
Calculation not working
Posted by JStrauss at 7/19/2004 8:18:30 PM
Hello,
I am having a problem getting some code to calculate/work in an ASP page. In
the snippet below I am collecting some data (inthours1 and intrate1) and
then want to calculate a value (intsub1) to display on the page. If I set
intsub1 to a fixed value, the page displays correctly. If I try t... more >>
writing text to an image with asp
Posted by Savas Ates at 7/19/2004 6:35:58 PM
is there any component to make it.. i want to make user registiration page..
in this page i want to place a image which has a text and a user must be
type this text to a text box and after that i will check the textbox value
and image text value.. how can i make it.. do i need a component. if the... more >>
RSS update problem.
Posted by msnews.microsoft.com at 7/19/2004 5:39:31 PM
Hi All,
I was able to generate an RSS for the news I provide with ASP and MS SQL
backend. When I opens it its working fine with any RSS reader, But its not
getting updated, when I update the feed. Its showing the one which I made
the day one, How to rectify and what could be the problem.
Any ... more >>
need remote_user servervariable
Posted by Cas at 7/19/2004 5:30:47 PM
Hi,
I have an intranet application running on windows 2000 server with IIS 5.0,
but there is no domain. The users use workstation windows 2000 and log on
locally. I need the logon of the users of our LAN in the application, so i
did:
lo=request.servervariables("remote_user"), but it's empty.
... more >>
Problem with this code....
Posted by Kewlb at 7/19/2004 2:52:16 PM
Hey Guys,
My server decided to all of a sudden stop giving me compile/scrip
errors and instead now just gives me a blank page with no informatio
as to what the problem might be. I have looked over the below cod
quite a few times and just for the life of me can not figure out wha
could be wro... more >>
asp chat
Posted by Savas Ates at 7/19/2004 11:44:12 AM
how can i do a chat page with asp .. does anyone have example codes or url..
or with java.. please help me...
... more >>
Update Application value on multiple servers?
Posted by Art at 7/19/2004 11:32:02 AM
Can I update Application("SomeVariableName") on server A in response to user's action on server B? There is no problem in updating the same variable on server B, of course, but we would like both variables to be in sync since users can view the value stored on arbitrary server.
So far I have trie... more >>
msgbox
Posted by JT at 7/19/2004 11:25:17 AM
im trying to use the MsgBox function in the following to display an ASP
MsgBox containing text retrieved from the db into a recordset
<%
set rsMessages= myRecordset
msg_text = rsMessages.Fields("msg_text")
msgbox(msg_text)
%>
this generates a permission denied error b/c msgbox needs to ru... more >>
upload file component
Posted by Utada P.W. SIU at 7/19/2004 11:07:39 AM
Hi All,
Do you know where have free/buy a upload file component?
I need allow user to select the folder instead of select file one by one
thanks~~
... more >>
problem with sending emails with CDO
Posted by Cas at 7/19/2004 10:42:54 AM
Hi,
I run IIS 5.0 on windows 2000 server sp4. This server is connected to the
ISP with adsl modem.
I put ASP code (found on internet) in order to send emails with CDO: (see
below)
When running that page, i get the error: "HTTP 500 - Internal server error
Internet Explorer"
No idea why.
I ... more >>
IIS process only .ASPX files
Posted by F NO[at]SPAM yy NO[at]SPAM Z at 7/18/2004 7:38:30 PM
Hi
I have installed IIS on WINDOWS 2003 server.
IIS is working only if I type filename.aspx for .asp or any other file its
giving "HTTP Error 404 - File or directory not found.
"
Please advise what I am doing wrong.
Regards
... more >>
writing to file
Posted by dave at 7/18/2004 5:31:27 PM
Hi
I'm reading one html file and writing in another problem.
while cnt <= ubound(lines)
myFile.WriteLine "body = body & """&lines(cnt)&""""
cnt = cnt + 1
wend
Using this code when I see new file it puts one character
(look like small rectangle) before "
how would i get rid of this... more >>
Displaying Img from Access using BinaryWrite
Posted by Nathan Henderson at 7/18/2004 5:13:41 PM
Hi,
Becoming quite frustrated with this.
I have a commercial database written in access and I'm trying to display
some images, jpegs, stored in the DB on web page.
My code is as follows:
Response.ContentType = "image/jpeg"
sql = "SELECT PartImage FROM Parts WHERE ShortID='AAPTM01'"
Set... more >>
Adding rows to database table thro ASP
Posted by vasanth kumar at 7/18/2004 4:37:29 PM
Hi,
I want to add a row to library table. Table has total 7 fields. But I
want to create the new row with 5 field data. When I run the following query
in MS Access
strQ = "INSERT into library (index,title,author,itemtype,createdate) VALUES
('B-096','Hihihihihi','hello','Book','07/18/04')"
... more >>
Setting message priority with CDOSYS
Posted by Peter Croft at 7/18/2004 12:03:05 PM
Hello. Can someone please tell me how to set the priority of an email
message
sent from an ASP script using CDOSYS as below -
set oCdoMsg = server.createobject("CDO.Message")
oCdoMsg.from=...
oCdoMsg.to=...
oCdoMsg.subject=...
oCdoMsg.importance=1 ' fails
oCdoMsg.... more >>
Redefined variable
Posted by Serge Myrand at 7/18/2004 10:19:51 AM
Hi everybody,
In an ASP page, I need to load twice an include file that contains
variables. So I get an error message "variable redefine" I tried to test
with VarType before to define the variable (dim) with no success. Is it
faisable with VBScript to define a variable (dim) under condition.... more >>
[NEWBIE] Viewing ASP files (.ASP extension)
Posted by Cassandra Flowers at 7/18/2004 9:32:54 AM
Dear group,
I have never done any ASP coding before (Just HTML and Javascript as far as
web pages go - and got on fine)
I would like to start writing some ASP scripts, but I am having difficulties
viewing '*.asp' files on my PC, when I open them only the HTML aspects of
the code displays or... more >>
Distance betweeen 2 zip codes
Posted by galsaba NO[at]SPAM aol.com at 7/17/2004 8:56:38 PM
anyone knows what the formula is for finding a distance betweeen 2 zip codes?
Aaron... more >>
ASP and WebBots
Posted by Jim at 7/17/2004 6:26:17 PM
Can anyone enlighten me as to the spambot email harvesting process? I use
to use javascript to protect my email address, but with security levels
rising, I can't rely on everyone to have javascript enabled. I am currently
using an encoding tool (UltimateMailto) that turns the email address into... more >>
Form Submit quiz
Posted by Savas Ates at 7/17/2004 12:24:14 PM
<form action="a.asp" method="get" >
<input type="image" border="0" src="IMAGES/oklar.jpg">
</form>
im usnig this codes to submit form when a user click on oklar.jpg(an image)
... but it submits form ***a.asp?x=6&y=8*** like this.. x and y ... more >>
Client printing format
Posted by JStrauss at 7/17/2004 7:34:10 AM
Hello,
I have an ASP form to collect some data and then have the client print it
out through their browser. I was wondering if there was any way to control
and/or eliminate (from the server side) the additional text that gets
printed on the page, such as:
"page 1 of x" at the top of the page;
... more >>
simple question on vbScript SET statement
Posted by qwestion NO[at]SPAM qwestion.com at 7/17/2004 12:01:07 AM
Simply:
On one .asp page I have:
Set Session("mydictionary") = [dictionary object]
Now the session variable has the dictionary object in it, then on
another page ...
Set x = Session("mydictionary")
.... and I use the "x" variable with the properties of that object,
etc.
Question:
Is... more >>
DSNLess troubles
Posted by shank at 7/16/2004 9:26:30 PM
I'm trying to setup an Access DSNLess connection on my local computer. The
following string works fine within the Dreamweaver interface. But when I
upload to my server (locally) I get this error. Can anyone lend some
insight?
thanks
Object required: 'oConn'
/Connections/conn.asp, line 2
<... more >>
Types in ASP, is it possible?
Posted by Kewlb at 7/16/2004 3:16:49 PM
Hey everyone,
I am writing a basic tournament submit site for a poker tournamen
group I am in. The situation is we want to use code to calculate wha
we owe other members at the end of the week. The way I figured to d
this is read from the database and store tournament numbers in an arra
then... more >>
page expired problem
Posted by Rahul Chatterjee at 7/16/2004 2:06:35 PM
Hello All
I have a web pagewhich queries a db and displays information on the
subsequent page. On the subsequent page if I click back to previous page
(this is a button with javascript code on it), it takes me to the previous
page but the page says - "warning page expired". When I am in my com... more >>
Enter key behavior
Posted by Serge Myrand at 7/16/2004 12:06:15 PM
Hi,
When the cursor is in an INPUT TEXT control and the Enter key is hit,
what it's happen. I mean what is the chain of actions starting from that
point.
I have an ASP application that save modifications (qty chang in an input
text) when the user navigate from page to page. For doing so I c... more >>
Generating navigation
Posted by tom NO[at]SPAM jb-solutions.co.uk at 7/16/2004 1:10:09 AM
Hi guys,
I'm using the Webedit Pro CMS for a client.
When the user creates a new page, rather than go through every other
page in the site and add a new link to the left hand navigation I want
to use an include file and search the folder for all .asp and .htm
files and display them in the ... more >>
Will these objects be closed and destroyed?
Posted by andyza NO[at]SPAM webmail.co.za at 7/15/2004 9:49:26 PM
In the code below I have a Response.End in the middle of a Do loop
that is run if the condition in a nested 'If...' statement is not met.
Will the rs and conn objects be closed and destroyed if the
Response.End is called or will they be left open?
connStr = "PROVIDER=OraOLEDB.Oracle; DATA SOUR... more >>
website on a CD
Posted by shank at 7/15/2004 8:47:20 PM
I want to create a dynamic website hosted on a CD.
It would be based on ASP and have a database.
Is this possible? How would I approach such a thing?
I'm sure I could by a runtime version of Access and build an application,
but could that be implemented within the website?
Any thoughts? I don't... more >>
formatting string
Posted by dave at 7/15/2004 5:38:12 PM
Hi Guys
I have one string variable and value stores something
like this
st = "From: ""John Thomas"" <john@test.com.au>"
when i test it display some thing like
From: "John Thomas" <john@test.com.au>
How can I pick up only display name and without double
quotes. i.e. it should display... more >>
Script to edit PSD files
Posted by Gustaf B at 7/15/2004 2:04:04 PM
Hi
Is there any way to edit a PSD file trough ASP ?
For example if I make a templimate with photoshop with a textfield
then i want to change the textfields value trough the script and then render
the
new file as an image.
Ive seen alot of components that can render PSD files but none that ca... more >>
Hidden value
Posted by JimS at 7/15/2004 1:43:22 PM
Hello
I seem to be having a problem with saving hidden values. I am trying to use
the
hidden values to post infomation back to the same page and also to a
different
second page. I would like to persit the values to a couple of more pages in
this
process. I have ten different values that I a... more >>
pwd's in dbases
Posted by John at 7/15/2004 12:11:19 PM
Hi all,
What is the best way to store a pwd into a dbase? I guess it is hashing it.
Read a lot regarding this issue to use md5 for it, but can i use AES for it
also? And what is that salt thing doing? And then, there is more, What is
the best way to request a login and pwd from a user (cli... more >>
Multi-column combo box, change width on select
Posted by Diane Yocom at 7/15/2004 11:47:20 AM
Has anybody ever seen or written code for ASP that would mimic Access'
multi-column combo box? Specifically, I have a drop down box that lists
about 100 five-digit codes. Each of these codes has a long text description
that explains what the code represents.
I'd like to be able to show the c... more >>
Displaying recordsets
Posted by smarciniak NO[at]SPAM snl.com at 7/15/2004 11:23:46 AM
I'm trying to display different recordsets (which are 1 field each) as
columns right next to one another. For example, Recordset1 is
displayed on the left hand side of the screen. Recordset2 is displayed
immediately to the right of then first recordset with the first rows
or each at the same lev... more >>
File System Object
Posted by JP SIngh at 7/15/2004 11:09:59 AM
Can some tell me how can I search for a particular block of text within the
file and delete it?
Section of the file I want to change looks like the one below and I want all
the lines starting with dteHolidays[ deleted?
/* INSERT HOLIDAYS HERE!
*/
dteHolidays[0] = new Date("01/01/20... more >>
submit() QueryString data
Posted by Serge Myrand at 7/15/2004 9:16:07 AM
Hi,
Is there a way to append the QueryString data when using
<Script>document.FrmName.submit()</Script>
Thank's in advance
serge
... more >>
PWS replacement
Posted by David at 7/15/2004 8:22:30 AM
I have just upgraded my win98SE pc to winxp home. I am aware that PWS won't
work with xp home, and I need to upgrade to XP pro for IIS. Problem is that
I don't really want to upgrade unless I have to. I've been investigating the
various server options available. I need to run .asp scripts and con... more >>
URL Rewrite Routine
Posted by DavidM at 7/15/2004 7:50:49 AM
Hello -- I have a page that I call with a few URL parameters...
For example:
Parm1=a, Param2=b, Param3=c, Param4=d
The ASP script can accept any number of parameters or none.
Since I'm adding paging to the page via ADO RecordSet and having page
navigation at the bottom, I'm creating a ... more >>
Hiding ASP source code
Posted by webpro NO[at]SPAM webpro.co.za at 7/15/2004 6:08:42 AM
I have a customer with an extensive intranet which contains a lot of
sensitive company data. The client is concerned that any employee
could download source code back to removable storage and thereby steal
the data.
Printing is considered publicly risky and other capture methods of
visble sc... more >>
|