 |
 |
Index ‹ asp
|
- Previous
- 1
- Javascript Access Denied Error.This problem involves client-side code. ASP is server-side technology, so
your question is off-topic. You need to ask it on a newsgroup that is
focused on client-side code, such as m.p.scripting.jscript. There are
others: look for groups with dhtml in their names.
Bob Barrows
Sandeep Singh wrote:
> Hi All,
>
> I am having Access Denied error when i am trying to access
> a function written in Parent frame.
>
> My application is runing on ASP, XML and Javascript. When
> i try and access something from iframe, it calls a
> function written in Parent frame to store the selected
> value which is used when the form is submitted for
> processing.
>
> Sometimes calling a function from Parent frame gives me
> access denied or permission denied error. There are cases
> when i leave website inactive for 10 min, and try and call
> parent function it gives error.
>
> Doesn;t anyone know about what could be the reason behind
> this strange behaviour.
>
> Thanks in advance.
>
> Sandeep.
- 1
- return from ASP.NET to ASPHi,
I updated to aspx last three month,after developing serveral
applications,Idecided to downgraded to asp, following is my reasons:
1.in ASPX,the page format is hard to control,in ASP u can change every html
as u like ,but in aspx, a aspx control decide the page format,and its hard
to change the format.
2.ASPX is said to be faster that asp, but it is based on too-often
communication back to the server,for example,u click a radio a button,there
is new page request, but in reality,such a communication is
bandwidth-consuming and time-consuming. the user only need to submit the
form, and the exchange between IE and Server was minimazed.
the Speed of ASPX is not useful for most sites, for bigger sites, the speed
increase is singnificant,but for small sites with less traffic, the speed of
ASP is quite enough.
3.ASPX is based on Object Orinted Programming, but in most small sites,
Procedure orinted programming is used, we never build objects, and POP is
more efficient.ASPX is for three-tiered structure with a single layer of
business logic component, but in reality, most of us used two-tier
structure,that is Presetation layer and Datalayer, we can layout the page
and change the database in a single page, quite effienct too.
how about ur comment?
Nakhi
Lijiang,China
- 1
- Reading POP3 and writing to SQL server+uploading attachementsShalom,
I am looking for a system that will:
1. Read a message from a POP3 mailbox
2. Parse the message into its parts
3. Create a record in an SQL server table with selected fields of the
message
4. Upload the attachements to the filesystem
5. Write the path of the attachements to the SQL server record
For security reasons, I want the process to be initiated and approved
by a user.
Since I run my website on a shared server, I cannot install any
components.
If anyone knows of such a system, or something close to it, I would be
greatful for getting a pointer.
Thanks,
Hanan Cohen
***Love and Peace***
- 1
- 3
- error '800a0005'I am getting the following error:
Session(strEftEffDt)=
ASPUtilities error '800a0005'
Invalid procedure call or argument
/sec/PrintAllPDFs.asp, line 154
Anyone have any ideas?
I am running IIS 5.0
Thanks,
JT
- 4
- Request.BinaryRead, error 'ASP 0101 : 80004005'Hi,
With IIS 6 - ASP :
I try to upload a file of 125,000,000 bytes.
To do it, I use this code :
Request.BinaryRead(Request.TotalBytes)
I get this error :
Request object error 'ASP 0101 : 80004005'
Unexpected error
/test/test.asp, line 20
The function returned |.
I tried with multiple calls to Request.BinaryRead but with a lower amount of
bytes.
It Works BUT .... if you call Request.BinaryRead with a value lower than
67125217 it works, any values equal or above, I get the error described
before.
Is it a BUG ???
- 4
- Hide an external script addressHi,
I have a ASP site that needs to call a Perl CGI script with some
parameters.
Currently, the Perl script is called directly by a <form> and the
script retreive the form's parameter.
My problem is that I want to restrict access to the Perl script ( I
don't want anybody to check the source HTML and call the Perl script
directly ).
Up to now, I haven't found any way to put security constraint on the
Perl script. What I thought is that if nobody knows the address, then
it should be fine.
So is there a way to call that script on the server side, and then send
the output of it to the client?
Unfortunately, the Response.Redirect displays the address of Perl
script in the address bar :(
Thanks for any help
Twig
- 4
- Event ID 5Hello Everyone,
I have been looking for a solution on the web about the
error we got in the following:
Script Engine Exception. A ScriptEngine threw
expection 'C0000005' in 'IActiveScript::Close()'
from 'CActiveScriptEngine::FinalRelease()'..
It looks like that many people have the same problem and
no one seems to know why it happened and how to solve it.
So far, I cannot get any useful and specific
pointers/solutions on the web, not even on the Microsoft
site. If someone has the same error and is able to fix
it, please provide solution.
We are running Win 2000 server with SP4 and IIS 5.0. Our
server is loaded with all the updated patches from MS. We
are also using COM+ with IIS.
Thank you very much and any ideas/suggestions are highly
appreciated.
Thank you,
Sandy
- 7
- how to show/know the key name and value ?Hi,
I am writting a ASP which will accept lots of data from user interface page.
Is there a way that show me the each field or key name and value?
For example;
From the user interface page, the code is like this
<Form name="my_form" action="my_action.asp" .....>
... ...
<input type="Text" name="Text1" value="123">
<input type="Text" name="Text2" value="aaa">
<input type="Text" name="Text3" value="bbbb">
... ....
</Form>
There are maybe many many data fields to be shown on the page
Then I want "my_action.asp" can show my the data like this way:
Text1='123'
Text2='aaa'
Text3='bbbbb'
I tried to use Response.Write request.forms() .., but it only shows me the
value, how to show the key name?
Kindly please tell me how to code it.
Thanks
Michael
- 10
- Creating an ASPCan someone tell me what's involved in creating an ASP? I
need to create a web page where users can check their past
history of the account.
Thanks
- 14
- affiliate scriptsCan anyone recommend an affiliate script they like and use?
I would like to offer participants a percentage of sales they generate.
Either by themselves, or through customers they recommend. I doubt I want to
get involved with paying for clicks. I think they could run that up on me.
thanks
- 14
- Generate email when I click button?"majahops via WebmasterKB.com" <u37541@uwe> wrote in message
news:79a3686c391d5@uwe...
> ASP.NET. Why, is this the wrong place for that?
[snip]
Yes, this is a Classic ASP newsgroup.
The code I provided you before was for Classic ASP
not ASP.NET; you'll likely need something else.
Perhaps you should try this newsgroup:
microsoft.public.dotnet.framework.aspnet
- 16
- Response. and Request.Anyone know if there is a complete list available of the elements that are
available for Response. and Request.?
i.e. Response.Write ""
Request.ServerVariables("HTTP_REFERER")
It's basically so I can add them to an HTML editor I am updating (I checked
aspfaq.com and couldn't find either of them)
Regards
Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk
Keeping it FREE!
Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
- 16
- Searching with IIS' indexing service?Hey,
I'm fussing around with a first attempt at using IIS6's indexing service
for a web site search page. The trouble is, my site, while not using a
database, is largely dynamic, with much of the content filled in with
variables and includes, and index server only seems to index the actual
code of each file, and not the contents as seen by web viewers. So if I
have my default.asp file dynamically cobbled together by several other
files, default.asp doesn't register in the index with its served content
and so doesn't appear in the search results.
Just wondering if indexing service can be used to search pages within a
site as they appear to the browsing public (like search engines do), or
if it just wasn't made to do that and I should try something else?
Thanks.
- 16
- Another DateDiff() problem to add to the listI did a group search and found hundreds of cases of problems with
DateDiff(). I read through several dozen but they didn not apply to
my situation. Not having the time to read through all of them I'm
hoping that I'll get an answer here.
The software scenario. IIS 5.0 running on Windows Server 2000. The
application is a campsite reservation system. The application starts
with a simple HTML form that people enter an arrival date and a
departure date. These two values are passed to the next page where I
want to return the sites that are open between those two dates.
Simple enough and DateDiff("d", ArrivalDate, DepartureDate) should
return what I want.
But it doesn't.
If I enter May 2nd, 2007 into the form (i.e. 5/2/2007) as the arrival
date and May 19th, 2007 (5/19/2007) as the departure date I don't get
17 days as the returned value. I get a date as if I'd entered
February 5th to May 19th and 103 days is the result returned.
I've double-checked the regional date settings on the server and they
are set for US (m/d/yyyy).
Here's a snippet of the code that I'm using:
[code]
dim ArrivalDate, DepartureDate, NumNights
ArrivalDate = request.form("txtArrivalDate")
DepartureDate = request.form("txtDepartureDate")
NumNights = Datediff("d", cdate(ArrivalDate),cdate(DepartureDate))
[/code]
Major PITA going on here.
|
| Author |
Message |
Andie

|
Posted: 2003-8-18 21:52:00 |
Top |
asp, redirect
Hello.
How do I redirect a page back to the orginal sending page.
I have a script that checks to see if a user is logged in and if he.she
isn't then it redirects them to a loging page, one login has been checked
and process, how do I redirect them to the original page.
--
To reply, remove "TRASH" from email address
Thanks,
Andie
|
| |
|
| |
 |
Adrian Forbes - MVP

|
Posted: 2003-8-18 22:10:00 |
Top |
asp >> redirect
On your page that checks the logon;
if NotLoggedOn
Response.Redirect "logon.asp?return=" &
Server.URLEncode(Request.ServerVariables ("SCRIPT_NAME"))
end if
In logon.asp;
...code to logon the user...
response.redirect Request("return")
That is the general idea anyway.
>-----Original Message-----
>Hello.
>
>How do I redirect a page back to the orginal sending page.
>
>I have a script that checks to see if a user is logged in
and if he.she
>isn't then it redirects them to a loging page, one login
has been checked
>and process, how do I redirect them to the original page.
>
>--
>To reply, remove "TRASH" from email address
>
>Thanks,
>
>Andie
>
>
>.
>
|
| |
|
| |
 |
Randy Rahbar

|
Posted: 2003-8-18 22:13:00 |
Top |
asp >> redirect
> I have a script that checks to see if a user is logged in and if he.she
> isn't then it redirects them to a loging page, one login has been checked
> and process, how do I redirect them to the original page.
You could append the name of the page onto the redirect as a querystring.
Use request.servervariables("script_name") to get the name of the page
current page. It'd work something like this...
If UserNotLoggedOn
response.redirect "login.asp?r=" &
request.servervariables("script_name")
End If
|
| |
|
| |
 |
Ken Cox [Microsoft MVP]

|
Posted: 2003-9-6 10:38:00 |
Top |
asp >> redirect
Not exactly sure what you're after, but are you looking for server.transfer?
Or perhaps this?
http://www.aspalliance.com/kenc/passval.aspx
Ken
MVP [ASP.NET]
--
Microsoft MVPs have a question for *you*: Are you patched against the Worm?
http://www.microsoft.com/security/security_bulletins/ms03-026.asp
"mozart" <email***@***.com> wrote in message
news:uWtFzV%email***@***.com...
It has some form to call an one page without being for response.redirect?
|
| |
|
| |
 |
Bob Shelton

|
Posted: 2003-9-8 20:41:00 |
Top |
asp >> redirect
If I want to redirect a request to download a file that no exists to a web
page, what are your suggestions?
Bob Shelton
|
| |
|
| |
 |
Steve Easton

|
Posted: 2003-9-8 21:00:00 |
Top |
asp >> redirect
If your host allows it, create a custom 404 or error page.
If the file is not found the custom page will appear.
hth
--
95isalive
This site is best viewed..................
..............................with a computer
"Bob Shelton" <email***@***.com> wrote in message
news:email***@***.com...
If I want to redirect a request to download a file that no exists to a web
page, what are your suggestions?
Bob Shelton
|
| |
|
| |
 |
Bob Shelton

|
Posted: 2003-9-8 21:38:00 |
Top |
asp >> redirect
Thanks.
"Steve Easton" <email***@***.com> wrote in message
news:email***@***.com...
> If your host allows it, create a custom 404 or error page.
> If the file is not found the custom page will appear.
>
> hth
>
>
> --
> 95isalive
> This site is best viewed..................
> ..............................with a computer
> "Bob Shelton" <email***@***.com> wrote in message
> news:email***@***.com...
> If I want to redirect a request to download a file that no exists to a web
> page, what are your suggestions?
>
> Bob Shelton
>
>
>
|
| |
|
| |
 |
Karen Wise

|
Posted: 2003-10-10 22:18:00 |
Top |
asp >> redirect
I am changing servers. How do I redirect to the new site
with minimum inconvenience to my visitors?
Thanks,
Karen
|
| |
|
| |
 |
Steve Easton

|
Posted: 2003-10-10 22:21:00 |
Top |
asp >> redirect
By changing "servers," I assume you mean changing "hosts"
Your new host should give you new Domain Name Servers
to assign your domain too. After your domain has propagated
through the new servers, visitors will automatically be at
your "new" location. ( usually takes 48 hours to propagate )
hth
--
95isalive
This site is best viewed..................
..............................with a computer
"Karen Wise" <email***@***.com> wrote in message
news:002001c38f39$6e429130$email***@***.com...
I am changing servers. How do I redirect to the new site
with minimum inconvenience to my visitors?
Thanks,
Karen
|
| |
|
| |
 |
Kevin Spencer

|
Posted: 2003-10-10 22:40:00 |
Top |
asp >> redirect
Hi Karen,
Assuming that you old domain is still there, you can add a META REFRESH tag
to each page that they might browse to, and replace the content in the page
with a message indicating that the site has moved. The META REFRESH tag goes
in the <head> section of the page, and looks like this:
<META HTTP-EQUIV="refresh"
content="5;URL=http://www.yoursite.com/newpage.htm">
The "content" attribute indicates (1) the number of seconds to delay, and
(2) the URL to redirect to. So, you can control how long your message will
be displayed.
A good practice is to include in the message on the page a hyperlink to the
URL being redirected to, in case their browser doesn't support redirects
(extremely rare, but remotely possible). A typical message might read
something like:
This page (or site if you prefer using the same URL and message in all
pages) has moved to (hyperlink). Please update your bookmarks. If your
browser doesn't support redirects, please click here to go to (hyperlink).
--
HTH,
Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.
"Karen Wise" <email***@***.com> wrote in message
news:002001c38f39$6e429130$email***@***.com...
> I am changing servers. How do I redirect to the new site
> with minimum inconvenience to my visitors?
>
> Thanks,
>
> Karen
|
| |
|
| |
 |
chris leeds

|
Posted: 2003-10-11 1:09:00 |
Top |
asp >> redirect
I've wondered, for search engine and people with JavaScript turned off, if
it wouldn't be better to use:
response.redirect
or
server.transfer
on the default page in the root folder. Of course this would require the
ability to have .asp pages on the server but wouldn't it be better?
"Kevin Spencer" <email***@***.com> wrote in message
news:email***@***.com...
> Hi Karen,
>
> Assuming that you old domain is still there, you can add a META REFRESH
tag
> to each page that they might browse to, and replace the content in the
page
> with a message indicating that the site has moved. The META REFRESH tag
goes
> in the <head> section of the page, and looks like this:
>
> <META HTTP-EQUIV="refresh"
> content="5;URL=http://www.yoursite.com/newpage.htm">
>
> The "content" attribute indicates (1) the number of seconds to delay, and
> (2) the URL to redirect to. So, you can control how long your message will
> be displayed.
>
> A good practice is to include in the message on the page a hyperlink to
the
> URL being redirected to, in case their browser doesn't support redirects
> (extremely rare, but remotely possible). A typical message might read
> something like:
>
> This page (or site if you prefer using the same URL and message in all
> pages) has moved to (hyperlink). Please update your bookmarks. If your
> browser doesn't support redirects, please click here to go to (hyperlink).
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> .Net Developer
> http://www.takempis.com
> Big Things are made up of
> Lots of Little Things.
>
> "Karen Wise" <email***@***.com> wrote in message
> news:002001c38f39$6e429130$email***@***.com...
> > I am changing servers. How do I redirect to the new site
> > with minimum inconvenience to my visitors?
> >
> > Thanks,
> >
> > Karen
>
>
|
| |
|
| |
 |
Jim Cheshire

|
Posted: 2003-10-11 1:24:00 |
Top |
asp >> redirect
Response.Redirect is going to essentially do the same thing as a meta
redirect. (Incidentally, a META refresh does not require any scripting.)
Server.Transfer won't actually work in this scenario because the URL is
absolute. A Server.Transfer is also going to have its own drawbacks.
Because a Server.Transfer causes the server to serve page A when page B is
requested, the browser has no knowledge of the new page's URL and history
won't be appropriately updated, etc.
META refresh is probably the best bet.
--
Jim Cheshire
Jimco Add-ins
http://www.jimcoaddins.com
===================================
Co-author of Special Edition
Using Microsoft FrontPage 2003
Order it today!
http://sefp2003.frontpagelink.com
"chris leeds" <email***@***.com> wrote in message
news:%23%email***@***.com...
> I've wondered, for search engine and people with JavaScript turned off, if
> it wouldn't be better to use:
> response.redirect
> or
> server.transfer
> on the default page in the root folder. Of course this would require the
> ability to have .asp pages on the server but wouldn't it be better?
>
> "Kevin Spencer" <email***@***.com> wrote in message
> news:email***@***.com...
> > Hi Karen,
> >
> > Assuming that you old domain is still there, you can add a META REFRESH
> tag
> > to each page that they might browse to, and replace the content in the
> page
> > with a message indicating that the site has moved. The META REFRESH tag
> goes
> > in the <head> section of the page, and looks like this:
> >
> > <META HTTP-EQUIV="refresh"
> > content="5;URL=http://www.yoursite.com/newpage.htm">
> >
> > The "content" attribute indicates (1) the number of seconds to delay,
and
> > (2) the URL to redirect to. So, you can control how long your message
will
> > be displayed.
> >
> > A good practice is to include in the message on the page a hyperlink to
> the
> > URL being redirected to, in case their browser doesn't support redirects
> > (extremely rare, but remotely possible). A typical message might read
> > something like:
> >
> > This page (or site if you prefer using the same URL and message in all
> > pages) has moved to (hyperlink). Please update your bookmarks. If your
> > browser doesn't support redirects, please click here to go to
(hyperlink).
> >
> > --
> > HTH,
> >
> > Kevin Spencer
> > Microsoft MVP
> > .Net Developer
> > http://www.takempis.com
> > Big Things are made up of
> > Lots of Little Things.
> >
> > "Karen Wise" <email***@***.com> wrote in message
> > news:002001c38f39$6e429130$email***@***.com...
> > > I am changing servers. How do I redirect to the new site
> > > with minimum inconvenience to my visitors?
> > >
> > > Thanks,
> > >
> > > Karen
> >
> >
>
>
|
| |
|
| |
 |
earl

|
Posted: 2003-10-22 18:54:00 |
Top |
asp >> redirect
How can I redirect a user using html ?
|
| |
|
| |
 |
William Tasso

|
Posted: 2003-10-22 19:53:00 |
Top |
asp >> redirect
earl wrote:
> How can I redirect a user using html ?
<p>Please try our <a href="/interesting.html">interesting page</a>.</p>
--
William Tasso - http://WilliamTasso.com
|
| |
|
| |
 |
dante

|
Posted: 2003-10-22 20:39:00 |
Top |
asp >> redirect
<html>
<head>
<title>Site moved...</title>
<meta http-equiv="refresh" content="5;URL=http://YOUR_NEW_SITE_ADDRESS">
</head>
<body>
YOUR_OLD_SITE_ADDRESS has moved to YOUR_NEW_SITE_ADDRESS
If your browser does not automatically redirect you in 5 seconds,
click <a href="http://YOUR_NEW_SITE_ADDRESS">here</a> to go to the new site.
</body>
</html>
Regards
"earl" <email***@***.com> wrote in message news:3f966275$email***@***.com...
> How can I redirect a user using html ?
>
>
>
>
|
| |
|
| |
 |
rf

|
Posted: 2003-10-22 21:00:00 |
Top |
asp >> redirect
"earl" <email***@***.com> wrote in message news:3f966275$email***@***.com...
> How can I redirect a user using html ?
Hmmm. This question is asked here at least every couple of days. Did you
look through the history? It is also covered quite extensivly in the FAQ's
published here and elsewhere.
Google,
http://www.google.com/search?q=redirect+a+web+page
gives some eight hundred thousand hits on this matter.
Google groups (the archive of all newsgroups)
http://groups.google.com.au/groups?q=redirect+a+web+page
while giving not as many hits (only fifty thousand or so) is probably
better.
The short answer is you can't. HTML does not "do" anything.
The long answer is that you can't. What happens client side (ie HTML) is
beyond your control.
Your solution lies server side.
http://allmyfaqs.com/ probably has some pointers for you as well.
Cheers
Richard.
|
| |
|
| |
 |
gmcclary

|
Posted: 2003-10-22 23:28:00 |
Top |
asp >> redirect
"dante" <email***@***.com> wrote in message
news:0Uulb.13363$email***@***.com...
> <html>
> <head>
> <title>Site moved...</title>
>
> <meta http-equiv="refresh" content="5;URL=http://YOUR_NEW_SITE_ADDRESS">
>
> </head>
> <body>
>
> YOUR_OLD_SITE_ADDRESS has moved to YOUR_NEW_SITE_ADDRESS
>
> If your browser does not automatically redirect you in 5 seconds,
> click <a href="http://YOUR_NEW_SITE_ADDRESS">here</a> to go to the new
site.
>
> </body>
> </html>
>
> Regards
>
>
> "earl" <email***@***.com> wrote in message news:3f966275$email***@***.com...
> > How can I redirect a user using html ?
> >
> >
> >
> >
>
This is a VERY bad idea.... for two reasons.
First: what if your visiter does not want to go there? You send them where
they do not want to go, then they have to use their back button.... the back
button returns them to your 're-direct page' and they have five seconds
before you send them again to where they don't want to go....
result, you have an irritated visitor who kills their browser to get out of
your 're-direct' trap and swears on their mother's grave they will never
visit your site again.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Second: see above.
Best to tell them the reason you want them to go there....
|
| |
|
| |
 |
joao66br

|
Posted: 2003-10-25 22:54:00 |
Top |
asp >> redirect
Hi there people,
I'm looking for a function that will redirect a browser to another page
after a PHP scrip has run. I tried serching for it in the doc but found
nothing. It shall be similar to Tcl's "ns_returnredirect".
Thanx.
Joao Penna Andrade
Undergraduate, Mechanical Engineering
UNICAMP, Brazil
|
| |
|
| |
 |
dan.liu

|
Posted: 2003-10-28 4:26:00 |
Top |
asp >> redirect
Hi all,
Has anyone used 'Module mod_rewrite URL Rewriting Engine'?
I need to do a redirect from
http://url1/cgi-bin/mapserv?&map=/dir1/county.map
to
http://url2/cgi-bin/mapserv?&map=/dir2/county.map
But it is not working. Does somebody know why?
Thanks in Advance.
Dan
|
| |
|
| |
 |
alain.dhaene

|
Posted: 2003-10-30 3:07:00 |
Top |
asp >> redirect
Hi,
Is there in php something as a redirect to another page like in asp?
e.g
if(choice==1) response.redirect("page.php");
response.redirect("page2.php");
I have search in the manuel, but the only thing I find is something like
header("Location: registratie.html");
But I guess it's wrong because header information is already send.
Alain
|
| |
|
| |
 |
| |
 |
Index ‹ asp |
- Next
- 1
- Dateadd function not adding up...Please see: http://www.showorders.com/test3.asp
The code generating the page is as follows:
testdate = "1/29/2003 1:00:00 PM"
while count <> 5
testdate = dateadd("n",15,testdate)
response.write testdate & "<br>"
count = count + 1
wend
What is going on there? The times should be incrementing by 15 minute
intervals, not 14min and 59 seconds. I have several pages that have
suddenly stopped functioning because of this strange date calculating.
My web host insists there is nothing wrong with the ASP service. Any
help or insight is greatly appreciated. Thanks...
- 2
- Saving long text field to Access - Syntax Issue ProblemThe quote below is part of the information i want to save to a MS Access
database - or update, as the case may be.
The original database was built a long time ago, and looking at the code for
add/update on the original site-it does not compensate for odd syntax like
the quotes. Problem i am hitting now is syntax issue in the SQL when I go to
save/update. The syntax present causes failures every time.
User said she had no problems adding product before now - but i cannot spot
any code that avoids the issues of odd punctuation when i go to create the
SQL.
---"
It presents strategies for including humor and a positive attitude into the
lives of healthcare workers.
............................................................................
................................ Click ''Buy Me'' below to purchase &
download immediately (PDF version). To buy the HARD COPY or DISK versions,
Click ''Ordering Information'' above & download an Order Form for the US or
Canada.
............................................................................
...........................
---"
Any help appreciated.
D
- 3
- ASP and IISI am tryiing to run asp page on my IIS server. I can run a
simple html page but ASP file is not getting excuted on
the server. I am getting "The page cannot be displayed"
error message. I have iuser read and execute permission on
source folder and I have "execute permission" to "Script
only" on my IIS.
I am using IIS 5 under win2000. Is there anything that I
need to do in IIS to run a asp page.
Thanks for you time.
- 4
- Read Web.Config value in asp pageHello,
I have an ASP site. Now we need to define some setting on config file.
on basis of that value asp page control will switch visible true or
false. everything is working if I hard coded the value but only need
to know how could I read the config file value in asp page.
Thanks
Prasanta
- 5
- ASP Sessions and Web GardensI'm working with a Windows 2003 IIS 6.0 Server with 2 2.8Ghz HT
processors (4 Proc to the server because of the HT).
My problem I that I have web garden turned on and can't get the sessions
to stay. I am new to IIS 6.0 so I don't know much about the whole web
garden thing. However, my entire site is written around ASP using
Sessions.
Any ideas on how to make this run on the new server?
Thanks,
Andrew J Durstewitz
DEVBuilder.org, http://www.DEVBuilder.org
ASP,ASP.NET,VB.NET,PHP,Java,and SQL Support, all in one place.
- 6
- Make ASP page that polls to wait for a document to be producedHi!
I have a webapp. that holds a lot of documents. Some of the documents
needs to be produced from a database on-the-fly, some are static
documents like PDF, Word documents, etc... In the end, a user can do a
request to produce a large amount of documents as one huge PDF document.
Today the creation of documents is working, but all code is done in ASP.
In Visual Basic, I was thinking about making an ActiveX EXE server that
generates the PDF document. The ASP page will be polling until the file
is generated. When this is done, the file will be displayed. I have only
written down my thoughts on the subject. Is there a good way to do
this?? Any help is appreciated!
Henning :-)
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
- 7
- Like Airlines website - Redirect to results page after gettingThanks Michael. Your suggestion sounds close to what I was looking for. I'll
try it. Thanks for your suggestions to Bob... I didn't get my hands dirty yet
with AJAX, so it sounds pretty complicated. But when I have more time, I'll
try your idea too.
thanks again,
_Uday
"Michael D. Kersey" wrote:
> Uday wrote:
> > Hi everyone,
> > I have a ASP page that triggers a db-side stored procedure. At the end of
> > the procedure, it spits out a log file, that this ASP page reads and displays
> > for the users.
> > But the problem is that the database-stored Proc could take anything between
> > 10 secs - to - 10 mins. I dont want the page to time out [But I dont want to
> > increase the time out in the IIS webserver]. Is there a way, like the
> > airlines websites do, where I can just show an animated gif while the
> > procedure runs and redirect the page to results at the end of the procedure
> > run.
> > ex: like orbitz or hotwire.... or anything like that, but not as complicated
> > as them.
> > Hope I made my question clear,
> > any ideas are truely appreciated,
> > _Mac
>
> Rather than tie up the user's browser, you could do the following:
>
> allocate a unique identifier (GUID, random number) embedded in a URL:
> e.g. http://www.mysite.com/scheduledjobs?jobid=123456
> and return that URL to the user with a message such as
> "Request submitted: it will take some time to complete. Please click
> <a href="http://www.mysite.com/scheduledjobs?jobid=123456">here</a>
> to check for completion.
> Or you could redirect to that URL immediately (see next item).
>
> Create an ASP page, e.g.,
> http://www.mysite.com/scheduledjobs
> which, when passed a jobid value, checks to see whether the job (stored
> procedure execution) with that jobid has completed. If so, the ASP page
> redirects to a URL created by the stored procedure, (e.g.,
> http://www.mysite.com/jobs/123456.log ). If, on the other hand, the
> stored procedure hasn't finished, inform the user of that.
>
> This allows the user to bookmark a report URL. They can periodically
> return to see if the report has finished or e-mail the URL to someone.
>
> So to reiterate:
> 1. The user executes a request to the URL, say,
> http://www.mysite.com/jobrequest.asp?custid=55555
> and is immediately returned a page, say
> http://www.mysite.com/scheduledjobs.asp?jobid=123456
> that shows a "report URL" where the finished report will later appear,
>
> 2. jobrequest.asp validates input data and stores request information
> (jobid and all inputs) in a database table e.g., JOBTABLE.
>
> 3. A background job executes periodically or as requested, reading the
> database table JOBTABLE and looking for new entries. When a new entry is
> found, the stored procedure is executed and the output of the stored
> procedure stored to a new report URL http://www.mysite.com/jobs/123456.log
> Finally JOBTABLE is updated to indicate that the job completed and the
> name of the report URL is entered into that table.
>
> See http://aspfaq.com/show.asp?id=2143 for details on how to
> trigger/schedule a background job.
>
> 4. scheduledjobs.asp, when passed a jobid, checks JOBTABLE and/or the
> report URL to see if the jobid is valid and whether the job has
> completed. If the job has completed, scheduledjobs.asp redirects to the
> report URL for that jobid. Otherwise it informs the user that the jobid
> does not exist or that the job has not completed. [Alternately
> scheduledjobs.asp could have various utility functions as listing all
> outstanding/completed jobs for that user or all users.]
>
> 5. Possibly write a periodic stored procedure to remove/archive old
> report URLs and delete old entries from JOBTABLE.
>
- 8
- Script Timeout and Dialup connectionI've been researching this issue with little luck. Here's the situation:
We have a few users on slow dialup connections who are posting data from
forms. Frequently, they get script timeout errors. We've gotten timeouts
from users with faster connections as well, so I suspected that the overall
load is overtaxing the server. But it does seem to be more frequent with
dialup users posting relatively large (>10K) worth of data from forms. The
Script Timeout value for the site is 20 seconds. IMO, it's seems quite odd
that connection speed could influence a server-side script timeout, but...
Question: When form data is posted, does the server begin processing upon
receipt of the first packet with the post request, or does it wait until all
packets have arrived?
Question 2: Is 20 seconds too short, or are there potential problems with
increasing it to, say, 30, 45, or even 60 seconds?
Any help would be appreciated. Thanks.
Scott
- 9
- VBScript FSO: CreateFile OK, OpenTextFile failsIn one place in my project, I need to create a text file. Each time it runs
it should overwrite the previous version. I use the following code and it
works fine:
FileLoc = server.MapPath("list.txt")
Set fsTemp = server.CreateObject("Scripting.FileSystemObject")
Set RecordsFile = fsTemp.CreateTextFile(FileLoc,true)
RecordsFile.WriteLine(RecCache)
RecordsFile.Close
In another page in the same project, I need to create a logfile of certain
transactions, so each time it needs to append to the end of the file. This
code results in an error 5.
FileLoc = server.MapPath("DBLog.txt")
Set fsTemp = server.CreateObject("Scripting.FileSystemObject")
Set RecordsFile = fsTemp.OpenTextFile(FileLoc, ForAppending, True)
RecordsFile.WriteLine(strSQL)
RecordsFile.Close
Can you point out what I am doing wrong?
Thanks.
Paul
- 10
- Promo page without using QueryStringI want to setup a form that will change dynamically depending on the URL.
However, the regular method I would prefer to use - such as:
www.website.com/form.asp?offer=100 is not something my boss wants to use.
He claims the URL is too complicated for people to type in - this would be
printed on paper as a marketing promo. Instead he wants www.website.com/100
for one offer, www.website.com/101 for another, and so forth. The way I'm
doing it now is the manual, basic way - setup a separate directory in IIS -
such as /100 - and then just have the form setup.
I just am not sure how to accomplish this to be honest. He doesn't want the
URL to be complicated with the '?offer=', but I don't see how else to do it.
The other part of this is I would want the form to change based on the offer
code - offer 100 would have different form boxes for input than offer 101
would. I had planned, assuming I could use the ?offer= method, to just
setup a kind of dictionary file with the separate fields - which would be
fairly easy. Doing it with the /100 way I am just stumped. Any idea on how
to accomplish this? Thanks in advance!!
- 11
- error while hosting asp.net in managed c++ dll.I have a pluggable asp.net hosting provider which uses a cassini-based http
listener if the platform is win2k or xp (non sp2), and uses a HTTPAPI
(http.sys) based listener in a managed c++ dll if the platform in win2k3 or
XPsp2.
The solution works perfectly when the HttpWorkerRequest is implemented in a
c# dll. When it is implemented in the managed c++ dll, I always get the
following error:
The application's configuration files must contain 'trust' section.
Stepping through the code, I can see that asp.net receives my
HttpWorkerRequest and properly maps the directory to where I have my
web.config. Adding a trust section doesn't help for any values in it. It's
not a permissions problem because I've not only given the file full control
for Everyone, but when debugging I can see that the process is in fact
running as an administrator.
Could anyone help?
-EP
- 12
- removing javascript from a HTML file dynamicallyI am designing a forum system, and I would like to know if there is a script
somewhere that can parse an HTML response, and remove javascript.
I would like to do this so that I don't have hackers attempting to take over
the client's browser. I have my code to the point that it will remove all
script tags, and anything between them, but I have no idea how to remove the
"on-" events (for example, omouseout, onmouseover, etc...)
Also, I would like to remove any references to the position attribute of an
element's style. This is proving to be difficult, because there are various
ways it could be embedded into the script. For example,
<div style="position: absolute; left: 0px; top: 0px; height: 100000; width:
100000"></div>
renders the same as:
<div style="#$&%&@*%position: absolute; left: 0px; top: 0px; height: 100000;
width: 100000"></div>
and renders the same as:
<div style="position#$&%&@*%: absolute; left: 0px; top: 0px; height: 100000;
width: 100000"></div>
which makes it kinda hard to parse out the position attribute, which would
force me to filter out the word "position" from the entire document, which
is not acceptable.
Got any suggestions?
- 13
- Add Records to an Iseries (AS/400) ServerHi All,
I've gotten to the point where I can read records from our AS/400, but when
I write, it goes through the motions but does not write anything.
Here's my code to write to the AS/400:
Set rsADDPM = Server.CreateObject("ADODB.Recordset")
PNPLCD = request.querystring("pcode")
PNOPTNO = request.form("PNOPTNO")
PNOPTCL = request.form("PNOPTCL")
PNNPTNO = request.form("PNNPTNO")
PNNPTCL = request.form("PNNPTCL")
SQLaddpm = "insert into SPSL.VARPM_PF
(PNPLCD,PNOPTNO,PNOPTCL,PNNPTNO,PNNPTCL) values ('" &PNPLCD& "','" &PNOPTNO&
"','"&PNOPTCL& "','"&PNNPTNO& "','"&PNNPTCL& "')"
rsADDPM.open SQLaddpm, adoCon
Like I said, it goes through the motion and tells me it wrote something, but
when I check through the AS/400 sql intepreter, it doesn't display the
record I just added.
Do I have to commit the records somehow when I'm finished writing them? If
not, what should I add in the code to make it write?
Thanks!
Brian.
- 14
- Return Server Time + two hours?In ASP, how can I quickly return the server time + 2 hours, using VBScript?
With TIME(), I've found functions for date arithmetic, but I can't find anything for
time arithmetic.
Thanks!!!
- 15
|
|
|