Results 1 to 13 of 13

Thread: [2008] Reordering [UNRESOLVED]

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2006
    Posts
    592

    Question [2008] Reordering [UNRESOLVED]

    I am using Microsoft.Web.Administration to create NEW websites programatically.

    How do i change all ID's starting from zero? Currently i have about 100 websites and they are ordered like following:



    1, 2, 4, 18, 200, 1234, 232324, 2455344 etc. etc.

    And i want them ordered like this: 1, 2, 3, 4, 5, 6, 7, ... etc. up to 100.

    This question doesn't have to refer IIS and the Administration class directly.
    I just need to change the id like you change the values into database or array/arraylist or generic list.

    Means the value with 1234 should be 6 if six is not already taken or 18 should be 3 etc.


    Thanks
    Last edited by selanec; Apr 6th, 2009 at 04:00 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width