[2005] Launch Process.Start On Client PC Instead Of Server Side?
Feb 1, 2009
I am building an internal web page which retrieves binary data from a SQL database, converts the binary to an image file, then opens the file on the clients PC.In debug mode, this works fine, because the program downloads the file successfully into a temporary directory, converts it to the image then uses System.Diagnostics.Process.Start() to launch the image file in the associated image viewing program.However, as soon as I upload it to the server, two undesired things happen:
a. The file gets saved on the servers temporary directory, instead of the client temporary directory (I kind of expected this to happen, so this wasnt much of a suprise)
b. System.Diagnostics.Process.Start() does not launch the file successfully. Nothing actually happens when it gets to this part of code, however I suspect that it is trying to launch the process on the server end, instead of the client end.
how I can get System.Diagnostics.Process.Start() to launch on the client end OR how I could get the image to just appear in the clients web browser instead?
View 2 Replies
ADVERTISEMENT
Jun 22, 2011
I am struckup with a problem from last two days. I am creating a web application using VB.NET, Ajax & RAD Controls. When user clicks on a button I want to open a RAD Window and show the list of ledgers available to the user, so that he can select one from the list. And to open that window I have to call a java script function from client side, which is already achieved using the below code.
[Code]...
View 8 Replies
Oct 26, 2009
Anyone has a quick and dirty sample coding to making this work? Currently, I have server, client with Interface object as intermediate object between the 2. If I declare events in the Interface, then Dim object on client side with "WithEvents", I'll get error when I reach this line:
vb
serverObj = CType(Activator.GetObject(GetType(InterfaceObj), szURI), GetType(InterfaceObj)
Having headaches looking for solutions.
View 7 Replies
May 23, 2011
Can I send an object from client-side javascript to server-side code via ASP.NET ?
View 5 Replies
Apr 13, 2010
I know this defeats the purpose of client side vs. server side (refer to title of this thread). What I would love to do is build my own custom progress indicator on the client showing how far a server side code has progressed. I figure if I could only get a JavaScript to fire and render a value of some control at pre-defined intervals while the server is working I could make it happen - but alas I'm beginning to believe that this is impossible. Below is some code that performs three 2 sec loops. At the end of each I want to change the visible value of a control on the browser. [Code]
View 8 Replies
Jul 13, 2011
Using the following script:
$("#some_button").click(function() {
var changed = [];
[CODE]...
I need to send back the id, the old value from _1 and the new value from _0 back to the server. What is the best way to format this data so I can easily extract the data from the server side so I can easily email someone for example to let them know which textboxes have changed, what the old values were, and what the new values are
At the serverside level, I am using .NET-3.5 (VB). I know how to send the data bacl. and how to email the data, I just wanted to know how to best format the data at clientside before sending it back. I could have upto 50 sets of id, old, and new values to send back. Sorry for not making that clear earlier.
Example:
How can I modify the script above to generate this?
[
{
"id": "name_0",
"new": "text",
[CODE]...
View 3 Replies
Apr 22, 2011
I'm trying to, from a client-side piece, call off to a server-side piece. I need to do this synchronously. On my server-side code, though, I'm calling off to another piece of code, which I want to have a maximum of, say, 10 seconds to return a value. If I don't have a response within 10 seconds, I want to force my own server piece to set my result equal to 0, and return to the client.
Here's what I have on my server-side code so far:
Public Function GetWebResult(ByVal inputParameter As Object) As WebReturnObject Implements IWebInterface.GetWebResult
Dim result As New WebReturnObject
Dim webItem As WebItem = Nothing
[CODE]...
I realize this code is not functional. The problem is that I'm unsure how I would go about getting back into GetWebResult to set the appropriate return values before it is sent back to the client.
View 1 Replies
Jan 25, 2012
I add an option to a select with jQuery. When I save with an asp button, I don't see the changes on the server side in the click event.
And the HTML is all correct after I add the option.
Is it a coding problem or I don't understand something?
$(selectCourant)
.append($("<option></option>")
.attr("value",$(dropdown).val())
.text($(dropdown + " option:selected").text()));
View 1 Replies
Dec 1, 2008
I have been reading through Atheists posts in regards to client-server and TCP client/server connection's. But how do i go about writing a program with 1 client and server where the client side creates a text file.Once the server sees there is a text file it connects and downloads it to itself or the client pushes the text file to the server.Once on the server i will read the text file and put its info into a sql db.
View 14 Replies
Dec 28, 2011
Ultimately, what I want to accomplish is an AJAX-based messaging system. I already have a database table for messages, and an ASPX to add new messages (and declare old messages no longer relevant).
The current messaging system simply polls the server every 15 seconds, and re-pulls the current message set.
What I am looking to do is: On $(document).ready(), register an ajax callback function that listens for a server-side event (e.g., MessagesUpdated) On table insert/update, fire MessagesUpdated server-side.
This way, whenever the table is updated (or new records added), any clients listening know that new data is available and can re-poll the server then.
Ideally, I'd also like to make the new data available as an event argument (to minimize re-polling the db).
I can find references to something like this in other languages, but I cannot find any actual code examples to get me started.
Assuming this is possible to do via .Net, can anyone help get me started on this?
I'm using the 2.0 Framework. Also while I added a VB.Net tag, I can read C# reasonably well, so please feel free to post in either language.
View 4 Replies
Apr 20, 2009
I want to launch a java executable (let's call it MyApp.jar) from .Net using System.Diagnostics.Process.Start. What's the syntax in VB.Net? The command line syntax is this (if I recall it correctly - because i tried it a few days ago and it worked).
java.exe -jar MyApp.jar pathToSourceFile pathToDestFile
How do I run this command in VB.Net, using System.Diagnostics.Process.Start, assuming I have the following three string variables in VB.Net
pathToJavaExe
pathToSourceFile
pathToDestFile
View 6 Replies
Jan 29, 2009
installed in a another system. For some quite time, the client system is sync with my system. I have updated its database, i also updated the clients executable files. I have never tough any references in the system.My question is, an error occurs occasionally which is "Object reference not set to an instance of an object". This error does not occur in my development environment but is displayed on the client's PC
View 2 Replies
Sep 13, 2011
I want both the client and server to write and read resp. at a constant rate (which can be configured on the GUI of the client) to the buffer.I am able to send from the client at 150 bytes per packet Now, I should be able to read also at 150 bytes per packet on the server too Since, both are connected through a socket, can we retrieve the socket params (set on the client size, like 150 here) from the server end, using the tcpServer object.Or is it must to send an initial setup packet which tells about these client params and so accordingly the server can continue?
View 1 Replies
Dec 29, 2011
Code of my web page.I made changes according to ur suggestions but title is invisible or not displaying what has missed by me [code]...
View 1 Replies
Jun 3, 2012
I've got a bunch if labels that are changed as a user inputs data into a form of mine. The Labels are changes with js on the client side. I then after all the submission are in put use a vb script to pull the string values from these labels. The problem is the vb net part is not reading the new values of these labels. Anyway I can get it to read the new values? I have over 40 labels.
[Code]...
View 1 Replies
Sep 7, 2011
The problem im having is that I have a table that when a user click on a button it adds a row to the table via javascript, which works fine. The problem is that if a user need to update other data the user click another button which refreshes the page and all rows the user created in the table are deleted. My question is what can I do to make the rows not to be deleted once the page is refreshed? I know some might think, just not refresh the page, but there is to much data that has to be displayed and a new query has to be generated to grab the data.
[Code]...
View 3 Replies
Feb 27, 2010
I'm using Process.Start method to launch another application from my application. Until today, there was no problem. But I have tested my application in a different OS, Windows XP (SP3), and my application didn't work right on that. I'm also using arguments to run that application. I guess for some reason my application couldn't send arguments to other application correctly under Windows XP. Maybe it is related to my code. But you should know, it works great on Windows 7.
[Code]...
View 3 Replies
Aug 18, 2010
I attempt to start MSAccess on the server with a command line using system.diagnostics.process.start. MSAccess should start, runs a report and then shuts down.
View 1 Replies
Apr 29, 2010
My application checks to see if Outlook is running - if not, it should launch Outlook. I used the
[Code]....
View 15 Replies
Apr 3, 2009
I want to launch a browser session from a Windows App to load a specified file using system.diagnostics.process.start("http://www.abc.com/doc1.doc") but I'd also like to specify that there shouldn't be a toolbar etc. on the browser window. Is this possible?
View 6 Replies
Aug 30, 2011
I am using the Process.Start function to open a program based off a registry value. It works, sort of. Here is the snip of the
Imports System.Data.SqlClient
Imports System.Console
Imports System.Configuration
[Code]....
The program opens with the correct registry value, but the program itself does not run quite right. This program feeds into Intergraph and brings up the selected drawing, but there is a feature of intergraph that doesn't work. If I manually start ( double click ) pdsicon.exe the program works just fine. It only when I call the process that it doesn't work quite right.
View 3 Replies
May 9, 2009
how to create a client/server... But I couldn't... I don't want anything fancy. Just want the client to send the server 4 numbers, depending on the user's choice; after that, the server would turn off the pc, restart it, etc. It all depends on the number received. Is there a rather "simple" way to do it? If it's not to much trouble you could use Atheist's example. (Btw I don't understand the code and, yes, I've checked on [URL])
View 9 Replies
Jun 27, 2011
Hey guys, I am trying to send data from client to server (encrypted) and the string sent from the client is not the same as recieved from the server. I've been killing my brain for hours to get this to work but I cant manage. Im converting everything to Base64 string.
Client:
Public Sub SendMessage(ByVal msg As String)
Try
SyncLock myclient.GetStream
sw = New IO.StreamWriter(myclient.GetStream)
[code]....
View 4 Replies
Jan 22, 2012
I have google it but I couldn't find the answers. So basically I want to make a Client-Server chat. I just want to creating each server for the clients to entered the chat room with each different server, e.g: client 1 and client 2 entered chat server 1 (just a name of a room), client 3 and client 4 entered chat server 2 and so on. How I can do that?
View 5 Replies
Sep 29, 2009
am developing a simple crm application for my business using VS2005 and its default mssql server. The configuration of my server machine is:
Motherboard: INTEL DQ35MPE
Processor: P4 2.4 QuadCore Q6600
RAM : STRONTIUM RAM 2 GB PC667 DDR2 DIMM
[code].....
View 2 Replies
Mar 11, 2010
i have wanted to create a TCP/IP Lan chat program in visual studio 2005. i have already created an interface for it but no codes yet. Attached are images of the client and the server.
View 3 Replies
Aug 9, 2010
i need to know about how to build connection with server and client? eg: my server is 140.134.5.1 and my client need to connect to it to do communication,how should i do?
View 6 Replies
Sep 27, 2010
I was wanting to make a simple client-server program.I saw some code for it and it was easy to understand but it was with winsock.
The program is:
Client: Clicks button.
Server: Recieves Text written in clients textbox.
Is there a reasonably easy way to do this?Maybe Net.Sockets or something similar?
View 3 Replies
Oct 19, 2011
i'm using windows 7 home . and i want start sql server 2005 (SQLEXPRESS) with VB2005. but i can't find command about this thing
View 1 Replies
Jan 21, 2009
Instead of the send message text box and message display text box, I have replaced it with RichTextBox for text formatting (bold/italics/underline/font/color). The problem I am facing is when I format the text and click on send, then the text displayed on the message display box (txtMessageHistory) is unformatted. [Code] Rest of the code of client is related to formatting of the rich text boxes that is not relevant to my problem. I just need to transfer the formatted text from client to server and then back to the client the same way and display the message with text formatting.
View 13 Replies