Regarding creating page in subfolder of Pages document library

Nov 18, 2009 at 5:04 AM


     I am trying to create publishing page in subfolder of Pages document library . I am following your code , i created a template which displays subfolder of Pages library and then use can select that folder from there then page will be saved on that subfolder . In my code i used

<font size="2">




SPFolder pagesDocLib = web.GetFolder("Pages/" + ddlDocLib.SelectedValue); //ddlDocLib.SelectedValue is the name of subfolder  in Pages document library

then i follow the same code which is there in your source code .

page is created in subfolder but when i browsed it it shows me error

Server Error in '/' Application.

The resource cannot be found.