Delete File On Client Side Machine
Is it possible to delete a file on a client side machine using VB/JAVA script?
My website allows the user to upload a file to the website and after that I would like to delete the file on their machine tried this:
Set fso = CreateObject("Scripting.FileSystemObject")
fso.DeleteFile("C:1-1-S.xml")
But it is always looking to the server machine? How do I say delete file XYZ on client machine. Is this even possible with the security issues?
View Replies
ADVERTISEMENT
is it possible to open an excel file (used as a template) from server using server-side vbscript; then modify it or add values from client using client-side vbscript?
View Replies
View Related
I m writing one code to invoke remote desktop service for given IP address. For that i m using mstsc.exe file to invoke RDP.
I have a no of links to be displayed on the page and on click of link, RDP for that IP should be called. Currently i m using one button to invoke RDP. Code:
View Replies
View Related
I am working on a web application where i allow users to download text file , the content for this file will be retreived from the database and is passed to the ADODB.stream and is read into Response.binarywrite
I am using the following code which i have got from a forum Code:
View Replies
View Related
I have a web server running on a machine. When the users
connect to that machine, it loads the ASP page. The ASP
page has a ActiveX control on it and it gets downloaded to
the client's machine. I have made the control as a signed
control so there is no problem in download.
Likewise, in the virtual directory path on the server, I
have one clientsettings.MSI and that needs to be run on
the server. Whenever the user tries to connect to the web
page, in onload event of the web page, the .MSI file
should be installed on the clients machine. For this to
happen what all needs to be done ?
View Replies
View Related
I have a need to transfer a graphic file to a user's system and then
access that file. I must have the drive letter:path location of the
file. If at all possible I'd prefer that this not require user input.
(Note that since this is my app and in a corporate network, I have the
server in the Trusted Sites zone and every single action is marked
"Enabled" in the IE security settings and users will be using IE
exclusively.)
It doesn't matter to me how the file gets to the
client, save that it get there from IE, and the file is initially
retrieved via a url I give the client. I have even looked into
reading the file out of the IE temporary files but have had no luck.
View Replies
View Related
We have offer a web space to hosting our client website. We offer them to upload asp files to their web space. How can I prevent the client from uploading asp files that will harm our web server.
For example, deleting files in our server using Scripting.FileSystemObject to delete our systemmfiles.
View Replies
View Related
I have developed a windows 2000 based web-based
application which uses only HTML and JavaScript code for the
client side and C++ on server side .
Now i need to implement a feature to implement "writing the
log file" on the client machine for this application. As
JavaScript doesn't support client side file writing i think i need
to use ASP or similar language.
1. Is it possible to write on client machine using ASP??
2. If it is possible please thow some light on how to implement
this.
3. Will my code be stable if i embedd the ASP code into the exisiting HTML & JavaScript code?
View Replies
View Related
how can i copy i file from server to client side ... any solution or can it be?
View Replies
View Related
What I'm trying to do here is have the user select a file of thier local machine (dont know what format to make the file yet, examining this problem b4 development) From that file, certain fields on the page will be populated automatically. The file they will select will have been saved from a visit to a different site I created so no worries about formatting.
But I can't seem to figure out how to do this without actually uploading the file.
To repeat, I just want to examine the file and be done with it. If I can't do this without uploading, then could someone explain how I do that because I've been having trouble finding a source that doesnt want me to buy thier .dll. I find it hard to believe that IE would implement input type=file and IIS would not have it's own method of getting that file.
View Replies
View Related
send me the code for creating text file on client side through asp. or is there any way to direct copy a file from server to client without asking to downloading the file?
View Replies
View Related
I am developing an web application, it should has the function to upload file from client computer. The uploaded file size can be limited within 10 MB.
But I dont know how to check the size of the file on client-side. Server-side size check is not enough, because it can not be checked until the whole file is received while the server resource(cpu,memory etc) is wasted.
View Replies
View Related
With ASP, how can I automatically add records to a database with an excel file residing on the user's machine? Assuming the excel file has the same field names/datatypes/order as my database table's fields.
View Replies
View Related
Following is a vbscript code extract triggered by a combobox OnChange event. arrVendorA and arrdefpack are server side arrays and i need the intCounter parameter to be the array index. Code:
<script>
sub getstdPackByVendor(strPartNo, intCounter)
dim selVendor
selvendor= colSelect("cboVendor", intCounter).value
if selvendor= "<%=arrvendorA(intCounter)%>" then
if "<%=arrdefpack(intCounter)%>" = 2 then
colTD("txtStdPack" & intcounter+1 ).innertext = cstr("<%=arrVAStdPAckL2(intCounter)%>")
end if
end if
end sub
</script>
View Replies
View Related
The following code is giving me a type mismatch error at the 'if' statements... any ideas, anyone ?
sub getstdPackByVendor(strPartNo, intCounter)
dim selVendor
selvendor= colSelect("cboVendor", intCounter).value
if selvendor= "<%=arrvendorA(" & intCounter & ")%>" then
if "<%=arrdefpack(" & intCounter & ")%>" = 2 then
colTD("txtStdPack" & intcounter+1 ).innertext =
cstr("<%=arrVAStdPAckL2(" & intCounter & ")%>")
end if
end if
end sub
View Replies
View Related
How do I go about calling a server-side vbscript within a client-side
javascript function? What I have is a page heavy on the javascript that has
a number of functions, one of which is to begin a visual countdown with an
onclick and also open an asp page containing the server-side vbscript, which
initiates a wake-on-lan call. I had no idea how to call the vbscript within
the javascript function, so this is why I opted for the vbscript asp page
"pop-up" via window.open. Code:
View Replies
View Related
I check to see if a certain submission button is asking for removal. If the removal is true, I update a recordset's delete column. This has been tested and it works. However, now I'd like to prompt the user to make sure that he/she wants to remove the record. Here's the code: ....
View Replies
View Related
I have a Client Side Java Script which is supposed to re-load the options on my serverside ASP form.
I have been trying to get the syntax right to assign the Select box on the ASP form to a variable in my JavaScript so I can update the options. Can anyone either tell me if this is not possible or what the syntax should be. Here is some information.
Form Name = AddProdForm
Select Box name = subprodline
JavaScript Variable = form1
Here is one of the many versions of this line I have tried.
var form1=document.forms(""AddProdform"");
View Replies
View Related
I am starting to build quite a few pages that will have
tables of data from an SQL database.
I have been building the table rows on the server side
in VBScript, but I have been thinking about having the
VBScript code just build array variables in the <head>
section (or as local variables), and then have JavaScript
functions on the client side actually populate the tables
when the page loads.
I do plan to do other things like being able to sort the
tables in JavaScript code on the client, limit the tables
height and be able to scroll the rows, and click on a row
in the table, and have the values populate a form. I will
also need to be able to export/download/? some tables into
Excel.
View Replies
View Related
I am doing login page . (login.asp)As usual it has username , password textbox and a login button .i need to do client side validation for mandatory fields and I need to do server side validations to check for the hardcoded username and password .if it matches i have to redirect to another page(content.asp)
View Replies
View Related
I know this is actually impossible, but didn't know how else to describe it:
I have created a Content Management System for a client using ASP connecting
to a Access database. It doesn't do any fancy things: INSERT, UPDATE, etc. I
also use ASPUpload to upload images onto the server.
When I test my CMS from my own machine and others, it all works fine.
However, testing it from my client's machine, the Updating or Inserting of
data ends up returning a 'page not available' error (the asp page calls
itself when the form is submitted) and the changes to the database are not
being executed.
I really can't figure out why this is happening. Could it be a setting on
the client's browser?
View Replies
View Related
To secure my web site i need to read client Machien's MAC Address with
javascript
View Replies
View Related
how to get the date from client machine?
View Replies
View Related
im trying to use the following code to log whenever a user clicks through
this particlular message box - however, this currently logs regardless of
whether or not the message box was clicked - im assuming this is because the
server-side code can't see the client side if condition. but how can i set
the varMsgBox variable as a server-side variable? Code:
View Replies
View Related
The jist of what i want is the obj.FileExists (how it checks for a file on the server) for the client machine.
The client will be scanning something that will put a pdf file into a shared folder on their machine (it will be the same path for all clients). I need to get the code* to pull that file so that i can take the data on the pdf.
*Code doesn't have to be ASP. i'm up for ASP, VBScript, Javascript.
View Replies
View Related
1. I need to read the registry settings from the client machine using an ASP file running on the server.
2. Also I need to create an XML file at the client machine and the ASP file running on the server should read the data from this clent XML file.
If anyone could give me some suggestions on how to proceed this I would be very much glad.
View Replies
View Related
I have a sub routine called when I click on a button. It is inside VBScript tags (client side). Can I do server-side scripting inside that?
<script language="vbscript">
sub cmdButton_Click
code
'can I do this
<% strValid = "Update" %>
End Sub
</script>
Would be nice but don't think it works. Anyone know for sure?
View Replies
View Related
explain abt copy files from IIS image path to local client's machine.
View Replies
View Related
This has happened before and it was due the connection string not being set
in VB. My question is, when I try to reconnect can I use a different
connection string on the client than I have on the server, I wonder because
not all my connection strings are not equal.
Some of my database paths are in Access and the rest are in SQL. That means I have to retry several times before a scrip timeout occurs. If you have read this far then you are an idiot, but the rest of the database seems to work just fine. In fact I can
pull all fields out with no problem. It is just that connection string that
has resulted in causing my pages not to post.
View Replies
View Related
I want to add clinet side javascript on the asp:dropdownlist's onchecked changed event how i do this does any one have any idea.i use the following method in vb.net code behind file
dropdownlist1.Attribuets.add("onCheckedChanged","javascript:aa()")
and see that when i change the option in the list the javascript method aa not fired.
View Replies
View Related
I'd like to have two radio buttons, and the first one will be selected by default when the page loads. When it is selected, the two checkboxes below the second radio button should be invisible.
The only way to see the two checkboxes is when the second radio button is selected. If you select it and then go back to the first radio button, those checkboxes should disappear again.what should i do?
View Replies
View Related
We want to create an Intranet page for our customers. which provides a variety of information. But we also want to be able to allow users to access applications on that PC by clicking a link on the page (ex. link: WRITE A LETTER - opens MS Word). All PC's are imaged the same way so the applications are always in the same location.
I'm sure this is a violation of MS security inherent in IE, IIS, or in Windows XP alone. Can someone offer an advice - as to (1) is this possible using an Intranet page; or (2) is there a development environment that it would be possible in?
View Replies
View Related
I have functions with which i can validate a URL from serverside. But, i need to valide the URL at the Client side (ASP- Javascript) itself. Is there any way to validate a given URL from the Client side.
View Replies
View Related