Luc Pattyn [Forum Guidelines][My Articles] The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
I can't seem to find a solution that would allow me to connect through a chain of proxies using HttpWebRequest object. HttpWebRequest class does have a Proxy property but it only allows you to assign a single Proxy hop and this works as expected. What I need though is to create a connection throgh 3 proxy servers and I would like to know if this is possible with HttpWebRequest. If not I would like to know if there is any other way of doing this in .NET 3.5, maybe an open source library, or an example, anything that would help. If even this does not exist I would like to know if there are any open source 3rd party tools that would allow me to do this.
My application having two datagrids-->datagrid1 and datagrid2
datagrid1 is having ID,FileName,Comments columns
datagrid2 is having FileName column.
i wantt to drag and drop value from datagrid1 to datagrid2.
can anyone help me
i having a smartcard of 4kb but i have only 800 bytes
hw can i compress webcam image into less then 1 kb
nd store it to smart card
becoze this card having some fields like name address etc. nd the fingure prints
but we need to store a image to webcam nd store it in smart card anyone can help me?????????
i must hav to store it i have only 800 byte free in smart card
It would be helpful if you posted the error generated!
This assumes there are only 4 field in the table. cmd.CommandText = "insert into timemgmt values('" + textBox1.Text + "','" + label19.Text + "','" + label18.Text + "','" + label18.Text + "')";
If there are more you need cmd.CommandText = "insert into timemgmt (field1, field2, field3, field4) values('" + textBox1.Text + "','" + label19.Text + "','" + label18.Text + "','" + label18.Text + "')";
Never underestimate the power of human stupidity
Give your variables meaningful names. At a glance, what does textBox1 do?
Your code is wide open to a SQL Injection attack. You need to look into using parameterised queries here.
Your insert statement does nothing. You create the command text and then close the connection - you need to execute the command using cmd.ExecuteNonQuery();
You have no exception handling. What happens if you can't connect the database, for instance?
If you had bothered to debug your code, you would have found the problem out in an instant. Learning to debug is one of the most valuable lessons you can master as a developer, and you should learn how to do it before too much longer.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
I wrote an application which send and receive data from a pinpad(device with RS-232 which use serial port) and i start testing the application, when i finised testing the application on my computer, I upload it to the server machine to do another test but when I run the application from client computers it does not recognize the pin pad, but when I run the application from my computer it works properly. My question is that is there any way I can access the pin pad remotely?
is there any way I can access the pin pad remotely?
I dont think so : I think you need to implement a tcp/ip network layer to sit between the serial port and the network and send it commands from your application.
We do this with eftpos devices - they are sent instructions from a centralised gateway via tcp/ip, and the client on the pc interfaces to the com port (via an activex control supplied by the eftpos company) .. (ok, so there's an activex control there, but it doesnt really matter that much)
There are commercial companies out there that offer pre-made toolkits to do this - just a quick search gives :-
when you start the application on your computer, it doesn't matter where the exe-file is located, the code runs on your computer with it's local hardware!
When you need to communicate with a remote serial port, you need to run on the remote computer an application, e.g. windows service, and communication with that application (e.g. Sockets)
I don't think so. A normal com port is not reachable from remote without any local program.
But you can write a simple program which sends every received byte to com port. backwards might be a bit difficultier, because you should use DataReceived event from com port on server. but what is life without any chalenge?
I was able to access the serial port remotely but when i change the serial port to usb it does not working. Is there any way i can access the pinpad using usb ports or is there a library which work like serial port in C#.