I rename an ascx file now I screwed my code up. When I tried to call that control e.x page.rules ... I am getting an error that does not contain definition for "rules." It was rule, and I rename it to "rules." Can someone help?
Printable View
I rename an ascx file now I screwed my code up. When I tried to call that control e.x page.rules ... I am getting an error that does not contain definition for "rules." It was rule, and I rename it to "rules." Can someone help?
Rename it back to .ascx.
Yes it's ascx.. I meant in the solution window:
it's called rule.asxc, and I just right click -> selected rename -> then typed rules.ascx
Save your code somewhere. Remove the .ascx. Add a web user control called rules.ascx. Re-add it to the page with the code you saved.
nope still not solved the problem. I have a snapshot of my code where I want to call it.
But somehow it only populated "rule" when I put the dot after Pages in VS2005, and "rules" file is not there.Code:Forum.GetLink( Pages.rules)
What is Pages?