0

I can add an existing item to the solution explorer manually. But is there a way to do this programmatically (i.e., at run time)?

3
Contributors
3
Replies
5
Views
5 Years
Discussion Span
Last Post by chaitali238
0

Are you referring to adding an existing item to the project in the VS IDE? And you want to do that programmatically when the project is running? Because that would be the same as uploading a file or image and saving it. Is that what you want to do?

0

Yes, that is exactly what I want. Actually, I want to create a page, then write its contents, and then redirect to the newly created page. And all these has to be done dynamically.

I have tried both File.CreateText() and FileUpload.SaveAs() methods. These procedures were able to create the files, which can be seen in the corresponding folders as per the codes I have used.

But the problem is, they are not shown in the solution explorer, even if I refresh it. That is the reason I am not able redirect to the newly created page once it is created.

Any suggestion to solve it??????

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.