Make a copy of an aspx page without Ambiguity errors

237 Views Asked by At

I need to create a public version of an .aspx page within the same project, with just a few minor modifications. My boss just wants the ability to have a link to the new public version of the page. Whenever I create a copy of that page and the reports it connects too though, I just get a lot of Ambiguity Errors. Is there a way to avoid this? I was thinking of trying to change the namespace of all the documents within it, but so far it's just been producing more errors.

The other option would be to go through and change each individual variable by hand, but there are around 12 different documents each with an aspx page and cs page that would need to be edited.

1

There are 1 best solutions below

4
On

Just change the name of the code-behind class. For example, from:

public class SomePage : Page {

To:

public class SomePagePublic : Page {