|
How can i detect bluetooth device and transfer the data from Pocket PC in C#
|
|
|
|
|
|
Hello,
I've built a chat that few clients can connect to the server and every message that each client send all the other recieve it.
I want to add all the user name to each client when a new client is connect.
How can i do it?
i'm using the Hashtable class to store the users.
thanks...
|
|
|
|
|
if you've done all that then it should not be hard to do what you want. the logic is the same. where exactly are you stuck?
regards
|
|
|
|
|
How to remove from the other clients the users (from the list box).
The massege i sent with StreamWriter (run on all the tcpClient array) to all the connetced clients.
But somehow i have problem doing it...
|
|
|
|
|
from what i understand, every message a client sends goes to the server which then broadcasts to all the clients. is that correct?
if so, then the server will receive all the notifications regarding users logging in and logging out. it is just a matter of sending a control message to all the clients and notifying them of the changes that occurred. for that you need to design your own protocol and decide how you would like to handle server-client communication. if you have reached as far as broadcasting the messages to all clients, i presume that you have implemented some sort of protocol for the communication. now, all you have to do is extend it to include some server messages or commands that are handled by the client.
regards
|
|
|
|
|
|
want know use of these to please reply me as soon as possible.
|
|
|
|
|
See the sticky thingy at the top of the list READ IT!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Dear Friends,
I have converted my C# .NET web application from VS 2003 to VS 2008 everything works fine except crystal report. When I open any form which displays the crystal report it gives me the below error,
"Unable to find the report in the manifest resources. Please build the project, and try again"
I removed the references and again added one by one and build the project many times but still I am getting the same error.
Your quick help will be highly appreciated.
Thanks and Regard
Murtuza Patel
|
|
|
|
|
i am getting also same problem
Thanks,
B.N.Verma
|
|
|
|
|
Hi.
I have this problem too, can you tell me what to do?
Thank you.
CanI
|
|
|
|
|
Hi, I have the same problem,
Did you find any solution?
Thanks.
|
|
|
|
|
|
You could not even wait for 5 min before reposting the same question
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Hi there:
Am making a login page using xml to get username and possword i want before dataview rowfilter to make column case sensitive which is the password and the other field in sensitive which is the username. I Tried to make the column in dataview case sensitive but i did know how? Could any one help me with this.
|
|
|
|
|
I am not sure what exactly you want?
Could you post your code what you have done so far, so that some one can helpt you better.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
DataSet ds = new DataSet();
DataTable dt = new DataTable();
string xmlPath=Server.MapPath("/Database/Credential.xml");
ds.ReadXml(xmlPath);
dt=ds.Tables[0];
DataView dv = new DataView();
dt=ds.Tables[0];
dv = dt.DefaultView;
//dv.Table.Columns["password"].
//dv.Table.Columns["username"].Table.CaseSensitive = false;
string rowFilter = "username = '"+this.txtUsername.Text+"' And password = '"+txtPassword.Text+"'";
dv.RowFilter=rowFilter;
//dt=(DataTable)dv;
if(dv.ToTable().Rows.Count==1)
Response.Write("<script>alert('Meche el 7al');</script>");
I want to check for case sensitive password column only
|
|
|
|
|
khalil.kamel wrote: string rowFilter = "username = '"+this.txtUsername.Text+"' And password = '"+txtPassword.Text+"'";
dv.RowFilter=rowFilter;
Well, .Net expression has a very limited capabitlites and it does not do all the things which can be done by SQL(for eg distinct, case expressions etc). So, the answer is you can not do this with RowFilter.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Ok thanx anyways i found another way to do it:
and i would like to share it:
First in the XML file he usernames should be in upper case:
and since the data view is case sensitive i would check for the upper case of the username and check the password as it is
here is the code
DataSet ds = new DataSet();
DataTable dt = new DataTable();
string xmlPath=Server.MapPath("/Database/Credential.xml");
ds.ReadXml(xmlPath);
dt=ds.Tables[0];
DataView dv = new DataView();
dt=ds.Tables[0];
dv = dt.DefaultView;
//dv.Table.Columns["password"].
dv.Table.Columns["username"].Table.CaseSensitive = true;
string rowFilter = "username = '"+this.txtUsername.Text.ToUpper()+"' And password = '"+txtPassword.Text+"'";
dv.RowFilter=rowFilter;
//dt=(DataTable)dv;
if(dv.ToTable().Rows.Count==1)
{
Response.Write("<script language='javascript' > alert('Meche el 7al'); </script>");
}
|
|
|
|
|
And Sorry to tell you it can be done but it is inefficient regarding the performance issues.
How it could be done:
DataSet ds = new DataSet();
DataTable dt = new DataTable();
string xmlPath=Server.MapPath("/Database/Credential.xml");
ds.ReadXml(xmlPath);
dt=ds.Tables[0];
DataView dv = new DataView();
dt=ds.Tables[0];
dv = dt.DefaultView;
dv.Table.CaseSensitive = false;//Set dv to case insensitive
dv.RowFilter="username ='"+txtUsername.Text+"'";//check for username
if (dv.ToTable().Rows.Count==1)//Valid Username
{
dt=dv.ToTable();//here i get the row that has the valid username and with its password and put it in DT
dv=dt.DefaultView;//then i reset the dv to the new dt
dv.Table.CaseSensitive=true;then i change the dv table to case sensitive
dv.RowFilter="password ='"+txtPassword.Text+"'";then i check for the password
if(dv.ToTable().Rows.Count==1)//if it retireved a record this means a valid password
{
//Code todo when login
}
}
PS: You might refine the code for better performance but the code i did above is better regarding performance
Please Rate If It helped and same thing for the code above
|
|
|
|
|
Usually passwords are stored as binary data and not strings. This will fix your problem. Furthermore, if you store them in binary form you can just as easily store the hash plus a salt for security reasons instead of storing the password.
|
|
|
|
|
Hey everyone,
I have this simple financial budget-lines screen on which some budget line items may be branched to unknown levels, what control(s) would you use to design such screen??
I'm thinking maybe nested DataGridView?? If so then how can I do such a thing and still maintain good design.
Please advise.
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
Look into the infragistics treeview in outlook express mode.
Or the objectlistview right here on CP will give you a tree on the left column with nomal cells in the rest of the control
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
You better Use nested repeater and the first cell in a repeater item row put a button that would view the repeater within
|
|
|
|