|
Yes, its correct, but when i'm trying to declare my struct as [Serializable] i got the following error:
System.Runtime.Serialization.SerializationException: Parse Error, no assembly associated with Xml key
|
|
|
|
|
Without the real struct it'll be hard to help you any further.
Please post some code.
Regards,
mav
|
|
|
|
|
Hi,
I created a DataSet for my webservice application which i can easily use to display data in Web. the data contains list of users and their personal details.
eg.
DataView myview = data.Tables[<tablename>].DefaultView;
it displays all available data in the table.
the question is: is it possible not to display certain data belonging to certain parameter (e.g. emails of certain user)?
e.g. for user 'x & y', his 'email add' should not be displayed.
thanks a lot.
rnv
|
|
|
|
|
The datatable has a select method, which will allow you to run SQL on the data in the table and get the result out. The dataRow has a RowFilter property, which you can use to do the same thing.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I think you could also specify in your query to the database what fields you choose to get and what not to get. Sorts of filters the data before you post it in your app
|
|
|
|
|
Yeah, obviously. But I'm assuming he's wanting to dynamically change the filter without going back to the database.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
oh...ey chris i've got a thread below "Simple Problem" I was wonderin if you could help me out. Thanx!
thanx
|
|
|
|
|
oh...ey chris i've got a thread below "Simple Problem" I was wonderin if you could help me out. Thanx!
|
|
|
|
|
what i exactly want to do is this:
i have user records with users personal details. currently when i do defaultview it shows all data of every user.
users can specify if they would like to publish their email address or not. if yes then the user's all details are shown including the email address. if no then all other details are shown except for the email address. please not that i am displaying list of all users not of a selected users. that means that when i display the list of users some should contain email address otheres left empty (or specified as 'blocked').
hope it is more clear now.
|
|
|
|
|
hii all;
is any one knows how to use "Push model" in client server communication or what is exactlly Push Model Algorithm.?
marcoryos
|
|
|
|
|
A pull model means that the object recieving the message asks for it when it wants it, and a push model means that the object sending a message is responsible for sending it without waiting for a request.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I have a component that generates an xml document. I need to post the xml to another web site from the component via http. I know the msxml component can do this, but I was hoping to find something native to .net that could handle this. Does anyone know where to look for this? Or will I have to use interop to use the msxml dll? Also, if I have to go that route, can anyone recommend a good tutorial on that? I haven't done anything with interop before so I'm a little unclear on how to figure out what the entrypoint is and so forth. Thanks.
|
|
|
|
|
|
|
can some one help me out i am trying to display a picture in form1 picturebox into form2 picturebox(the same picture) i thought of using the parent and child thingie but i could not acheive what i want.
thankz in advance
|
|
|
|
|
couldn't you just do this:
pictureBox1.Image = Image.FromFile(@"c:\image.jpg");
pictureBox2.Image = pictureBox1.Image;
yep, I just tried it and had success.
(I used this code on the click of a button with two picture boxes set to default value names)
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
pictureBox1.Image = Image.FromFile(openFileDialog1.FileName);
pictureBox2.Image = pictureBox1.Image;
}
|
|
|
|
|
but his pictureBox1 and pictureBox2 are in two different forms...
David
|
|
|
|
|
You can expose that picture (IIRC Image property of PictureBox ) as public property of both forms. Than you can set image from one form to other.
David
|
|
|
|
|
Hi,
I want to calculate the negation for the given decimal number.
How can i achieve that in C#.
The following calculation is required in C#.
I am done in converting the IP to binary.
But, how can i calculate the negation for the given Mask? Which need to be used in XOR.
Bin of 172.16.0.0 10101100.00010000.00000000.00000000
~Mask ~255.255.240.0 00000000.00000000.00001111.11111111
-----------------------------------------------------------
^ (XOR) 10101100.00010000.00001111.11111111
Result:dec 172.16.15.255
Thanks in advance.
Subrahmanyam.
|
|
|
|
|
Use the ^ operator for xor:
byte[] ip = {172,16,0,0};<br />
byte[] mask = {255,255,240,0};<br />
byte[] result = new byte[3];<br />
<br />
for (int i=0; i<4; i++) result[i] = ip[i] ^ (~mask[i]);
---
b { font-weight: normal; }
|
|
|
|
|
plz help me!!!!!!!!!!!!!!
I want to display my output form into the internet explorer.....(ex:Like acrobat reader opening in the internet explorer)
Ranjith
|
|
|
|
|
Hi.
Im trying to find a way to hookup to the Window Created, Window Destroyed and Window Activated messages from my C# windows app. NB, id like to hook up to these messages from a system-wide scope and not just my own application (for example, id like to know whenever an internet explorer window is opened or made active.
Is this possible ? Ive managed to hookup to the mouse_ll and keyboard_ll events, but no more !
Can anybody tell me if its possible ? and/or provide an example ?
THanks.~
Roy.
|
|
|
|
|
u can do this with vc there is no hooking with c# on other applications windows messages. even if you used win32 hooking API's implicitly from c#, you will hook only your own Application Messages.
marcoryos
|
|
|
|
|
When I prepare a C# application, is it supposed to work only on a stand-alone machine or it automatically works on a network (intranet) also?
If it automatically works (as a default) on the network also, then is there any way to control the number of computers on the network on which it will work? For example, if I want to allow its operation on only one machine on the network, can I do so, and if yes, then how?
|
|
|
|
|
I want connect to MYSQL database by C# and I want to use storeProcedure to access database but I can't do that. Please help me
|
|
|
|