all groups > inetserver asp general > february 2004 > threads for tuesday february 10
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
Dynamic Variable Names
Posted by Jas at 2/10/2004 11:35:17 PM
Hi All
I guess I should just have tried this to see if it works but I don't have
access to a machine running IIS and can't test it and I am itching for an
answer.
I want to use dynamic variable names in one of my pages.
I store a field called year in one of my table. For each year I want ... more >>
Is it possible to change IIS settings from ASP?
Posted by Gervin at 2/10/2004 9:42:00 PM
That was the first question. BTW, I am using Windows 2000 Server.
Second questions is how do I transfer session variables from one virtual
website to another website. Currently I have session variables set in say
www.first.com and then I click a link and goto www.second.com. How can I
transfer... more >>
html question
Posted by dev at 2/10/2004 8:17:35 PM
Hello,
If this is the wrong group, please post a more relevant group. My problem
is that I have a .hex file (basically a text file) shown on a web page for
download. If one left clicks on the link for this file, the text content is
displayed. Someone in my organization wants to prevent this... more >>
cookies issue
Posted by Rafael Chemtob at 2/10/2004 6:40:47 PM
Hi,
I have an application that when it loads, it checks for a cookie on the
client side. If the cookie exists, it sets a variable on the specific ASP
page for certain fields to be populated.
Our problem is that some user sessions have data left over in cookies that
are from a previous user s... more >>
using java class from ASP
Posted by Utada P.W. SIU at 2/10/2004 6:29:27 PM
Hi all professional
I would like to know how to using java class file inside ASP page
I have placed the class file to C:\WINNT\java\trustlib
also, I have compiled it to 1.1 version
but it always prompt
error '800401e5'
No object for moniker
How can I solve this problems?? thank~~
... more >>
Execute method vs Recordset object
Posted by Thomas Scheiderich at 2/10/2004 5:28:31 PM
Why would you use the Recordset object over the Execute method of
getting data from your Sql database.
For example, I have the following:
Execute Method
***************************************************************
Set connectionToDatabase=Server.CreateObject("ADODB.Connection")
connect... more >>
MAPI.Profile Logon with ASP
Posted by Adam Kinney at 2/10/2004 5:02:47 PM
I have an ASP application that logs into Exchange server to send email. The
code looks like this:
Set objSession = CreateObject("MAPI.Session")
objSession.Logon "profileName"
strMsg = ".."
Set objMessage = objSession.Outbox.Messages.Add
objMessage.Subject = "Customer C... more >>
SECURITY: Best Practices for Handling Connection Strings
Posted by Ryan N. at 2/10/2004 4:10:10 PM
Hello,
I saw a brief blurb on this somewhere and am unable to recall where...
In the context of Security, what are some best practices for
handling -storing, locating, retrieving- database OLEDB connection strings?
I have typically used a single include file and even considered stuffing the
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
ASP and Fonts
Posted by AlejandroT at 2/10/2004 3:42:48 PM
BlankI have the code;
<%
Response.Write("<TD valign=""top"">")
Response.Write("<A href=""image.asp?ImageID=" & lngImageID & """><B>" &
strTitle & "</B><BR>")
Response.Write("<IMG src=""image.asp?ImageID=" & lngImageID & """
width=""100"" border=""1""</A>>")
Response.Write("</TD>")
... more >>
formatnumber function returns error
Posted by eddie wang at 2/10/2004 3:39:26 PM
The following code with formatnumber function returns me the following
code. Why? Thanks.
<td align="right"><Font
class=content4><%=formatNumber(ars.Fields("SOLD_AMOUNT"),2)%></td>
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'formatNumber'
*** Sent via Developersdex ... more >>
keep the spaces before the description line
Posted by eddie wang at 2/10/2004 3:39:26 PM
How to keep the spaces before the description line in the following
code? Right now, it displays like "Net Income", but I like to have
spaces before the words like " Net Income". The database value is "
Net Income". Thanks!
<td align="right"><Font class=content4><%=ars.Fields("LINES")%>... more >>
ASP Include Problems
Posted by Max Hazelhurst at 2/10/2004 2:15:09 PM
Hi there,
Got an include file causing a timeout on the server when it's called on...
The code has a loop in it that I suspect may be the cause...
I can forward the entire inc file should it be necessary...
Many thanks as ever..
Max
Maxh att zelhurst dott com
if (user_id = "") Th... more >>
Save formatting in Text area box
Posted by Danny F at 2/10/2004 1:41:08 PM
Is it possible to have line feeds/breaks automatically entered when the text wraps to a new line? I am using a <textarea> input on a form and using the <pre> tag when displaying the text to a html page (embedded in a .asp page). The text is being saved to a sql database. Returns seem to be displa... more >>
Session variables and SSL
Posted by Asif Malik at 2/10/2004 1:10:33 PM
Hi i am new to asp and am having problems accessing a session variable on a
secure page (https) the session varaible was created on a non-secure page
and when i go i can see that it is still there, so the session is being
abandoned, just it is not viewable. I have also noticed the the opposite
a... more >>
response.redirect and refreshing a page?
Posted by tristan_abroad NO[at]SPAM hotmail.com at 2/10/2004 12:48:02 PM
I'm trying to build a tray for users to download their selected items.
I was wondering if anyone knows how to response.redirect a file (for
the user to download) and check to see if the download was
successful/unsuccessful, then have the asp page reload itself based on
the result?
e.g. somethi... more >>
Hiding data in ASP
Posted by J P Singh at 2/10/2004 12:13:01 PM
Hi All
I have situation and have not been able to work out the solution wonder if
someone can suggest a solution.
I have an asp form which displays holidays for an employee for various
years.
For example the code in a loop will write out the following with the data
Holidays 2004
Date ... more >>
format numbers
Posted by eddie wang at 2/10/2004 12:09:05 PM
I have the following html with result set. I like to have gas_revenue
display like $99,9999 and I like to have gas_price dsplay like 9.99.
Can I use html to accomplish this? Thanks.
<td align="right"><Font
class=content4><%=ars.Fields("GAS_REVENUE")%></td>
<td align="right"><Font class=con... more >>
ADO STREAM error
Posted by Pedro at 2/10/2004 11:44:34 AM
I'm trying to execute the piece of code below:
Const adTypeBinary = 1
Dim BinaryStream
Set BinaryStream = CreateObject("ADODB.Stream")
'Specify stream type - we want To get binary data.
BinaryStream.Type = adTypeBinary
'Open the stream
BinaryStream.Open
URL=http://... more >>
Access remote access database from ASP
Posted by william at 2/10/2004 11:41:06 AM
Hi,
I have an ASP page needs to access a remote MS Access2000 database, I got error "The Microsoft Jet database engine cannot open the file 'F:\Collect.mdb'. It is already opened exclusively by another user, or you need permission to view its data. ".
The 'F:\' is a mapped drive from remote mach... more >>
couldn't run ASP file
Posted by william at 2/10/2004 11:36:09 AM
Hi,
I could run hello.htm, but hello.asp. They are same except the file name.
.....
<body>
hello.
</body>
.....
I set Execute Permission to Script or Excutable(windows 2000, IIS5.0) from Home directory of IIS property.
Any idea?
Thanks.
william... more >>
Unable to connect to DSN
Posted by Thomas Scheiderich at 2/10/2004 11:15:04 AM
I have a page that is trying to connect to my SQL Database. All the
code I have seen shows me to connect the same way. The error I am
getting says:
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Driver Manager] Data source name not found and no
defa... more >>
Help with Data Layout - PLEASE... I am at the end of my hope....
Posted by CR at 2/10/2004 10:52:11 AM
"How to" question...
I have an Access Database with only one table (tblBooks) with 5 fields: id,
TestNumber, Book,
Author, ReadingLevel, PointValue. I would like to have alphabetical listing
of the records displayed
by hyperlinks on the top of the page like:
<Previous All | A | B |... more >>
number formating!
Posted by Jamie Fryatt at 2/10/2004 10:27:31 AM
I have a querystring that passes through the value 001 for example,
the form on the receiving page need to display that number but with 1 added
to it.
i have
dim strnum
strnum = request.querystring("value")
strnum = strnum + 1
when displayed <%=strnum%> shows 2 instead of 002, and the... more >>
Right forum? ASP.NET??
Posted by LadySpudz at 2/10/2004 9:59:46 AM
I have a question about something called ASP.NET, and am hoping this is at least
one of the right places to ask.
When looking at the 'users' on my machine, it shows (as a user) an ASP.NET with
the user account password protected. I haven't knowingly set this up on my
machine and am hoping som... more >>
asafaq article id=2120 - paging
Posted by Girish at 2/10/2004 9:44:33 AM
I am trying to use GetRowsMove method since we are not using stored
procedures, I got until 77 rows found. Showing page 1 of 2. - nothing shows
up in the list box and GetRowsMove.asp I couldn't get that up and running
instead of your recordset I am pulling from my own database that is the only
... more >>
Alignment of a result field
Posted by eddie wang at 2/10/2004 9:29:11 AM
My field result is " Total Operating Revenue", which has spaces
before the words.
But, when I use the following html to display, I don't see the spaces.
Why? Thanks.
<td align="Justify" bgcolor="#FFFF99"><Font
class=content4><%=ars.Fields("line_item_nm")%></font></td>
*** Sent vi... more >>
Can we use script in a table if GetString is used?
Posted by google NO[at]SPAM colinsteadman.com at 2/10/2004 8:35:46 AM
Just been looking at this article:
http://www.4guysfromrolla.com/webtech/121598-1.shtml
which describes using GetString to speed up the creation of HTML
tables. Seems fairly straight forward. But judging by the example it
would appear that if I use this technique, I could not then use ASP
... more >>
Returning RecordSet to ASP is empty
Posted by sidwelle NO[at]SPAM alexian.net at 2/10/2004 7:14:27 AM
Trying to return a Recordset to an ASP and the Recordset is empty.
The StorredProc works in the query analyzer and it even works from a
quick VB app that I wrote to test it.
The storedproc that I am using is fairly complex (creates some
temporary tables and populates them with 'Insert Into Sel... more >>
FileSystemObject - Norton Anti Virus conflict
Posted by drewfisher NO[at]SPAM hotmail.com at 2/10/2004 5:43:09 AM
Hi all,
Thought I would mention this as I could only find 1 reference to it on
a web page and having just experienced the problem the more references
with solutions will hopefully help others.
Like many people out there in corporate dev land, I am running IIS on
my workstation as a temporar... more >>
Using cookies & session vars in asp
Posted by warren.payne NO[at]SPAM talk21.com at 2/10/2004 2:53:18 AM
Hi
I'm involved in quite a large project which has a slightly unusual
form of login (at least I think it's unusual!). I'm creating a site in
ASP (actually Chilisoft ASP) where access to all pages has to be
secured via login. The odd bit is that while the login page will be on
this site, the l... more >>
How to keep QueryString-values?
Posted by r NO[at]SPAM gnar.de at 2/10/2004 12:43:14 AM
Hi,
to change the colors of a forum I am using
request.querystring("cellcolor"). That works fine for my default.asp.
Now I click on a topic and it links to topic.asp where the values of
the query string are gone.
Which approach would you recommend? How can I store the values?
The general i... more >>
|