Type: Posts; User: RedBully
Search took 0.01 seconds.
Load your xml into an XmlDocument and the use an xpath query to extract it.
Read about xpath here: http://www.w3schools.com/xpath/default.asp
Read about XmlDocument here...
One starting point is to have 'Groups' and make your users members of those groups. Assign the permissions to the groups and infer user permission from their group membership.
April 26th, 2011, 01:16 PM
A couple of things.
Your MyDocuments starts it life being null and so the call to Add will create an error becuase MyDocuments is not initialised.
Also, I do believe that XmlSerialisation...
April 24th, 2011, 09:32 AM
Google maps do have an api:
April 22nd, 2011, 03:45 PM
This might help:
April 22nd, 2011, 03:32 PM
Could you extract the data from the existing classes and put it into your own class. You could then serialise your own class.
If you want to use the XmlSerialiser, remember that only public...
April 22nd, 2011, 03:26 PM
One of the first things to try in IE8 is to turn on compatibility view. I found that even some asp.net web controls just don't work unless compatibility view is turned on.
April 15th, 2011, 10:10 AM
I like your solution.
Using a single instance of a non static class that you share between your objects (as you have done) can be a better way because:
1. Having global objects means that...
April 15th, 2011, 10:00 AM
Your public class is not static and so therefore not really 'Global' in the way you want it to be. You will need to make your member variable static too. You would access it using...
April 15th, 2011, 09:49 AM
Glad I could be of help! :) Please mark this thread as resolved.
April 15th, 2011, 05:51 AM
Here is some sample code that works and should give you an idea of how to acheive what you want.
We have an Aspx page with a menu called MainMenu. We set two styles on it for menu items and...
April 15th, 2011, 02:36 AM
firstClassFullyOccupied &= SeatList[i, j];
is the same as writing
firstClassFullyOccupied = firstClassFullyOccupied & SeatList[i, j];
April 14th, 2011, 12:43 PM
In your call to UploadFileAsync, add an extra parameter (object userToken) that is the ip address or some other unique identifier.
wc.UploadFileAsync(new Uri("http://" + _ip + DBPath), "POST",...
April 14th, 2011, 12:23 PM
Always need to be careful with type conversion.
This code works here:
decimal numbers = 1863.8M;
int percentage = 20;
decimal result = 0.0M;
result = numbers / percentage *...
April 14th, 2011, 12:14 PM
Your break statement is breaking out of the inner for loop and not the outer for loop. This means you are still checking seats in first class even though you have found that there is a free seat. As...
April 14th, 2011, 11:59 AM
Sounds like an interesting project. Must give that a try sometime.
This article may help:
April 13th, 2011, 02:46 AM
I ran your program and closed both 64bit and 32bit Internet Explorer. I'm running 64bit Windows 7.
April 12th, 2011, 04:48 PM
Let me know how it goes.
I prefer to you use List<myClass> instead of myClass because list has the Sort method on it.
List<myClass> instances = new List<myClass>();
April 12th, 2011, 12:45 PM
You need to inherit from IComparer or IComparer<myClass>
public class myClass : IComparable<myClass>
April 12th, 2011, 12:05 PM
Excellent. That's good news. Please mark this thread as 'Resolved'
April 12th, 2011, 11:58 AM
This is what I came up with but I'm unhappy with all the conversions going on
const int GEN_SIZE = 5;
string text = setpointBoxQS.Text;
byte gen = new...
April 12th, 2011, 11:27 AM
This should work for 32bit programs too. It looks like you're navigating to the executable in your file system.
32 bit apps on a 64bit OS are normally stored in C:\Program Files (x86) instead of...
April 12th, 2011, 10:54 AM
I think first port of call is to be able to read in the PST files for which you'll need to know the format:
You can then...
April 12th, 2011, 10:47 AM
Each class has an array of ints in it
e.g. myClass 1 could have an ints2 array of 1,2,3,4,5
e.g. myClass 2 could have an ints2 array of 1,2,3,4,5
In this case, when you sort your array of...
April 12th, 2011, 10:14 AM
All the data you need is in the countyCount dictionary.
Put a break point in the final foreach loop I wrote and you'll see that the name variable will step through the names our your counties and...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.