Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What happens after a rename?
Message
 
To
14/10/2003 00:03:11
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00838395
Message ID:
00838409
Views:
17
This message has been marked as the solution to the initial question of the thread.
>In the VS.NET interface, I rename the aspx file I was working with to another name. When I test that aspx file locally, it still works. However, the aspx file, right on the first line, contains a reference like this:
>
>
>< @ Page Language="vb" AutoEventWireup="false" Codebehind="UpcomingMeeting.aspx.vb"
> Inherits="UserGroupMeetingTracker.WebForm1" >
>
>
>WebForm1 was the previous name I used. I renamed the aspx file to UpcomingMeeting.aspx. Now, what I don't understand is that this still works even with this old WebForm1 reference in this line. If I change it manually to UpcomingMeeting, it doesn't work anymore. I can't find any reference in the project to WebForm1. So, how does this work and how can I succeed to have this work by putting UpcomingMeeting in there instead?


Did you do more then just rename the file? You will need to rename the class it was based upon, in the code behind. Or make sure there are no old references in the RESX file. But, I would just make sure you rename the file and the class in the code behind to make sure it changes.

Morgan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform