This is a snippet of some code I have - now what I have noticed is some people use
"All Users" some need "All Users.WINDOWS" and some don't even have C: drive.
Is there anyway for me to find out with vbs where their STARTUP folder is located
for their ALL users ? and also for their local user ? so that I can end up doing
Using "VBScript" ? and without it triggering ACTIVEX as a lot of things like Wsh etc. trigger ActiveX. Whereas opening an ADODB connection object does NOT.
I can send email using C# and SMTP, but keep closing the connection before the .eml file has left the Queue folder. The length of time the .eml file stays in the Queue folder is dependent on the size of that file; big or many attachments increases the time.
If I start an internet connection, issue the smtp mail send and then close the connection in my C# program, I need to wait until the .eml file has left the Queue folder. Otherwise, prematurely closing the internet connection causing IIS to abort the send.
How can I detect that the .eml file has left the Queue folder?
I am starter in ASP and I am trying a database connectivity example. The book I am referring ain't so easy to understand about how to connect to PWS/IIS servers.
I have a simple ASP page that processes an HTML form. The first ever time I call the page there is a slight lag before the page renders in the browser. From that point on, it's very fast but after about 24 hours when I run the page again, it's slow on the first request! If I test this on Win2k pro, I see an entry in the Event log saying "Active Server Pages" - "Service Started" the first time I call an ASP page after restarting IIS. It seems the ASP.DLL does not load until the first ASP page is requested? If that's the case, at what point does ASP unload? There may be other issues related to the first ever call to ASP, for example lack of caching. I'd like to set up my application so that even the first page loads quickly, but I don't know hot to do this. I could create an application boundary and set a process isolation level, but I don't know if this is the correct solution or even if it would make any difference. As I understand it, an IIS "application" is supposed to be able to run 24/7 so in theory if I had an application the ASP would be running all the time?
I'm relatively new to ASP.NET. I'm running it under Win XP Pro, using Visual Studio 2002.NET (haven't migrated to VS2003 yet). The ASP.NET application I'm having a problem with was initially set up on a laptop running Win2000, where it ran successfully. I've copied all the files over to my desktop, intending to support it there. But it seems to have a problem upon startup: instead of initially displaying the starting ASP.NET page as it should, it instead brings up the file download dialog box, trying to download the starting ASP.NET page from my local PC! If I click on OK, it appears to load the page, then stops without displaying the page. I've only tried one other very small ASP.NET application on this desktop PC, and it seemed to run fine. But this problem application is much bigger. It appears as if some system parameter is not set correctly, but I have no idea what it is.
HOW TO Make CStr for JavaScript on ASP w/ Request.Form and QueryString
In ASP, Request.Form and Request.QueryString return objects that do not support "toString", or any JavaScript string operation on parameters not passed. Code:
How do you use server.mappath to update a access database on a completely different computer? One of my websites needs to update a database on a completely different website. Code:
Is there a way for asp to know what url is in the address window? I have a function that is included in every one of my pages and I want it to write out different things depending on the page the visitor is on.
Can anyone tell me how to detect a ip address behind a router? I know that using ASP, we can detect the actual ip and the proxy ip, but what if the visitor is using a router that dynamically assigns a ip.
I'm working on an app to upload pictures to my Web page. As part of it, I need to know the dimensions of the images - how many pixels wide by how many pixels high. Is there any way, as part of the upload or immediately after, that I can detect that?
Also, though the solution isn't exactly appropriate to this NG, I would also accept a client-side solution to this problem.
Normally I would do something like if request.form("submitbutton.x") <"" then .... end if
But I found a problem when the browser uses the 'alt text' instead of the image (when the image is not found, or if the browser is not displaying graphics, etc. How do you detect that? or should I?
I am working with a bunch of old code so I can really restructure the includes, otherwise I guess I could change all the #include statements to #include-once. Anyway, If I have a file with a class like this:
Class myClass end class
I get a "name redefined" error. I've been seeing these and indeed from goolge searches, it's because the file is somehow included more than once. This problem doesn't occur for functions and the old code bases just used functions whereas I would like to add some classes. In C you used to be able to detect that at the top of the file and not included the rest of the file if it is allready included. I just want to at least detect it so I don't redeclare the class.
How can I get the url of a page in asp and detect if there are no variables appended to the end? Would I somehow get the address and do an instr for the ? character? Code:
Could anyone show me a tutorial or like show me a script in asp that can detect to see if the mysql backend is working? And if it isn't then to display a message that says something like "out of luck."
Is there a way whereby i can detect where the user came from?
For example:
if this user came from www.mywebsite.com/a.asp theni will redirect him to c.asp but if he came from www.mywebsite.com/b.asp then i will redirect him to d.asp
I need to add in some specific browser detection in my ASP to identify Mac IE5 running OSX - is there any wahy of identifying this config alone - and not just identifying all Mac IE5s? If you have OSX Mac IE 5, please visit this page which will give your User Agent string.
The delete method of the FileSystemObject.FileObject does not return a result. If permissions disallow deletion, it will not raise an error. Conversely, if the delete method does succeed, a call to FileExists directly afterward may return true because the system hasn't updated yet (or whatever actually goes on). Is there any way to accurately check the result of a deletion?
I searched around everywhere on the net, but could not find a simple example of detecting if cookies are enabled - on server side, and without moving from one page to another.
This should be a very basic functionality, so I am reluctant to believe that there's no way to simply test it in a server-side script.
I've been working on this wysiwyg web editor. The editor lets you upload images. Only .jpg, .gif and .png files are allowed. Now I should be able to detect if the uploaded .jpg image is in RGB or CMYK mode. Only RGB images should be allowed. Can this be done with ASP?
I'm trying to write an ASP interface that mimiks a .Net datagrid control. I'm having a problem when I'm in the middle of an Edit, Update, or a New Record.
If the user hits the wrong button, the program grabs the values in the textboxes using the request.form() and then redisplays them in the textboxes when the records table gets written back out to the page. This works fine as long as the form is submitted.
If it's just a page refresh (F5), the program doesn't get the latest changes to the textboxes and displays either a blank or whatever was in there the last time the form was submitted. Anybody got any ideas?
Im writting an asp app that tracks the users scores and info (its a training app) to a access database, ive disabled the ie toolbars and everthing so the user must use my nav buttons so i can track what pages they have been to. My problem is if the user closes IE with the close button [X], is there a way i can redirect them to my close database and save results page, i cant use the unload event as this is trggered every time the use goes to the next page.
This is fine for displaying the text, but the text contains links which are currently just being displayed as text. I'd like them to display as hyperlinks that will open in new windows when clicked upon. so basically I need some ASP code to detect text starting with http:// or www.etc and automatically make them into hyperlinks.
I have a function in a script file that I use from a couple of different pages. Can I, within the function, detect which page is being viewed (which page called the function)