|
As the server will have no way of knowing what clients are available you will need some mechanism to register the clients with the server. However, depending on your usage and where the clients will reside it may be better to poll the server occasionally. Alternatively, the server could place information is a database which the clients access to display it. Again depending on several factors you may be able to use SQL Dependency to have the client refresh it's view. I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Mark Nischalke wrote: you will need some mechanism to register the clients with the server
That makes sense and makes it far less appealing so based on that I'll switch to periodic polling from the client as it really isn't worth the effort at this point
Thanks for your time
|
|
|
|
|
If clients and server are on the same network, you coluld use WCF with a Duplex Contract.
Otherwise, polling is still the best option.
|
|
|
|
|
Dear All,
I have a problem in performing a operation in an existing excel file containing some operation(take for example add of 2 numbers).
Get input and write in the particular field in excel and automate the operation and get the output and show it in front end..
Pl help me in succeeding in achieving this proj.
|
|
|
|
|
For a complete sample on how to use excel via C#, see here
To use formulas, see here[^].Me, I'm dishonest. And a dishonest man you can always trust to be dishonest. Honestly. It's the honest ones you want to watch out for...
|
|
|
|
|
|
Iam Developing a Application where it contains two threads. Now i want to show a single ProgressBar for two different threads. Can any body giude me regarding this... Please
|
|
|
|
|
You must perform the UI update from the UI thread, otherwise an exception will be thrown. This guy has a nice article about threading and winforms:
http://www.yoda.arachsys.com/csharp/threads/winforms.shtml[^]
In WPF, the UI thread can be found on the Dispatcher object.Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter.
Pete o'Hanlon: If it wasn't insulting tools, I'd say you were dumber than a bag of spanners.
|
|
|
|
|
Hello,
i want to let a Silverlight-Application run in a WinForms Application (in the WebBrowser Control or the Silverlight-Control)
How can i make that they both can communicate with each other? I mean, how can my Silverlight Application invoke a method in my WinForms Application and the same in the other direction?
Many thanks
|
|
|
|
|
Your Winforms code would need to talk to the Javascript code that hosts the Silverlight code. This Javascript code will act as the bridge between your Winforms code and the Silverlight application.
If you are calling a Silverlight website via a web browser control, check the website documentation to see if they accept input parameters via their javascript code.Me, I'm dishonest. And a dishonest man you can always trust to be dishonest. Honestly. It's the honest ones you want to watch out for...
|
|
|
|
|
|
If we write in the same way as above for the hashtable then we would not get the desired values.
Hashtable ss = new Hashtable();
ss["key1"] ="india";
ss["key2"] = "bharat";
foreach (object gg in ss)
{
Console.WriteLine("Key value is " + gg);
Console.Read();
}
Here we get System.Collections.DictionaryEntry and System.Collections.DictionaryEntry as output instead of the value pairs stored in the hashtable.
In this case we can help of DictinaryEntry object for iterating the hashtable.
foreach(DictionaryEntry gg in ss)
{
Console.WriteLine("Key and value are " + gg.Key + " " + gg.Value);
Console.Read();
}
A DictionaryEntry object is simply a container containing the Key and Value .
http://www.mindfiresolutions.com/How-To-Iterate-the-Hashtable-in-C-311.php[^]Cheers,
Eliza
|
|
|
|
|
Did you post this in the wrong place? Perhaps you meant to post a tip/trick? Or maybe you meant to post this at the bottom of an article? This is a forum for C# questions.
|
|
|
|
|
Nah, I think he just missed and gave us his lecture notes instead of his homework question... You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace
C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy
|
|
|
|
|
The link points to the same thing posted by the OP. I am honestlly baffled.
|
|
|
|
|
Hi,
I have 2 dataset. I am getting values from database and binding same values to dataset1.
This method is written in refresh call so that what ever changes done or update done in the database that will be affected the values to that dataset1. but with the same time i m passing these same values from dataset1 to dataset2.
Now in that I want only those values that changed. Means i want only updated values so that my dataset2 will change accordingly. so by passing every time full dataset1 I want to pass or update only updated information.
Thanks
sjs
|
|
|
|
|
|
I want updated fields row only.
|
|
|
|
|
Hiii everyone
Actually i am geting memberid from database as 1,2,123,124 but i want to amend the id as 00001,00002,00123 etc.
Anyone can suggest me how i can get it. using array or any collection.
Thanks in advance
Gaurav Gupta
|
|
|
|
|
you can use split method then made a new id.
string _temp="1,12,123";
string[] arr=_temp.split(new char[]{','});
|
|
|
|
|
Hii Ali
Thnaks for the response but actually i have id like 1.Now i want to make the id 0001 dynamically using for loop and array.
e.g. if i have id 123 first read 3 then submit 3 in array which have 00000 now string have 12 read 2 and then submit in array noe 00023 i have now anly 1 remain get 1 and submit in array now id becomes 00123.Like that
Thanks
Gaurav
|
|
|
|
|
string formatted = 123.ToString("00000");
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
int id = 1;
string longID = string.Format("{0:00000}", id);
this will result in "00001";.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Hi,
When the data are integers, you store them as integers in the database, which will hold their value, and isn't interested in any formatting.
When you show such numbers, make sure to apply the format you want. One way of getting that is:
int a=123;
Console.WriteLine("a="+a.ToString("D5"));
|
|
|
|
|
i have a c# dll containing a public function
<br />
public double[,] sum(double[,] a,double[,] b)<br />
{<br />
}<br />
in and dynamic code execution, i am passing an array (double[,]) to the above function using reflection.
assigning Type to theMethod => parameterType=typeof(double[,]),
when executing the following statement, i got an error Exception has been thrown by the target of an invocation".
<br />
theMethod.Invoke(this, userParameters);<br />
any help please. thanks in advance
|
|
|
|
|
Hari Om Prakash Sharma wrote: in and dynamic code execution, i am passing an array (double[,]) to the above function using reflection.
It would help if you posted that code.
Hari Om Prakash Sharma wrote: //do a[,]+b[,] sum and returns the result.
And if you actually have code where you've placed that comment, probably would be helpful if you posted that too.
|
|
|
|
|
When you get an exception, read all available information.
That means, use Exception.ToString() and do not limit yourself to Exception.Message
|
|
|
|