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
Post a Comment