Get a collection of all available page names at run time

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Get a collection of all available page names at run time

    I need to get page names of all my available ASP.Net pages
    in my ASP.Net project at run time. How do I do that?

    Thanks
    Feng Guest

  2. Similar Questions and Discussions

    1. Custom DataSourceControl with parameter collection at design time
      I have a custom DataSourceControl which has a parameter collection defined as a property on the object. While everything works just fine I'm having...
    2. Design time doesn't update when changing collection
      I have a custom control with a ListItemCollection. If I add items by hand in the aspx and switch to design time view, everything works fine....
    3. custom control (with collection) do not render at Design time
      Hello, I built a custom control... Everithing is working fine... EXCEPT... ;-) When I first place the control on the webform at design time it...
    4. Collection disappearing at run time
      I really, really wanted to finish this one without asking anyone for help. But I've been beating my head against this thing, and I'm getting...
    5. Custom collection design time support
      Hi Everyone, I'm having problems implementing design time support for a custom collection in a custom web control. I have managed to get it to...
  3. #2

    Default Re: Get a collection of all available page names at run time

    Check out the System.IO.DirectoryInfo or System.IO.FileInfo objects...they
    let you browse directories, etc. Just read all *.aspx files in your app's
    folder....

    --
    Craig Deelsnyder
    Microsoft MVP - ASP/ASP.NET


    "Feng" <lifeng26@msn.com> wrote in message
    news:017401c3547a$75b1b670$a101280a@phx.gbl...
    > I need to get page names of all my available ASP.Net pages
    > in my ASP.Net project at run time. How do I do that?
    >
    > Thanks

    Craig Deelsnyder Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139