_vti_cnf
Why does ASP create a directory named _vti_cnf containing all the files of
an application for each application? Can deleting those directories
permanently cause some problems?
Thanks,
Arpan Tag: Arabic / Russian text in asp/ie built-in editor/access Tag: 275246
Including Static Content
I'm using the Server.Execute method to include a static page inside a
dynamic database call. This static page is not a valid HTML page (i.e.
lacking <body>,<head>, etc. elements), but I'm pulling it into the dynamic
page just to give the content an upgrade in presentation, including images.
The problem is that there is no way to have relative URLs in the content
page, so all the image src's are wrong. Is there a better way to include
static content like this, or a way to alter the contents on the static page
prior to running Server.Execute (I could parse the file via the
FileSystemObject, but I'm hoping not to do that)?
Thanks, j Tag: Arabic / Russian text in asp/ie built-in editor/access Tag: 275241
date formatting
i have a date in the following format: 12/1/2003
how do i reference just the 'day' portion of this date - in other words '1'
if the date was 12/10/2003, then i would just want the '10'
tia
jt Tag: Arabic / Russian text in asp/ie built-in editor/access Tag: 275234
FSO FileExists Method
I would like to know if I'm correct in the way I coded this:
Function CheckFileExists(sFileName)
If (fs.FileExists(sFileName)) Then
CheckFileExists = True
Else
CheckFileExists = False
End If
End Function
If CheckFileExists(Whichfolder & flindex & ".tif") Then
'java code to display the tif inline with the browser
else
'code stating there is no file to display
End if
I just want to make sure that (Whichfolder & flindex & ".tif") which is an
actual file path is what is being passed to the Function CheckFileExists as
sFileName
Thanks from this ASP Newbie Tag: Arabic / Russian text in asp/ie built-in editor/access Tag: 275232
Using the same page for viewing, editing and adding records
Hi All
I am not an ASP expert but do some coding in ASP. I am lookng to learn how
to code a form/page which can be used to view, create or edit/update a
record.
I have simple 3 field table but I don't to write three seperate pages ASP
pages to view edit or create new records.
I have seen in the past others coders pass the querystring value
Action?=Create etc and then using the logic to work their way around that
but if someone has an example I would apprecate the code.
thanks Tag: Arabic / Russian text in asp/ie built-in editor/access Tag: 275224
Select multiple items from a dropdown
I want an ASP page with a dropdown and a simple button. Every time the user
chooses an item from the dropdown and clicks on the button i want that value
written below in list and allow user to select more.
Also how can these choices be saved somehow so tha when the user goes to the
next page the choices he made can be written to the database.
For example
The choices in the dropdown may be
London
Dublin
Paris
New York
When the user chooses Dublin I want ti written below the dropdown. Then when
he chooses New York. I want it added to london. so that it displays
Dublin
London
Then when he click next button these two choices are taken over to the next
page where an insert query can be used to insert them into the db. Tag: Arabic / Russian text in asp/ie built-in editor/access Tag: 275222
Access hidden field
Hi group, I'm trying to write to a hidden field on a form from a page that
is loaded as the "src" in an iframe. I keep getting "Access denied" in the
javascript of childform.asp...I have tried many variation in trying to
reference the hidden field on the parent form with no success...can anyone
suggest the syntax?
Thanks much
here's sample code:
parentform.asp:
<html>
.
<form name=frm id =frm>
<type=hidden id=hiddenfield name=hiddenfield>
<iframe name="child" id="child" src="childform.asp" width="100%"
height="88%" scrolling="auto" align="left"></iframe>
</form>
.
</html>
childform.asp
<html>
.
<script language="javascript">
top.document.hiddenfield.value = someValue;
</script>
.
</html> Tag: Arabic / Russian text in asp/ie built-in editor/access Tag: 275219
drop down population help needed - thanks
In my data base I have a list of componet types e.g. type A - I have 8 off
- type B I have 12 off etc.
I'm using
Set objRS = objDC.Execute("Select DISTINCT Component_Type FROM
Parts_Table")
to populate a drop down but would like to use several drop downs
restricting the contents of each drop down to the records pertaining to one
particular componet type eg a drop down only for type A, only for type B
etc.
can this be done if so how?
The other thing I like to do is add the price field to the drop down list
(two fields in one drop down) is this done just by seperating the fields by
a ","? Tag: Arabic / Russian text in asp/ie built-in editor/access Tag: 275216
How can I call a function by click one button
Hello,
By VBScript ASP
How can I call a function by click one button?
May you help me Tag: Arabic / Russian text in asp/ie built-in editor/access Tag: 275212
How can I get the checkbox's value
Hello,
I made this code:
...
<%
dim xyz
xyz = Request.Form("checkbox1")
%>
<HTML>
<HEAD>
</HEAD>
<BODY>
<FORM action="Forwarding.asp" method=post id=form1 name=form1>
<INPUT type="checkbox" id="checkbox1" name="checkbox1"><BR>
...
but,
xyz can't get the "checkbox1"'s value.
Can you help me Tag: Arabic / Russian text in asp/ie built-in editor/access Tag: 275209
Switching Between HTTP and HTTPS
Hi
I wish to have a web site that has most of the pages as normal HTTP pages
but has some areas that use HTTPS. I want to have it that if a user selects
a link to a HTTPS page that they go there an there Session Information is
kept. I also wish to have the pages switch automatically to HTTPS if a
visitor types the URL without the HTTPS. So my questions are:
1) How to redirect to a Secure Page without losing Session Info?
2) How to test if page is accessed by HTTPS, and if not switch to HTTPS
quickly?
I think something like this code is what I want but how do I do it.
<%
if not "HTTPS" then
response.redirect(https://mysite.com/securepage.asp)
end if
%>
Thanks for the help.
Kenneth Keeley Tag: Arabic / Russian text in asp/ie built-in editor/access Tag: 275207
Can ASP create OLE objects?
Hi,
I've a client-server application written in Access. Some of the codings make
use of OLE so that the Access application creates a Word document on the fly
and fit in relevant values.
I'm examining if using ASP pages can do similar function (to create and
manipulate OLE objects)?
Anybody knows if ASP can do?
If ASP can't, how about ASP.NET?
thanks in advance,
jackling. Tag: Arabic / Russian text in asp/ie built-in editor/access Tag: 275203
Problem with %
Hello!
I have a SELECT comand passed trhough ASP like This:
SELECT PK_A_MSGID, C3_MSG, C3_MSGPT, C3_MSGEN FROM S_MSGS WHERE C3_MSG LIKE
""%Efectuar%"" ORDER BY PK_A_MSGID
and when i pass it it gives me:
SELECT PK_A_MSGID, C3_MSG, C3_MSGPT, C3_MSGEN FROM S_MSGS WHERE C3_MSG LIKE
"ïectuar" ORDER BY PK_A_MSGID
Why? how can i correct this?
Thanks Tag: Arabic / Russian text in asp/ie built-in editor/access Tag: 275197
Checking status of an array
Good day folks.
Within an ASP I'm working on I need to check whether an array is empty or
not.
Code:
Dim somearray()
'other code: array might have been populated, maybe not
if somearray() <> "" Then 'this is the line that hangs debugging using VID
'code if array is populated
else
'code if array is empty
end if
My problem is coming up when I debug(Using VID) I get this error:
An exception of type 'Microsoft VBScript runtime error: Subscript out of
range' was not handled.
But when I actually launch the page I don't get any errors. Of course if I
put in On Error Resume Next, and I run in debug mode I don't get any errors
through VID and I still obviously I don't get any errors launching the page.
Thanks for any insight from this ASP Newbie Tag: Arabic / Russian text in asp/ie built-in editor/access Tag: 275189
Scalability
What does the term "scalability of an application" mean?
Thanks,
Arpan Tag: Arabic / Russian text in asp/ie built-in editor/access Tag: 275183
E-mail formatting?
When e-mailing invoices and estimates, is there any way to customize the
presentation of the e-mail beyond changing the message? Specifically,
I'd like to add some html so the receiver can click on a link to pay
online. As it is, I can type the URL in the message, but it appears only
as text to the reader, not a hotlink, which, unfortunately, is quite
vexing to some of my clients.
It would also be nice to add a company logo, etc. to the email body.
On this same subject, is it possible to send the entire invoice/estimate
as HTML rather than an attached PDF? I haven't seen these options
anywhere.
Thanks. Tag: Arabic / Russian text in asp/ie built-in editor/access Tag: 275180
iframe and session
Hi group, I've inherited some code which has a menu page
with an embedded iframe which displays the page
corresponding to menu clicks. i was attempting to pass a
session variable into the iframe page. sadly, it seems
that the page displayed in the iframe and the "hosting"
menu page are different session. i discovered this by
placing response.write(session.sessionid) in both pages.
why is this? is there a way to make the iframe page part
of the original session?
thanks for any thoughts... Tag: Arabic / Russian text in asp/ie built-in editor/access Tag: 275170
ASP to CSV
Has anyone any experience of outputting data (field name, field value) to a
.csv file so I can email it off (for importing into a sperate database
system)?
Are there any pitfulls I should look out for?
Thanks
Jon Tag: Arabic / Russian text in asp/ie built-in editor/access Tag: 275163
button passed to URL
I've never seen this before. I am new to querystrings, as just using hidden
fields and the POST method has been more than adequate for me until
recently. But I started using the GET method, and I noticed that when I
clicked the submit button, it gave me this for a URL:
http://localhost/DisplayTickets.ASP?selectTSE=271&Status=2&btnsearchTSE.x=28&btnsearchTSE.y=11
The thing is, selectTSE and Status are the two <SELECT> boxes, so I
understand them being there. But why is is telling me the x and y
coordinates of where I clicked the button to submit the form?
I should add that the submit button is an image, not a regular button.
This doesn't hurt anything, just wondering why it's there. And maybe it will
hurt something later on; I don't know enough to say. Tag: Arabic / Russian text in asp/ie built-in editor/access Tag: 275161
Running iisreset
Hello all,
I am trying to perform a reboot on my server from an asp
page. I have a link on my page that, when clicked on,
redirects to a .stm page that displays a message about
the server rebooting and executes the following command:
<!-- #exec CMD="cmd.exe /C iisreset /REBOOT" -->. When I
click on the link the message is displayed but the server
does not reboot. I know that in order for the #exec
command to work you have to add a key in the registry,
and disable anonymous access to the folder containing
the .stm page. I have done both of these and yet I still
can't get the server to reboot. Can anyone help me with
this, or know another way that I can browse to an asp
page on the server and perform a reboot? Tag: Arabic / Russian text in asp/ie built-in editor/access Tag: 275155
Can ASP find all images in a file?
Hello,
Using ASP, can all the images in a file be listed, so I can then get ASP to
determine the combined size of these files to give an estimate of load time?
Thanks for any help
Gram. Tag: Arabic / Russian text in asp/ie built-in editor/access Tag: 275151
Can I Handle Error 404 JUST Using ASP ?
understand that through IIS you can implement custom error messages,
but since we are in hosted environment, we need to implement custom
error pages using ASP.
Is this possible and could someone point us in the right direction on
how to do this ?
Thanks
Bud Tag: Arabic / Russian text in asp/ie built-in editor/access Tag: 275147
ASP and Excel
How can I use ASP to read data in an Excel file and than write it in the
format of XML?
Thanks!
--
Jessie Tag: Arabic / Russian text in asp/ie built-in editor/access Tag: 275144
session vars en frames: contents of var dropped in new window???
Hello,
Currently developping a site, where I use some session variables.
The site is located at my home computer.
Because I have a dynamic IP adress, I use no-ip (www.no-ip.org) to have my
own custom domain name (pvo.no-ip.org)
My ISP blocks port 80, so website runs at port 4040
The service no-ip offers "Mask / Cloaking Options": every request to my
domain is "wrapped in a frame", so end user can only see one URL in browser.
In example a request to
http://plestest.no-ip.info/milan/test/session_array/create_array.asp
gives a page to the client like:
<FRAMESET ROWS="100%,*" FRAMEBORDER=NO FRAMESPACING=0 BORDER=0>
<FRAME
SRC="http://pvo.no-ip.org:4040/milan/test/session_array/create_array.asp"
NAME="redir_frame">
</FRAMESET>
So the actually page is "wrapped" in the frame.
This is automatically done by the no-ip service.
So far so good.
However,
both links:
URL1 http://plesberk.no-ip.info/milan/test/session_array/create_array.asp
(points to pvo.no-ip.org, NO mask)
URL2 http://plestest.no-ip.info/milan/test/session_array/create_array.asp
(points to pvo.no-ip.org, MASK enabled)
point to the same file on my server
As you can see, the first link shows the full URL (to domain pvo.no-ip.org),
the second drops the port number and leaves the URL to plestest.no-ip.info
(and is more user-friendly)
The file actually creates an array (list of files of current direcotry),
stores it in variable "aFiles" and stores it also in session variable
"aFiles"
The debugging information shows that aFiles is an array, and lists also the
contents of the array
From this page, I want to open a new window, where I can use the contents of
session variable "aFiles".
This is done by the link on the top of the page.
The problem now is that everything works fine for the first URL1 (no port
mask or frame use), but the session var "aFiles" has NO contents with the
link used on second URL2.
I think this is caused by the fact that following the hyperlink, causes the
frame to be left and the link points to the real URL of file (thus WITH port
number, and NO mask)
Is there a way to avoid this?
I noticed that
-opening page URL2
http://plestest.no-ip.info/milan/test/session_array/create_array.asp
(window 1)
-follow "link in new window" (window 2 opens)
-refresh original page (window 1)
-follow "link in new window" again (window 2 refreshes)
-----> the session var "aFiles" HAS values now
very weird behaviour in my opinion...
Has anybody an idea how session vars deal with frames or URL's ?
tia
bartp
--
HyperART
Paul Van Ostaijenlaan 4
3001 Heverlee Tag: Arabic / Russian text in asp/ie built-in editor/access Tag: 275143
Format time
Hello
I'm trying to us the formatdatetime function to format US-time and it doesnt
give me the seconds
how to do that?
2002-02-02 06:00 AM gives 6:00 AM when I want 6:00:00 AM
/Lasse Tag: Arabic / Russian text in asp/ie built-in editor/access Tag: 275137
Regexp: Matching unquoted attributes
I'm attempting to clean up HTML in a database by quoting all unquoted
attributes.
So far, I have this:
oRegExp.Pattern = "<([^>]+)=([^>""]+)>"
sHtml = oRegExp.Replace(sHtml, "<$1=""$2"">")
which I can use to replace single attributes:
<p class=foo> becomes <p class="foo">
Now I'm trying to deal with multiple attributes and am getting myself
into a pickle converting:
<p class=foo name=bar> into <p class="foo" name="bar">
The best I've come up with so far is:
oRegExp.Pattern = "<(\w*\s)(([^=>]+=)([^>""\s]+))+>"
sHtml = oRegExp.Replace(sHtml, "<$1 $3""$4"">")
which obviously isn't going to work! :)
How can I match multiple unquoted attributes and replace them with quotes?
Thanks
Drew Tag: Arabic / Russian text in asp/ie built-in editor/access Tag: 275132
Syntax error in Query Expression,
Hi everyone
I have a page on my site in which i wish to display links to brochures, and
i have stored an index of these links in my database.
however when i pass from the master page,
http://www.tripakltd.com/brochures.asp to the detail page, by selecting a
item from the list/menu and submitting, i cannot seem to be able to carry a
variable as a value, i.e i am submitting CategoryID as a variable so i want
it to equal % but i only seem to be able to get it to work if a specify a
figure, such as number 1, and then that isnt very useful because for every
product i select on the drop down list/menu i'll only receive the brochures
associated with number 1.
Please could someone assist me with fixing this?
Many thanks
Raphael Tag: Arabic / Russian text in asp/ie built-in editor/access Tag: 275131
BrowserType
Hi all!
I'm having problems with instanciating MSWC.BrowserType in
my VB6 component, i do like this.
Declaration:
Private objBC As BrowserType.BrowserCap
In my public sub:
Set objBC = Server.CreateObject("MSWC.BrowserType")
bcBrowser = objBC.browser
Generates error:
006~ASP 0177~Server.CreateObject Failed~There is no MTS
object context
Works fine when used in an .asp page but not in my COM,
why?
And how should i do it? Tag: Arabic / Russian text in asp/ie built-in editor/access Tag: 275130