|
Thank you guys Rohde and leppie
Thanks
|
|
|
|
|
I guess what I want is some kind of listener program that monitors what goes
out and comes in through the serial port (1016). So how do I do this? Please
mail me the code!
Thanks
Gustav Paul
PS. It's for a school Science Expo.
Gustav,
Soul
|
|
|
|
|
Gustav Paul wrote:
Please mail me the code!
PS. It's for a school Science Expo.
So you want us to just GIVE you part of your grade?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hello ,
I am writing an application that gets a password and a user name from the user I need to send these information to a web site to check wheter these information is correct or not then the web site should respond to my application with the result.
How can I send these information to the web site and how can I get the result from it.
|
|
|
|
|
You should look into web services. Create a web service on the webserver that takes and username & password, and returns a bool.
If you didn't want to go that route, you could use a less sophisticated method, for instance, setup an html page and pass the user name & password data in the url, for example: http://mysite.com/q?userName=john;pass=doe
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Lies of Our Fathers: A Must-Know About Lent
Judah Himango
|
|
|
|
|
I want to try the second method(html page) but how can I get the result
|
|
|
|
|
Hmm, I'm not a web developer, so maybe someone with more experience can give you a better answer than me. If I were to guess, you could simply emit some html that contains the result. Use a WebRequest to navigate to your url, then have the page emit the return value, and you can read that value back on the client.
Again, there are better ways to do this. Web services seem like a good candidate.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Lies of Our Fathers: A Must-Know About Lent
Judah Himango
|
|
|
|
|
Hello Mohsen,
although this is going to be a crosspost , but thought you might not get the answer on the other forum. here is my answer there.
Hello Mohsen,
your question is way general. as we don't know are you using web services or simple aspx mechanism. or is your application a windows app that refrences a web service.
I suggest you try the TaskVision sample from the MSDN or download it from http://www.windowsforms.com/[^].
It should give you a great insight on how to use webservices to get what you want done.
if you simply want to get the answer is authenticated or not. use the ExecuteScalar sql function if it returned a record then save the success condition to a session variable and continue to the loged in area (response.redirect) other wise redirect him back to the old one.
cheers
It is Illogical to define an inventor by his invention
|
|
|
|
|
I developed a similar application ...Here is the my solution..
First , I created a web service which gets the input , then regarding to these inputs , returns the results...
In the web service
<code>
[WebMethod(Description="Login Operation")]
public string Login(string userName,string password)
{
HttpWebRequest req = (HttpWebRequest) HttpWebRequest.Create("http://[www.desiredsite.com/login.aspx?name="+userName+"&password="+passWord)
req.KeepAlive = false;
HttpWebResponse resp = (HttpWebResponse) req.GetResponse();
StreamReader sr = new StreamReader(resp.GetResponseStream(), System.Text.Encoding.UTF8);
string all = sr.ReadToEnd();
...
...
...
return resultString;
</code>
|
|
|
|
|
hay man what u need to do
ur question is not cleare
|
|
|
|
|
I got a frame with a progressbar. while a calculation is made the progressbar.value is added with 1.
the problem is that the frame seems to be inactive and only the progressbar is repainted everytime the value is increased.
How do you repaint a frame??
|
|
|
|
|
If the GUI thread is doing lots of work, your GUI might not get repainted, especially on slower machines.
To make sure your GUI gets updated, you can make a call to Application.DoEvents, or you could use a 2nd thread to do the heavy work, and use the GUI thread only to update the progress bar.
You can also force a control to repaint itself using control.Update().
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Lies of Our Fathers: A Must-Know About Lent
Judah Himango
|
|
|
|
|
Hello,
I have a problem!
I generate some html page and view it in WebBrowser control. I need to have fit to page option when i print the document.
I try varios methods but don't work.
Please help me!
simo
|
|
|
|
|
|
I try Webbrowser control printing but ther is not fit to page future.
I use this:
http://msdn.microsoft.com/workshop/browser/mshtml/reference/constants/idm_print.asp
I think the only way is to calculate font size but i am not sure.
|
|
|
|
|
hi
I need some help.
I do trading on an exchange like a stock exchange.
I have to send http:// string to a server, in the string I can set the properties what i will do for example
http://Mybroker.com?buy?something?10K
http://Mybroker.com?cancel?all
http://Mybroker.com?sell?someotherstuff?20K
I have this strings stored into a file called multiorder.txt
So I have developed a c# program to read out this multiorder.txt whenever the file is changed.
Then I will send this lines via http.
I use multithreading to send up to 20 hrefs at the time but my problem is that only 3 or 4 of this will be send all the other lines will not send. I get the error message, that there are problems with the internet.
To send one line wait till response from the server and then send the next one will take to much time as the XML request I get takes about 40 seconds.
I need simply an idea how i can handle it to send 30 hrefs through .net at a time without crashing the program.
Thanks for help.
|
|
|
|
|
This seems really an inefficient way. If you're making 30 requests to a single webpage simultaneously, you're bound to run into problems. A better way would be to concat the different href commands together into a single command (provided the server can understand that). So your string would look like http://mybroker.com?cancel?all;buy?something?10k;sell?someotherstuff?20k
That said, what is the exact error you're getting?
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Lies of Our Fathers: A Must-Know About Lent
Judah Himango
|
|
|
|
|
hi all,
i have a small doubt, which kicking me back to somewhere. i am using and used lot of custom dlls on my projects which i will be transport with .exe file on delivery time. Now, i am using Sybase database in one of my project. Here i am using Managed provider for Sybase data accessing. iAnywhere.Data.AsaClient is the name of managed provider which use to access Sybase database.
When i try to export and try to install my application on some other machine , it is installing properly and i can see iAnywhere.Data.AsaClient is also exported with my .exe file.
Here the problem start, when i start running the application, it is not connecting to the Sybase database even though iAnywhere.Data.AsaClient is available .
If i want to run my application, i need to install Sybase (Only the provider) in that machine.
I think my application is not referring IAnywhere.Data.Client from its installed directory. And application is working fine, if i install iAnywhere.Data.AsaClient in GAC where i installed my application. But this will won't serve my purpose. And i can't rely on users or implementation people to get it done.
Any idea which will help me to get out of this Sybase installation will be most appreciated.;)
Sreejith Nair
[ My Articles ]
|
|
|
|
|
Is the DLL in the application directory, or one of its subdirectories? If it's not, then the CLR has no way of knowing where it is, unless you point it to a specific location in the configuration file. Because the GAC is a standard location known to the CLR, it'll be able to pick DLL's loaded there by itself.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Yes, Dll is in the application directory.
You wrote:
Because the GAC is a standard location known to the CLR, it'll be able to pick DLL's loaded there by itself.
I am not talking abt or least bothered abt GAC. I just wrote to inform the thread submitters that , i don't want to play with GAC. To be simple, i can't able to tell the user or Implimentation guys to try with GAC.
What i need is, it need to work IAnywhere.Data.AsaClient like other custom dlls, which we using some or all applications.
Any Idea ?
Sreejith Nair
[ My Articles ]
|
|
|
|
|
It is not connecting? Whats the error message? What kind of exception is raised? Where is it raised?
The only hint I can give you without any futher info is, that you should check that not only the 'iAnywhere.Data.AsaClient.dll' is present but also 'dbdata9.dll', which is also needed.
|
|
|
|
|
Little more clear please...
I am getting an error message says, Unable to connect to Ianywhere.Data.Asaclient. The moment i install Sybase to that computer, my application won't show any error message and will work smoothly.
Anyhow what is that 'dbdata9.dll'. Where i will get this ? What is the realt use of that file ?
What is the important of that .dll in my application ? Give me some more idea .
Sreejith Nair
[ My Articles ]
|
|
|
|
|
|
Let me try that first. anyhow thanks a lot for u'r support.
Sreejith Nair
[ My Articles ]
|
|
|
|
|
I tried the way you told. But i can't convert that dbdata8.dll valid assembly.
The error which i am getting is , it is not a valid library or Com.
Please help to come out from this issue.
Sreejith Nair
[ My Articles ]
|
|
|
|