Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HowTo SaveAs a File to a New Name
Message
From
26/05/2005 03:05:57
 
 
To
25/05/2005 13:08:49
Keith Payne
Technical Marketing Solutions
Florida, United States
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
ASP.NET
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01017339
Message ID:
01017726
Views:
19
>>>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.

That's exactly what I encountered. I had to change the class name, now all is well.
>
>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.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform