How Could I Run An Executable Through A Web Browser With A Simple Click And Execute..
How could I run an executable through a Web Browser with a simple click and execute interface?
View RepliesHow could I run an executable through a Web Browser with a simple click and execute interface?
View Replieswhen my asp page displayed in browser..and suppose i click on back button of browser then it should not go to back page. in this case the same page should be always display.
how can we do this?
I have a content management system with a html editor embedded in a page (uses a text area tag) within the tag I use Server.Execute(pageToExecute), it works for some pages but others it hangs the browser.
If I remove the ServerExecute line the page loads fine. Theres no error messages nothing and the page it is executing is simple html in an asp file. Any reasons why this would happen? Im using Windows Server 2003. All browsers.
I am working on a legacy application written in Classic ASP with VB6 COM+ components running on Windows 2003 Adv Server (32bit). There is one page in the app that uses Secure FTP to send a file to another application server upon a certain type of data change.
Anonymous user posts the form - ASP code instantiates the COM+ component which is starting using a Domain User -Calls a method that creates the comma delimited data file and then calls the SFTP method.
i'd like to know if it is possible with asp to launch a local application (exe file like word or any else).
View Replies View RelatedI'd like to launch an executable file from a web page. Basically, the user
enters seven parameters and then clicks a button to generate a graph. The
input is written to a file and then read by the exe. The exe then generates
a graph based upon the input parameters.
I am reading about the Process class and wondering if that is the best
approach to this. Can you recommend a KB article?
my questions are
1. How do I execute a program using asp (any scripting language), without the user taking any action.
2. To close the program (written in VB6) do I include something in the program itself, or do I close it w/ asp?
I am deploying many ASP apps and many of them are onto client internal
servers. I was wondering if there was an option to compile my entire ASP
project into an installation executable for easy deployment?
I am test developing an internal webserver, on Windows XP, and IIS 5.1, with
ASP and MySQL.
One specific page is created from user input and database records in
previous pages and presents a page with customised data and a webform. It
then takes input from the form and session variables and passes these to an
vb exe in the the wwwroot using the from
http://localhost/example.exe?testparameters. The vb exe takes the command
line parameter input and does its thing and it all works, but I am aware
this is a very insecure way of doing this and I implemented this only as a
quick workaround so I could test implement it all then refine it for
deployment.
My question is, what is the best way for input to be passed from a web form
to an vb executable for it to do its thing. The exe will eventually
preferably run as a service, or at least all ways be active on the server,
and not starting for every request then ending, as I was hoping to allow for
sorting and queueing of requests passed to the exe, before they are
executed. Code:
If I allow people to upload GIF or JPG files on my site, is there a technical possibility to upload an executable file disguised as gif or jpg and execute it on my server?
View Replies View Relatedwhat is the best way to run a file via vbscript. lets say I have a exe or batch file and I want to run it. how? and then.. how do I do this... Code:
var oShell = new ActiveXObject("Shell.Application");
...in vbscript?
i am using frontpage 2003. I have an image that I have sliced in Photoshop, saved as an html and opened it with FP2K3. What I would like to do is find a way to add a .cmd or .exe or .bat file to a section of the html code. Can this be done?
What I am trying to do is pick either a hotspot or hyperlink and embedd the executable, so that when picked it runs. all it is really doing is rdp'ing to a session on the server.
I am attempting to have an asp page call a batch file. I had it working, I was high on life and then I decided to log off the server. Once I did, the code would no longer work. When I logged back onto the server, I saw:
'The application failed to initialize properly (0xc0000142). Click on OK to terminate the application.' Code:
A system I use uses advanced encryption for passwords. It was taken from some sample script and adapted some where. However this was I think intended to be for passwords. So nothing too long.
However the time has come where I need to create a function to encrypt a large amount of text. It has to encrpt a large amount of text but nothing too advanced is needed to be honest. Just so its unreadable because its written to a text file on drive. It has to be a function though then capable of decrypting the encrypted text.
Any ideas ? Again Dont have to be nothing too flash. I mean I had a go at just changing letters to different letters but the function got huge with all the replaces.
I am trying to push the user to a particular page based on a click of a button.I cant seem to get the syntax correct. This is what I am using right now.
<INPUT TYPE="button" VALUE="Return to Entry Form" onClick=href="/LongDistance_Tracking/Longdistance.asp">
<FORM Action="<%=Request.ServerVariables("SCRIPT_NAME") %>" Method=POST>
<Input Type=Hidden name="CurrentPage" Value="<%=CPage%>" >
<% If CPage 1 Then %>
<Input type=Submit Name="Submit" Value="Previous">
<% End IF%>
<% If CPage <TotPage Then %>
<Input type=Submit Name="Submit" Value="Next">
<% End If %>
</FORM>
this function i want to call when i click an image. i mean i have previous and next image in the page. when i click previous image i want to call this function.
I'd like to know if it is possible to have a click facility in an email which once pressed forwards the contents of the email to a website
The user who uses this facility is then asked to enter the email address to forward the email. I want to implement such a facility so that I can capture the email address of the one to who the user fowards to
Pls look at this code, i want to call this function from an image
click event.
CPage=Cint(Request.Form("CurrentPage"))'get CPage value from form's
CurrentPage field
Select Case Request.Form("Submit")
Case "Previous"'if prev button pressed
CPage = Cint(CPage) - 1'decrease current page
Case "Next"'if next button pressed
CPage = Cint(CPage) + 1'increase page count
End Select
I have a web form with a button and a number of text fields with validators. When users on dial up connections use the form and click the button the progress bar in Internet Explorer will slowly works it way over and the page status will say done but nothing ever happens. If the user clicks the button a second time all is well. The page works fine on a high speed connection.
View Replies View RelatedCan I have this function?When a user click on a link, my ASP page generates a text file call test.txt containing a string of "This ia s test msg.", and then a download dialogue
appears.
I want to display an image but i want it to change when i click on a button i've tryed used something like this:
onclick="this.page.image.c.src="<%=x2%>">
(the x2 variable cames from a db) ...
This page is going to be a menu system and is dynamic so that the user can add items to their own menu.
I have it working but would like it not to show sub menu until the main item has been clicked by the user?? Code:
what the code would be to stop someone from being able to get the right click menu so they can't view source, print or, save picture, etc etc.
View Replies View RelatedI've been using PHP for some time now and have noticed the big difference between asp and php. In php i have been using this code
<?PHP
if (!isset($_GET['p'])) { // no page specified -> load content from default.txt
include("includes/center.php");
} else { // page specified -> load content from relevant text file
include("./" . $_GET['p'] . ".php");
}
?>
so for example if i clicked on the hyperlink that had this value "index.php?p=member" it will open (preferrably include) the member.php page onto the index.php page. How would this script be written in ASP?
I have a active server page where records are displayed from a query. The
display right now is read only. However, with text box this display can also
be edited. The first column shows category while the second category shows
category total sales.
I would like to double click on category field to get
to another asp page that would show the details of sales for that category
value double clicked.
My question is: If there is any double click event that would allow me to
pass values to open another asp page.
I'm looking to have an image (say, icons for a particular document) and when it is clicked on, I would like the "Open/Save/Cancel" dialogue to open up.
I was told using an ADO data stream was the way to go, making the app an unknown so the dialogue opens:
Dim FileName
Dim FullFileName
FileName = "MyWordDocument.doc"
FullFileName = "C:WebfilesMyWordDocument.doc"
Response.ContentType = "application/x-unknown"
Response.Addheader "Content-Disposition", "attachment; filename=" & chr(34) & FileName & chr(34)
Response.Binarywrite GetBinaryFile(FullFileName)
Function GetBinaryFile(ByVal FileSpec)
Const adTypeBinary = 1
Dim objStream
Set objStream = Server.CreateObject("ADODB.Stream")
objStream.Open()
objStream.Type = adTypeBinary
objStream.LoadFromFile (FileSpec)
GetBinaryFile = objStream.Read()
Set objStream = Nothing
End Function
Is there a better way to do this? Also, I grab the file name from a SQL query which is then populated to a datagrid - the image name/etc is populated dynamically - how is this done in ASP? Is that with an anchor tag?
<asp:TemplateColumn ItemStyle-HorizontalAlign="Center"><ItemTemplate><asp:Image ID="thumb" runat="server" /></ItemTemplate></asp:TemplateColumn>
I have built a site where users make a purchase, but in order to make a purchase they need to log in. If they are not logged in they are directed to the login page. This all works fine. Here is the issue.
If they select an item to purchase and are not logged in and they are redirected to the login page, after successful login I want them to be redirected back to the link they selected to get to the login pagin. So if they select a widget to purchase and they log in the system will direct them to that widget.
I know this is done with session variables but I have no idea how to accomplish it. I did notice that this site does the very thing I want to do except I am working in ASP with an Access 2000 database.
i have a problem, with my delete codes, as when i click on the delete button on my datagrid, i have to click twice before the data will be deleted as show on the datagrid. Code:
View Replies View Relatedhow can set the combo so that when i click it, the code
<%
dim cStr
cStr = cboType
rs.Open "Select * from tblProduct Where type='" & cStr & "'",db
%>
i want to go to another page on button click is there any method other than form submission
View Replies View RelatedI have a UserControl, call it X. I am loading this control into a panel of a page at runtime. However, I only want to load this control the first time it is asked for. After that I will cache it in the Application variable and retrieve it from there when needed.
when I retrieve the object from the Application variable, it doesnt seem to have the same effect. For example, the click event no longer is handled by X (my user control code page).
I have a project on making a UI of a Web page that allows users to:
1. select any text by highlighting it, and
2. do some action on it by right-clicking on the highlighted text and choose an action among those options presented by the context menu items that appears.
3. send the chosen action along with the text and its attributes to the server as the user clicks on the desired menu item.
Interestingly, the next stage is to make the menu items customised by the type of the selected text, e.g. a link or an ordinary body text. Does anyone know if all these can be done fully using ASP.Net at the server side?
Anyone knows the method/codes to disable the clicked button after first click by using .aspx-- to prevent people to click many time when waiting for the server response.
I tried to do this by adding a java script for the button. But, useless..