Click here to Skip to main content
15,884,177 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
Hello

I am want to develop simple online chat application for customer live support using ASP.Net and C#. Can Anyone help for this application.

Thanks,
Deepak
Posted
Updated 28-Feb-20 11:51am
Comments
Member 4115931 30-Mar-18 16:48pm    
string scount;
MySqlConnection con = new MySqlConnection(connectionString);
con.Open();
str = "SELECT COUNT(*) FROM UserData ud, UserInformation ui WHERE ud.SponsorId=ui.PromoterId and ui.PromoterId='RE3103121' and ud.SponsorId='RE3103121'";
com = new MySqlCommand(str, con);
int count = Convert.ToInt32(com.ExecuteScalar());
scount = Convert.ToString(count);
DownLineDirect.Text = scount;

Actually i try to count only similar data id

SponsorId PromoterId
RE01453 RE01454
RE01454 RE01455
RE01454 RE01456
RE01454 RE01457
RE01455 RE01458
RE01455 RE01459

TOTAL NUMBER THIS ID DATA FROM RE01454
DATA 3
BUT THIS ID JOIN ID RE01455
DATA 2

TOTAL NUMBER RE01454 THIS ID 5

PLEASE HELP ME
4201104150 9-Aug-19 10:58am    
hh
4201104150 9-Aug-19 10:58am    
hh

Please have a look at the below links. This could get you started.

WPF.WCF Chat Application Simplified via P2P[^]

WCF / WPF Chat Application[^]

http://www.mangochat.net[^]
 
Share this answer
 
Quote:
You will receive a line with string particles, separated by "|", representing parts of the name of a weapon. The particles will be in mixed order and you can align them through the commands, which you will receive on the next lines, until you receive the "Done" command. They will come the form of strings, separated by space. There are five supported commands:
• "Move Left {index}":
• Moves the value at {index} position to the Left, if the index exist and the move is possible.
• If movement is not possible, do nothing.
• "Move Right {index}":
• Moves the value at {index} position to the Right, if the index exists and the move is possible.
• If movement is not possible, do nothing.
• "Check Even":
• Print the elements at even index positions, separated by a single space.
• "Check Odd":
• Print the elements at odd index positions, separated by a single space.
After the "Done" command, the weapon name is considered correct and you should print the particles in their current order joined together in the following format: "You crafted {WeaponName}!"
Input
• On the first line, you will receive parts of the given weapon name in a mixed order separated by "|".
• On the next lines, until the "Done" command, you will receive commands in the format described above.
Output
• Print the needed output upon the "Done" command as a string.
• Output should be in the format "You crafted {Weapon name}!"
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900