Custom Scripting Components
I'm trying to alter a asp web site that I've taken over from another programmer. The previous programmer left under bad circustances and I am unable to find where she did her custom scripting components. Anyone have any suggestion on what to do?
View Replies
ADVERTISEMENT
I don't see the Windows Scripting Component used widely, maybe I am looking in all the wrong places. My guess is they are not easily used on "paid for" remote Web services so largely ignored.
Anyway, I can easily create/use them in my situation and am comparing them to the VBScript Class model. There seems to be no WSC provision for the class_initiate/class_terminate features in the VBScript Class model. If there is for WSC can someone please enlighten me?
View Replies
View Related
I am working on a project that uses ASP Classic and Windows Scripting Components. The IDE I am currently using is Visual Slick Edit but I don’t like the fact that I can not search across a project like I can in Eclipse and I also don’t like that I can not have multiple instances of Visual Slick open.
I prefer to flip between pages of code using a tab structure or using Alt + Tab and it really bothers me having to click on Window and then the code to switch between code sources. The thing I do like about it is the text coloring for commented code, etc. Does any on have a suggestion on an IDE I could use for ASP Classic & Windows Scripting Components?
View Replies
View Related
I notice that when you have the defualt setup of 404 error
pages the IIS 5.0 log tracks the page the user was trying
to get to and the page they where at when they tryed to
get to the now missing page. I recently wrote my own 404
error page to make it match my site but when I set IIS to
use my custom page it no longer traks the page that the
user was trying to get.
I was told I needed to add some
code to my page to fix this, but I don't know what code to
add. Can someone tell me? (I am useing ASP on the custom
404 error page) I am returning a 404 error response,
everything works fine it is just that IIS does not log
what page the user was trying to get to.
View Replies
View Related
I created my own custom 404 handler and it works, so when I put in
http://www.domain.com/badxxx.html
it produces the correct 404 error and you see
http://www.domain.com/badxxx.html in the url still which is fine.
But when I put in
http://www.domain.com/asdf
it redirects to
http://www.domain.com/index.html
it gives a 302 (moved temporarily) as well as the 404 error.
Why does it do this for not .html files? I dont redirect it at all, and am
using
thestring = Request.ServerVariables("QUERY_STRING") to get the url
but thestring sometimes does not display the asdf depending what I do after
this command, very odd.
does anybody have anyideas as to how to preserve this
http://www.domain.com/asdf in the url and avoid the 302?
View Replies
View Related
I decide to put a custom Hit Counter on my page (below). Then I won't be
reliant on the standard FrontPage one which uses webbots.
It is called by:
<b>Hit Counter: </b><!--#include file="_fpclass/hit_count.inc"-->
The code it includes is below.
OK, it works - sort of.
If I go to Guestbook and then return via the Home button, the counter
increases by 3, not 1.
I can't see why this is happenning.
After returning, a refresh increases it by 2, then another refresh increases
it by 1 ??
I know that many say "Don't use them - it is a sign of an amateur", but I
would at least like to get it working even if I later decide not to use it.
I have thought to make it a conditional include, i.e. if document.referrer
is blank. Is that possible? Code:
View Replies
View Related
i have a table that users are inserting custom tages ,it looks like :
user_id type value
1 99 television
2 98 beach
3 99 coldplay
etc.
now i have to make a search which will show all the users that typed the same value from the same type .i dont want the query to be a textual query (slow ...)what is the right way to do it ?how can i make a query that JOINs to tables from 2 different databases?
View Replies
View Related
how to go about setting up and using custom sessions for user authentication throughout an application?
View Replies
View Related
When you have a custom HTTP 500 error handler, how do you go about making sure all your previously opened recordsets/objects/connections/etc.are closed properly?
It would seem to me that once you hit a 500 error, you have no opportunity to close any of the previously opened objects, eventually causing memory leaks.
View Replies
View Related
I'm developing an application that uses a custom 404 page to deliver all of my site's content. However, doing things this way renders IIS's regular log files pretty much useless.
Are there any established "best practices" for creating your own logging system? I know that others use this technique and I'm hoping someone has some ideas they can pass along. For example, do you log every single page request or do you just log totals per day, week, or month? How do you deal with the increasing volumes of data? Do you collect referrer data, etc.?
View Replies
View Related
I have code for remove button.How to make it a common control so that it will be handy to use.
View Replies
View Related
I asked my hosting service to setup a custom 404 page for me. They did, but when purposely calling a non-existing page with XMLHTTP, the new 404 page returns a 200 / OK status.
They seem to be taking their time trying to fix this, so I wonder if a custom 404 page that truly returns 404 status is a hard thing to set up for individual domains hosted on IIS. I hope my question makes sense to the readers.
View Replies
View Related
im interested in replicating how moonpig.com 's card editor works. in particular how you can display a custom server side font in a wysiwyg editor. i know moonpig uses .net but can this be accomplished using plain ol' asp ?
View Replies
View Related
I am working on getting through the book Teach Yourselve Active Server Pages in 24 Hours.
Now, I am not learning ASP.Net, but ASP. Why, because, I am getting a lot of calls for asp, but not many for .Net. And I just don't know enough as I'd lilke.
At any rate. I have gotten to the section on Working with components. for example the MSWC.NextLink
I don't have it. I am running IIS 5.1 because I am on a Windows XP machine. And I am told I need a SDK download, but which one? Everywhere I look, its IIS 6, but that doesn't work on my machine. So, how do I get these components so I can run them.
View Replies
View Related
After working for so many yrs in ASP and COM I still feel novice. I have asp
page nd a COM component (.exe) which is written in VB. For some fixure, I
have to remove my IIS and reinstall it. My ASP page is not instantiating my
component. Whereas, components which are dlls working frin in ASP pages....I
checked permissions on DCOMCNFG, file directory, folder, file.
Any clues what is missing.
Error Type:
Server object, ASP 0178 (0x80070005)
The call to Server.CreateObject failed while checking permissions. Access is
denied to this object.
/testcomponent.asp, line 2
line2 is just a createObject for my .exe com component.
View Replies
View Related
I am new to using components in ASP, whilst I can see the huge benefit of using them, the big problem that I am coming up against is that my host won't let me register them on the server.
My question is simply this: is the only way around this problem to setup your own server (which is probably beyond my technical ability) or are there lenient hosting companies out there that will let you install components freely (obviously subject to their approval)?
I dont know if there exists a directory of components somewhere which have been approved by hosting companies as safe to use on servers? Im a little confused as to how I can take advantage of components if I can't physically install them. Is it possible to use a component removely without having to install it on the server?
Sorry, I know I have asked a lot of questions but I am really in the dark here and not quite sure what my options are.
View Replies
View Related
I need to convert a dynamic (ASP) page on my site to a PDF, so I am looking for a PDF component which can open the page from a URL. Failing that it would need to open an HTML file from disk and convert.
I've been searching and there are hundreds with rather random pricing and different feature sets.
Can anyone recommend a component for this job which doesn't cost a fortune?
View Replies
View Related
How can I make components to my asp code in VB or other VS 6. Nedd to know all the steps, because never make any activeX component. Nedd also to know how to call the dll file as well to receive and pass arguments to it.
View Replies
View Related
I am trying to use a component to execute a file but I'm not exactly sure how to
could some one please provide a little bit of sample code showing me how to
use a simple component?
View Replies
View Related
When a user tries to visit a non-existant page in our web site they receive a custom 404 error message. I want to capture the URL the user tried to visit. Does anyone know where I can find this string?
View Replies
View Related
I am still in the debugging of my website, but I'm nearing the end. As a last phase implementation, I want to be able to catch all asp errors and if there is one, send the user to a custom "sorry bout that" page, rather than having the errors displayed on that; if there aren't any errors, let the page load.
I setup the 404 error, but that doesn't seem to accomplish what I want.
View Replies
View Related
I've created a custom 404 page that performs redirects based on the incoming
URL cross referenced against a database table.
The problem I have is the way IIS sends on the "not found" information.
Example...
http://www.mysite.com/place/missingpage.asp
is sent on to my custom 404 page by IIS via the Querystring as:
404;http://www.mysite.com/place/missingpage.asp
Which is fine,until I add a Quesrystring to the original URL:
http://www.mysite.com/place/missing...var=10&qwert=11
still comes through as
404;http://www.mysite.com/place/missingpage.asp
without the extra Querystring data from the original URL.
Having researched this online it seems many people have this problem and
looks like IIS 6 solves it. However I've also read of people with IIS 6
having the same issue, and of people with IIS 5 that don't have the problem.
(for exmaple: http://www.webmasterworld.com/forum47/1829.htm)
What I'd like to know is if there is definately no way of achieving this
behaviour on IIS 5 without the use of any extra isapi filters. Perhaps a
server configuration option or something...
View Replies
View Related
I would like to generate a custom date format for my ASP output ... i.e.: "5 Apr 06" instead of the "05 April 2006" that the British English 2057 LCID automatically gives me. In other words, I would like a 3 digit month and two digit year.
The code on my page reads as follows now ...
<%= DoDateTime((Recordset1.Fields.Item("StartDate").Value), 1, 2057) %>
View Replies
View Related
I am trying to do the similar to mod rewrite and use the custom 404 rewrite
page to handle the table look up, so www.myweb.com/irish-tapestry-333.html
will redirect to
www.myweb.com?id=333 for the detail pages.
Will google see this forwarding in the 404 redirect page and ignore the
links?Also, how can I make the URL of www.myweb.com/irish-tapestry-333.html
appear in the users url window instead of the www.myweb.com?id=333
View Replies
View Related
We have a requirement where we have to develop a custom Login Page which
will accept user's NT credentials ( Username , password, domain name).
This then needs to be passed to a website which uses Windows Authentication
my question is how do we pass these credentials to IIS in classic ASP?
View Replies
View Related
I have some simple asp code to send a response to the client with aparticular ContentType defined, code shown below:
Response.Clear
Response.ContentType = "application/x-custom"
Response.Write "<?xml version='1.0' encoding='UTF-8'?><testing/>"
Response.Flush
I have a client side ActiveX control implementing IPersistMoniker that isregistered to handle this MIME type. This seems to work fine on some machines and not others. On some of my machines, the control is not instantiated at all. Instead, a blank page is shown in the browser. If I change the ContentType above to something like "text/xml", the response is shown correctly in the browser. This leads me to believe there is a problem with the client mime handler, but it seems to work on most machines.
View Replies
View Related
On windows xp we can modify 500-100.asp file for custom asp error messages. How can we do this on a windows NT 4.0 and IIS.or what is the similar file on NT and IIS?
View Replies
View Related
is there a way to make custom error pages specific to a particular page?I know you can make customer error pages for iis to use.but if there is an error on a particuar page, can i make a custom error page to be redirected to?
for example,if a user is clicking away and runs into an error,it would display error1.htm.if they were on a different page and an error occured,they would get an error2.hm.
View Replies
View Related
if its possible to create a custom validation control which can enable or disable any given control depending on whether a checkbox is checked or not?Currently my solution involves posting back to the form which in turn enables or disables appropriately.
I have noticed with some of the standard validation controls that the screen does not refresh (postback) for the error message to display.Is it possible to enable/disable a control instead of displaying an error message, and do this without posting back to the form to refresh?I have seen some custom controls which can do this for sale, but they cost $$$.
View Replies
View Related
i have created a custom control in vs.net, how shall i add that one to my asp.net page. do i need to create new web control library project for creating custom web controls, what i have done is, i just included that one as another class, i am confused about how i would specify the value for the assembly attribute.
View Replies
View Related
Just a quick question about making a custom error handler. Can I use. Code:
<%On Error Response.Redirect("error.asp")%>
instead of defining a custom error page in IIS? My site is hosted by an ISP so doing the latter would leave me completely without error messages; my way I could comment out the On Error code when debugging.
View Replies
View Related
why I can't use custom error messages with the asp extension in IIS5.1? I have set up a custom page to handle errors called errorHandler.asp and all HTML is rendered but not the asp.
If i put Hello World in the html body section it renders but if I put the same in a response.write of the asp it won't render.
View Replies
View Related
I'm looking to do custom homepages based on user login, something like googles homepage, But not as drastic. I'm not sure how i should go about this. any suggestions on the thought process would be nice .
View Replies
View Related