Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: RedBully

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Re: Help with extracting info from an XElement

    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...
  2. Replies
    1
    Views
    553

    Re: Design pattern for permmisions

    Hello,

    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.

    You could...
  3. Re: Help with Serializing an Array of a custom object

    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...
  4. Re: Hot to integrate my asp.net MVC web application with google map web service API.

    Hello,

    Google maps do have an api:
    http://code.google.com/apis/maps/index.html

    I've used it before with ASP.NET using javascript. Once you've learnt the basics of their API, it's very easy to...
  5. Replies
    5
    Views
    456

    Re: Hi ! Every body

    This might help:

    http://www.csharp-examples.net/get-application-directory/
  6. Replies
    6
    Views
    2,017

    Re: Marking Assembly Classes as Serializable!

    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...
  7. Replies
    4
    Views
    877

    Re: not rendering properly in IE8

    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.
  8. Replies
    4
    Views
    446

    Re: How to manipulate global vars

    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...
  9. Replies
    4
    Views
    446

    Re: How to manipulate global vars

    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...
  10. Replies
    3
    Views
    724

    Re: About decimals

    Glad I could be of help! :) Please mark this thread as resolved.
  11. Replies
    6
    Views
    7,957

    Re: CSS for Current Page with asp:Menu Control

    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...
  12. Replies
    3
    Views
    304

    Re: 2D Bool Array Element Checking

    firstClassFullyOccupied &= SeatList[i, j];

    is the same as writing

    firstClassFullyOccupied = firstClassFullyOccupied & SeatList[i, j];

    Please see...
  13. Replies
    1
    Views
    1,003

    Re: WebClient Async Upload for multiple servers

    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",...
  14. Replies
    3
    Views
    724

    Re: About decimals

    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 *...
  15. Replies
    3
    Views
    304

    Re: 2D Bool Array Element Checking

    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...
  16. Replies
    2
    Views
    2,518

    Re: HTTP Server Response Headers

    Sounds like an interesting project. Must give that a try sometime.
    This article may help:
    http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4
  17. Re: How to close 32 bit and 64 bit programs in C#

    I ran your program and closed both 64bit and 32bit Internet Explorer. I'm running 64bit Windows 7.
  18. Replies
    5
    Views
    412

    Re: sorting issue icomparer

    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>();
    instances.Add(new...
  19. Replies
    5
    Views
    412

    Re: sorting issue icomparer

    You need to inherit from IComparer or IComparer<myClass>

    e.g.


    public class myClass : IComparable<myClass>
    {
    int[] ints1;
    int[] ints2;
  20. Replies
    9
    Views
    1,910

    Re: Delimiter while loop error!

    Excellent. That's good news. Please mark this thread as 'Resolved'
  21. Re: String[] to Byte[] index by index please

    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...
  22. Re: How to close 32 bit and 64 bit programs in C#

    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...
  23. Re: read .pst file and convert it into DBX, Live, Thunderbird.

    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:
    http://msdn.microsoft.com/en-us/library/ff385210%28v=office.12%29.aspx
    You can then...
  24. Replies
    5
    Views
    412

    Re: sorting issue icomparer

    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...
  25. Replies
    9
    Views
    1,910

    Re: Delimiter while loop error!

    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...
Results 1 to 25 of 54
Page 1 of 3 1 2 3


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center