>>Hi Al,
>>
>>There may be other ways, but what I have done is to right-click the aspx file in the Solution Exlorer window and choose "Copy". Then Right click the folder in the project you want the copy of the files and select "Paste". This will place a copy of the files in the folder with name "Copy of...". You can then rename the aspx file in the solution Explorer ( which will automatically rename the cs and resx files ), open it and make any necesssary modifications.
>>
>>Bill
>>
>>>VS .Net 2003:
>>>
>>>I've been playing around with a default web form, Default.aspx. Now that I've got it the way I want it, I want to save it to another name (e.g. NewForm.aspx) and make changes to NewForm. However, when I do "Save As...", NewForm.aspx gets created, but Default.aspx disappears from my project. Is there any way to get to work the way I expect (and want)?
>
>Thanks, Bill - that works great! I was surprised the File...Save As option didn't work as I "expected", it doesn't seem to follow the Windows "standard" behaviour.
Al & Bill,
Actually, "Save As..." does what it's name implies. The old file is still there, but is excluded from the project because if it remained, it would immediately trigger namespace/type conflict errors. If you want to re-include it in the project, go to Project/Show all files, right-click on the file, and choose Include in project.
I think the use pattern than MS had in mind is to do the Save As, then open the old file and change the class name, then include it in the project.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only