ASP File Don't Load Properly Off Computer
When I try to open an aspx file located on my computer it doesn't load properly (i.e not all objects are visible like text fields and such) and it gives me a syntax error stating that it expected a semi-colon (;) on one of the lines.
My page language is VB and so no semi-colon is required and when I load the file through my web server by typing http://myIPaddress/myfile.apsx the page loads correctly and functions normally.
Several hard drive formats ago I was able to open aspx files with internet explorer without going through my web server. I am pretty sure I have everything installed like IIS 5.1 and the .NET framework.
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Get Info From File On A Clients Computer
I´ve made a program and now i would like the users of the program to be able to download updates from my website. I want the user to show where the EXE-file on their computer is, so i can check version number, size and name of the file. Do i need the user to upload the file to the server first before i can check version number, size and name? Can i do this without some kind of component? Code:
Upload File To Remote Computer
I'm looking for a method to upload a file from a site to the Unix server running my database. How can I connect this computer to create a file on it ? and can can I read and write the files on it ? I'm able to upload to the server running IIS but that's not what I want.
Down Load File
i have one text file when user click on link of this txt file ..than this file be downloaded to client machin... <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <a href="download.asp">dd.txt</a> </body> </html>
Load ASP File
I have downloaded an ASP WYSIWYG editor but I cant fingure out how to load an asp file into the editor. I think what I need to do is to load the file into the variable and then the editor loads the variable and formats the code accordingly. But I just don't know how to load the asp file into the variable. Here's my code so far: Set fs=Server.CreateObject("Scripting.FileSystemObject") Set f=fs.OpenTextFile(Server.MapPath("Test/7610.asp"), 1) Dim DataTransfer DataTransfer = f.ReadAll
Load ASP Code From Another File
I am writing a small CMS type system for our intranet at work and I am trying to have a main "index.asp" that does all the work in a template folder and every time I add a new section instead of making a new copy of this file I would like to have some generic "index.asp" file that is nearly empty that just calls the "template/index.asp" file and let's it do the work. The way each page in the intranet works is by using the same asp file but by having a few configuration files in their directory that point it to different menus, titles etc. Is there a way to load an asp file from another one? I tried creating an index.asp containing just <!-- #INCLUDE FILE="templates/index.asp"--> but it doesn't seem to do it.
Load Text File From A Remote Server?
Is there a way to load a text file from a remote server into a string much like using the Inet Control in VB? I am familiar with reading in RSS feeds, but what should I do if the content is a straight text file?
Need To Load File Path From Web Server Into Text Form Box
I need to load the file path of a file on a web server into a form text box. I tried using a normal form box using type=file but that just seems to return the file path from the local machine. Ideally I'd like it if someone can get this to work with a file on a web server without using asp. If not then I suppose I'd have to use the FileSystemObject method. I can see how you can get a list of files from a remote server using FileSystemObject. The problem I need help with is selecting a file path from the list of files into a text form box. The path of which I am then going to write to a database field.
XML Not Output Properly
I created an RSS script for my readers to use, but I have been having some minor issues with it. Actuallyit works fine and I have tested it in 3 feed readers without a problem. Still it does not output as perfect XML if you go here you will see what I mean. Code:
Do Until Not Functioning Properly
The basic gist of this is that it makes downloading of podcast's available (currently) all the time. However I need it to make them available if and only if the date is the day after the podcast is recorded. Currently the site is making them available the day before they're actually ready. How can I code this so that the asp page knows that the podcast should be available only on the day it is actually ready? Code:
Checkboxes Not Properly Writing To DB
All i want to do is have a form with 17 checkboxes that writes a value to the database. At this point I don't even care, true/false this/that 1/0 whatever! Setting the Access Database fields to yes/no was not working even 1 bit in the least. They would all be set to off no matter what. Changed it to text and inserting "That" for off and "This" for on, it comes up, but does it all funky, not in order, all "That"'s at the top, all "This"'s at the bottom, and not even in their respective fields. Code:
Numbers Are Not Being Displayed Properly
I am unable to get this function to output the correct output. The Subtotal works fine, but the GST and TOTAL are not working properly. GST only shows the integer value and nothing after the decimal places. Code:
Can't Get Field To Populate Properly
I am using what seems to be a fairly simple calendar program that is ASP. I have been successful in adding fields to this App, but for some reason, I must be missing something because when I go into the program to edit an entry, one of the value's (Location) doesn't populate properly. It pulls up the LAST option (Other) within that dropdown field, instead of the one that had previously been selected. I'm not sure what I've missed, but could someone help? Here is a portion of the code: (let me know if you need additional info). Code:
Loop Of 20,000 Executes Properly
I've got a mailing list script which loops through up to 20,000 database records, and fires a customised email out to each via the bulk mail queing function of JMail Pro (email component). Never having tested this with anything other than 100 records, I'm very wary about executing the script in case it times out or starts to misfire.Is there anything anyone can recommend to make sure this process goes smoothly, perhaps even giving the user feedback whilst it's executing e.g. "sending messages 1-1000", "1001-2000" etc?
How To Use WScript.Shell Properly From An ASP Page?
I have a process that creates a whole bunch of files in a specified directory. The names of the files are the employee IDs with an .txt extension, so they are like EMP001.txt EMP002.txt EMP003.txt The background is a bit more complicated so I won't bore you with it, but I hope that I can add a button on the asp page that would 1) go to that specified directory, which is database-driven by the department id, such as D:DepartmentDEPT001 and I'll be able to figure the directory path from the existing code 2) then loop through each employee id and append the employee name, so the above will become EMP001JohnDoe.txt EMP002MaryJane.txt EMP003PeterKay.txt The employee names are also database driven and my asp page will be able to provide the information. What I would like is to have a button that would open the cmd.exe and make the appropriate changes, and then do the rename, and then close the cmd window. I know that you can have something like: Code:
VB.NET Classlibrary Not Instantiating Properly In ASP Pages
Ok, I've been hung up on this issue for quite some time now and I would like some help in getting it to work. I think this may be a setup issue but I'd like to ask your eminences first. Here's some backstory: I need to create a VB.NET classlibrary (or another structure) to use objects for our business logic. However, as our upgrade is an ongoing process, I must enable this structure to be run in both ASPX and ASP pages. Here's what goes wrong: I create a new solution. Create two projects, one a ASP.NET web app, the other a classLibrary. I put a basic hello world object into the classlibrary then get a return string from it in both an ASP and ASPX page. Yes, the classlibrary has the build option checked to "register for COM interop." Now, the ASPX page runs fine - but the ASP page gives me the following cryptic error: Error Type: (0x80070002) /webApplication1/test1.asp, line 3 Line 3 is the Server.CreateObject command for the object in question. No error string. The error code, when googled, reveals that it's "file not found." That's about as useful as a kick in the ass. What am I doing wrong? Why can't my ASP page use this object? If I can only get this functional then I will have no further issues - we can start moving our business logic and data logic from the legacy ASP pages to an object-based back end.
Date Problem, Won't Show Properly
How to do if I have 2 cutoff date for online registration. There are 2 set of fee when user regiser. Early registration and after registration example below code won't work today = date if today < 8/10/2007 then sql1 = "Select * from MasterDefault where field_name='Registration_For' and Status=true and RSRV_Field_1=#8/10/2007# order by id asc" else sql1 = "Select * from MasterDefault where field_name='Registration_For' and Status=true and RSRV_Field_1=#8/11/2007# order by id asc" end if
Textbox Not Displaying Variable Properly
I have a textbox which I need to display the data stored in a variable called "fname". So, what I've written is: Response.write("<input type=""text"" name=""fname"" size=""20"" value=" & fname & ">") assume that fname="jason smith" and, the textbox only ends up displaying "jason". So, anything after a space isn't displayed.What could be wrong? I know the <%=fname%> thing works, but that doesn't work within a Response.write.
OnMouseOver And OnMouseOut Doesn't Work Properly
I used onMouseOver and onMouseOut to switch the image when mouse over the image. But for some images, this event doesn't work and some yes while i'm using the same method to call the event. Code:
Array Not Created Properly With Split Function
I am having trouble loading the result of a VBscript split function into an array. The script is supposed to take the user's login name (the form for this is name separated by underscores such as john_foo or lisa_wilson), split it at the underscores, and load first, middle and last name into an array. The problem I keep getting though, is that I am getting a type mismatch error. Here is the code: <%dim LogName, NameArray(), FirstName, LastName, MiddleName, LastPage 'Get NT authorized login info LogName = request.servervariables("logon_user") NameArray = Split(LogName, "_") for x = 0 to UBound(NameArray) response.write NameArray(x) & "<br>" next %> The FirstName, MiddleName, LastName vars are supposed to take the array values later.
Computer Name
I'm building an Intranet for my company and would like to retrieve the computer name of the users PC which they're using to access the Intranet. Is this possible? If so how?
Computer Name In ASP
How can I retrieve the computer name of the browser and output it to the webpage in ASP/VBScript?
Get Computer Name
I need to get the computer name of the computer that is accessing my page.I have a web app on an Intranet (server) that is getting the name "INTRANET" if I use the " Wscript.Network " code. If I access this web app, I need the name of my computer, the one accessing the web app, not the name of the Intranet server.
Computer Can't Count
Essentially all I'm trying to do is add numbers together. If there isn't a record then create one with the number 001. If there is a record add one to the number (Which in most cases will be 001) so the next number should be 002. My problem is that it gets to 002 and stops. Any ideas why? Code:
Database To Another Computer
I use Sql Server.I want to back up a database on server over network to my computer.I do not have Sql server on my computer.It will be kept as a file. The questions come to my mind:Should I first back up database from Sql server to server which Sql Server resides? or Is there any possibility to back up database from Sql server directly to my computer over network?If it is not, how should I accomplish this? Using Vbscript?First Create "Scheduled tasks" then using ".vbs" file which I will create to automatically send file to my computer over network.
Computer Room
we have 7 computers can access our web application.Is there a way I can use their computer names to identify which computer login?I use asp and javascript.
Install Asp In My Computer
how to install asp into my computer and i know that it needs iis server connection.can u tell me how to do that.
Making A Query Show Up Properly In A HTML String Email
I am attempting to send an HTML email which a hyperlink that will change based on the user's session ID. I need the hyperlink to display as: http://www.synergeticsusa.net/admin/shop_cart/detail.asp?id= WHERE the id = Session("MM_UserID") However I cannot seem to code this into the html string in the correct syntax, to where id=1 or id=2, etc. Does anyone know the anwser to this problem?The basic code I am using can be found below. html = html & "<a href=""http://www.synergeticsusa.net/admin/shop_cart/detail.asp?id="">" html = html & Session("MM_UserID") html = html & "<IMG SRC=""myImage2.gif""></A><BR><BR>" html = html & "</br>"
Carriage Return Does Not Display Properly In Mozilla In A Title Attribute
Am facing a problem when trying to display a carriage return in firefox in a title attribute,i ve tried using VbCr and chr(13) ,in either cases a strange character appears instead of the carriage return. does anyone know about this error. The code looks like this: titles(iday) = titles(iday) & chr(13) & objRS("event_title") <a href="javascript:showevent('0<%=links(i)%>')" title=" <%=titles(i)%>"><%=i%></a> Am not having this strange character when running it on explorer.
Where Are Exactly Cookies Stored In Computer?
Does anyone know where the cookies are stored in the computer. I guess depending on the brower the client uses, they are stored in diff places. But when i make a search for cookies, i can find few txt files inside the cookie folder with names userid@websitename[1].txt but i cannot see the any cookies with the domain name iam working ....
About Testing On Local Computer
I have been teaching myself ASP for several months now and seem to have a pretty good handle on it. All along, I have been uploading changed files directly to the website and refreshing to test. However, today I will be at a location with no internet access and would still like to be able to work and test my programming. How do I go about testing ASP pages on my local computer without an internet connection? For now I am not worried about testing any databases or anything, just layout and design. If it is useful, I am running Windows XP Home edition and I use Dreamweaver to write the ASP.
Retrieve UserName And Computer Name
I have tried using servervariables("XXX") to request the username and computer name of the individual running code on our internal server, but what I want and can't seem to capture is the user's network logon and computer name. The user's logon anonymously.
Get Computer Name From Mapped Drives
I am trying to get the computer/server names from the mapped drives on the Clients PC when they select a file from the upload "browse" button. When the user clicks on the "Browse" button on the "<input type="File"... control and selects a file located in one of many possible mapped drives. I want to save the location of the file as a path as you would see when mapping a drive. For instance, "serverfolders... instead of the mapped path of "P:foldersubfolder... etc. Therefore, when a user views the document they can click on the link and get access to the file regardless of how their drives are mapped. Oh, I need to be able to do this from classic ASP. I attempted to use the FileSystemObject object but cannot find the method that gives me this information.
Parse An Xml On The Client Side Computer
I have only been doing ASP for 2 days now so I am learning as I go. I am trying to paser through a xml document that is on the clients computer. I am using the XMLDOM object. The problem is that the path that I supply using <input type="file" name="mFile"> is always looking to the server's hard drive instead of the clients computer. How do I make the XMLDOm object load the xml file from the clients computer. Code:
Setting Up A Sql Database On My Home Computer
I've been meaning to setup a website on my computer again. I have calbe so its a static IP i remember I downloaded three three programs but i can't remember exactly what they were or where I got them 1.)I think i had a sql database: mysql I think 2.)Then i think i had php but where can i get that for free? 3.) finally i think i had some kinda of board program using the sql database bbforums or something Finally, I think i found out latter that all three are available in one download that preconfigures everything (configuring the stuff was a real pain in the butt)
Show Installed Printers On A Computer
The following code is used to show installed printers on a computer,it works on server machine,however, if use a client machine to browse, it also shows the intalled printers on the server machine.Actaully, what i want to do is to show what printers installed on your own machine (that means show it on client-side)...
Creating A ASP Computer System Builder
I work for a computer reseller company in New Zealand and I have been given the job to create a system configurator for customers wanting to customise a PC for themselves. I have no idea how to go about this, therefore asking if anyone knows where there is a good tutorial on creating something like this. I know there is a PHP one called PC Builder, however I'm after a ASP one instead, and so far have found nothing on the Internet. I'm using SQL Server 2000. Our computer company address is www.computerfuture.co.nz for an idea on what we do. I'm doing a major change to this website, and a PC Builder.
Frame Doesn't Refresh Properly When Manually Refresh Page
I have a page with 2 frames. The first one has a link that loads a page in the second frame. This page has a button on it. When the button is hit, the page does some processing and loads another page in the same frame (the second). I use ASP and response.redirect or javascript in the onclick event of the button to do the redirection. When I refresh the page by clicking the button on the browser (IE), the second frame becomes empty. Please note that the src attribute of the frame is not set. If I set the src attribute of the second frame to some asp page and then navigate to another page inside the same frame, when I refresh the page, the initial asp page is loaded in the frame regardless of the asp page currently loaded into the frame. It seems that when you refresh the page, the frames are reinitialized no matter what pages are currently loaded in the frames. I solved the problem by redirecting to the main page in the top frame, passing some parameters and resetting the src of the frame to the desired asp page. Thus, when the page is refreshed, all the frames are properly refreshed too.
Load A DLL
Is it possible to load a DLL in an ASP page? I know that we can create instances of COM/ActiveX objects using Server.CreateObject, but what about a normal DLL stored on the system. Is there a way to load such a DLL and call its functions?
ASP Pages Will Not Load
I cannot display asp pages on my local pc but can display php pages and asp.net pages. I get the following errors 1 -2147467259 (0x80004005) - when I have IE not show friendly error messages 2. Server Not Found - when I have IE show friendly error messages 3 Resources in use - sometimes - when I have IE not show friendly error messages 4. Sometimes I get the microsoft error report popup stating there was a problem with COM Surrogate I am running Win XP Pro SP2 with IIS 5.1, and latest .NET framework (release not beta) I have tried the following to solve this problem: 1. Set intranet security to as low as possible in internet options. 2 Set internet options to allow active content to run 3. Set security to low in IIS for the web site 4. Use http://localhost/webaddress.asp not C:filename.asp to open the asp page 5. Turned off script blocking in Norton Anti Virus 6. Have tried a simple "Hello World" page to ensure that there was no problem with the code itself 7. Checked that the asp.dll is where it should be 8. Have IIS set to allow anonomous logon 9. Have IIS control password 10. Have IIS allow windows integrated logon I cannot think of anything else that would prevent the asp pages from displaying. I have searched the web and seen similar questions to this but no answers that seem to help resolve the issue.
Page Won't Load
I'm using IIS on my localhost and also in some free Brinkster webspace. The problem I have is that when ever I try to use a script that includes the File System Object (as I want to read/write/copy files etc), the page won't load, the progress bar in the browser just very slowly increases, but never gets anywhere, and nothing ever loads.So I'm thinking it's a set up problem? I've tried the same scripts in my Brinkster webspace, and they don't work there (but I know they do work!) but Brinkster may have some restrictions. Is an FSO problem like this common? Can I alter some settings on my localhost set up to solve it?
Load Database
I never used global.asa. I am thinking of load some data in application_onstart which is read only from database(I mean the data will never be changed in any asp pages of the applcation) and so any session for this application doesn't need to reload data from database again, reduce database connection and procedure call. Am I right? just doesn't see that kind of comments on-line. I want to make sure this is the right concept before I am heading too far.
ASP Pages Don't Load
ASP Pages don't load in IIS 5.1 for XP, continuously wait. I have this very same website running same version of SQL server but on two different OS's. The website with the very same configuration, but running on Win2k with IIS 5.0 is working perfect. But the system running with IIS 5.1 on XP continuously loads and never displays ASP pages. After a few moments, if i refresh, it says that there is too much traffic to display the page. I am not worried about the second error, because I can simply fix that by disabling 'HTTP keep alive'. I searched for people that had similar problems, and what I found is that the problem seems to have originated from a Critical Update and users are either switching to Win2K or went with Apache rather than IIS.
Load A Drop-down Box
I am creating a asp page containing a employee time-sheet table in it. there are two columns in the table, one is time-in one is time-out, and the table total have 20 lines. In both time-in and time-out columns I want they show up as drop-down box say as: 9:00 am, 9:15 am, 9:30 am etc, , but I don't want the page load each drop-down box in total 20 lines, I only want the drop-down box loaded when the employee click the field. I know maybe I shoud use JavaScript onClick funtion, but I am not sure about it, and I don't know the detail coding.
Load An Image
i have an asp script to load an image. baiscally if there is an image reference in the database i want it to load that image but if there is not ref in the database i want it to load a default image.the code i wrote is <% if Image = "" then %> <img src="catalogueimages/default.gif"> <% else %> <img src=<%=Image%>> <% end if %> have also tried null instead of "" but that didnt work either.
Can't Load ASP Site
I have IIS installed on Windows2000. When I create a .asp webPage with DreamWeaver, the browser (IE6) can't open it. No error messages, it just hangs there.
|