Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copying an ASP.NET page in VS.NET?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01000742
Message ID:
01000768
Vues:
14
Whenever I have done this, I copied the ASP.NET page into the same project, and I wanted to keep the same Namespace. However, you have to change the class name in the code-behind file. You can't have 2 classes with the same name is a project unless you change the namespace.

>Everything works as advertised <g>. Thank you. I noticed that the new page has exactly the same namespace and class name as the existing one (the one from which copid). Do you (or anybody who reads this) see a potential conflict with two ASP.NET pages having exactly the same namespace and classname?
>
>>In the Solution Explorer, you can right-click on the ASP.NET page, select Copy, then click on the project (not the solution) and paste. It creates an ASP.NET named Copy Of MyFileName.aspx and the corresponding code behind page.
>>
>>>What is the most efficient (and fast) method to duplicate an existing ASP.NET page (HTML and the code behind)?
>>>
>>>For example, I have an ASP.NET page with code behind. I want to create a new page (new name) as an exact copy of the existing page. It is not that difficult and time consuming to create a new page and copy and paste the HTML side and then the code behind page. But I was wondering if there is a more efficient method.
>>>
>>>Thank you for any suggestions.
Chris McCandless
Red Sky Software
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform