Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

Arpikusz

@Arpikusz
About
Posts
3
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • ConvertToReadableNumber
    A Arpikusz

    Can anyone tell me what this code does? :-D I found it in a project I inherited:

    public static string ConvertToReadableNumber(decimal num)
    {
    bool isNegative = num<0;
    num = Math.Floor(num);
    string numTxt = Math.Abs(num).ToString();
    string numReadable = "";
    int counter =0;
    for (int i = numTxt.Length-1; i >=0; i--)
    {
    if (counter > 0 && counter % 3 == 0)
    numReadable = "," + numReadable;
    numReadable = numTxt[i] + numReadable;
    counter++;
    }
    if(isNegative)
    numReadable = "-"+numReadable;
    return numReadable;
    }

    I'm guessing that a ToString() would have done the job. :)

    The Weird and The Wonderful question career

  • Only domain users can use the site?????
    A Arpikusz

    Hi! I ran into a problem today when we installed our project to our IIS machine. (Running IIS 7.5) I turned on windows authentication, I added an "allow" rule for an AD group and a "deny" rule for the other users. The strange thing was that from the 6 users in that particular AD group the 4 that were part of the Domain Admins group were able to use the site but the users who were only Domain Users could not. This really frustrated me, because I don't want to make everybody a Domain Admin who uses the site. What can I do???

    ASP.NET windows-admin security help question

  • Pirates Arrghhh!
    A Arpikusz

    foreach(Pirat p in Somalia) { p.SinkBoat(); } :)

    The Lounge
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups