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 Replies


ADVERTISEMENT

Dont Download A File

i have a file *.num and when i enter the full URL to download it he give my
a 404 error !

but when i rename the *.NUM by *.TXT everything coming ok !?
so how i can tell to IIS6 to accept *.num files ?

View Replies View Related

Acessing A File In Another Computer...

Is there anyway to acess a file in a computer without being prompt with the password and username?

Imagine that i want to access a shared directory in another computer, if i type this in the START-RUN option, OtherComputerc$Temp, i will be prompt with the username and password, what i want to know is:

If i knew the user and the pass could i type a command like this,OtherComputerc$Temp@userpass (just an example), that it wont ask me the password and go directly to the directory? Code:

View Replies View Related

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:

View Replies View Related

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.

View Replies View Related

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>

View Replies View Related

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

View Replies View Related

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.

View Replies View Related

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?

View Replies View Related

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.

View Replies View Related

Dont Do If Recordset Is Empty

Below is code to display in a drop down menu some addresses. There is two things i need to do. One is to not show if there are no records but also there could be duplicate records, How do i stop duplicates occuring...

View Replies View Related

Html Email DONT Support

I dont have CDONTS support. i am using the following script. with this, even yahoo doesn't consider the email to be HTML and displays all the HTML tags and treats it as TEXT. here is the code i use! Please dont consider it abuse as i dont know how to encloase the code in TAGS!

<%
mes = ""
IsSuccess = false

sTo = Trim(Request.Form("txtTo"))
sFrom = Trim(Request.Form("txtFrom"))
sSubject = Trim(Request.Form("txtSubject"))
sMailServer = "127.0.0.1"
sBody = Trim(Request.Form("txtBody"))

if Request("__action")="TestEMail" then
TestEMail()
end if

Sub TestEMail()

Set objMail = Server.CreateObject("CDO.Message")
Set objConf = Server.CreateObject("CDO.Configuration")
Set objFields = objConf.Fields

With objFields
.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = sMailServer
.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 10
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
.Update
End With

With objMail
Set .Configuration = objConf
.From = sFrom
.To = sTo
.Subject = sSubject
.TextBody = sBody
End With

Err.Clear
on error resume next

objMail.Send
if len(Err.Description) = 0 then
mes = " Message sent to " + sTo
mes = mes + " EMAIL SENT SUCCESSFULLY!"
IsSuccess = true
else
mes = " " + Err.Description + " TESTS FAILED!"
end if
Set objFields = Nothing
Set objConf = Nothing
Set objMail = Nothing
End sub

Sub Alert(html)
if IsSuccess then
Response.Write "<div class='testRelults' id='testSuccessful'><span class='testResult'>Success:</span>" & html & "</div>"
else
Response.Write "<div class='testRelults' id='testFailed'><span class='testResult'>Fail:</span>" & html & "</div>"
end if
End Sub
%>

View Replies View Related

Join Query DONT WORK

am using a join query below to get multiple results from different related tables to form one. e.g

SELECT DISTINCT dbo.e_Wallet.subscriptions, dbo.e_Wallet.username, dbo.e_Wallet.status, dbo.e_Wallet.suspension, dbo.ewalletx_yr_registratn.email, dbo.ewalletx_yr_registratn.Fiscal_Yr, dbo.ewalletx_yr_registratn.end_date, dbo.e_walletpurse.purse
FROM dbo.e_Wallet INNER JOIN dbo.ewalletx_yr_registratn ON dbo.e_Wallet.registrationID = dbo.ewalletx_yr_registratn.registrationID AND dbo.e_Wallet.email = dbo.ewalletx_yr_registratn.email LEFT OUTER JOIN dbo.e_walletpurse ON dbo.e_Wallet.email = dbo.e_walletpurse.email AND dbo.e_Wallet.registrationID = dbo.e_walletpurse.regID
WHERE username = 'variable'

however it dosent seem to work or show any results on my asp page. What is wrong here ?

View Replies View Related

Script Dont Process My Email List!

Im working on an automated email sending script which work real fine. I have to send 2 different list of email ( contact1 and contact2) of an acces database file (.mdb).

The fact is that my script work well but for some reason it only send the second list of email (contact2).

The script process the list contact1 without any error but obviously it isnt sending mail to those email.

It seems to be an easy fix mistake but i cant figure out why the first contact list isnt sending. Must be a "If then" mistake or something with the loop i think.

Heres the code: ......

View Replies View Related

Formview And Gridview Combo Issues (gv Dont Update But DB Does)

I have a formview which im using to ammed records in a DB via a gridview. When an item is selected on the gridview its details are shown in the formview. Ive wrote the update statement for the Insert button in the formviews edit mode.

If i edit a record in the formview this updates the DB, but not the gridview striaght away. I have to click on one of the select buttons on the gridview to update this. I have gridview.databind() on the click event of the insert button of the formview and on pageload, if its a callback. Code:

View Replies View Related

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:

View Replies View Related

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:

View Replies View Related

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:

View Replies View Related

HTTP_REFERER Does Not Work Properly

Pretty simple task ... page1.asp calls page2.asp and I want page2.asp to show the HTTP_REFERER (which I expect to be page1.asp).

It's blank when I try from my local machine and from other machines. HTTP_HOST, URL and various other server variables work fine so there is a work around, but I'd like to know why HTTP_REFERER doesn't seem to work

View Replies View Related

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:

View Replies View Related

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:

View Replies View Related

How Can I Compare These Values Properly?

I have a number value in database and same number value from form. For some reason these are not equal. How can I compare these properly? Code:

View Replies View Related

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?

View Replies View Related

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:

View Replies View Related

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.

View Replies View Related

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

View Replies View Related

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.

View Replies View Related

Popup Window Not Working Properly

The following code is not working properly in IE6 but it does work for mozilla firefox. I am trying to open a new popup window without affecting the frame from "where" it came. But what happens when I click on the link is that the popup window is displayed correctly but the frame then changes to my default.htm. It is supposed to stay the same

here is my code

Response.Write "<td><a href=" & """" & """" & " onclick=" & """" &
"javascript:window.open('desc.asp?msg=" & tempdesc & "','" & rownum &
"','toolbar=no,location=no,directories=no,status=no ,menubar=no,scrollbars=yes,resizable=no,width=600, height=600,left=300,top=300')"
& """" & ">" & left(tempdesc,50) & "....</a></td>"

View Replies View Related

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:

View Replies View Related

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.

View Replies View Related

Tables Not Displayed Properly (& Print Issue)

I'm having a problem with a couple of things. The first is that I am using a loop to populate my table with the proper variables. When it comes across one that is empty it is leaving the cell blank.

The problem isn't that it is leaving it totally blank but that it isn't even putting an outline for the cell. This leaves huge chunks of white space here and there and looks bad. Code:

View Replies View Related

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?

View Replies View Related

Computer Name In ASP

How can I retrieve the computer name of the browser and output it to the
webpage in ASP/VBScript?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved