c# - Can I programmatically create a directory and add a page default.aspx whose content I wish to provide from code behind? -


what trying making directory each video upload , in each directory there default.aspx page show video. how can this?

what have tried far :-

    directoryinfo di = directory.createdirectory("~/movies/" + next_id + "-" + txt_title.text);             string filepath="~/movies/" + next_id + "-"+ txt_title.text+"/default.aspx";             if (file.exists(filepath))             {                 label1.text = "failed!";                 return;             }             else             {                 file.create(filepath);              } 

but after if have no clue how append aspx elements file. please give hint


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -