Results 1 to 6 of 6

Thread: rename ascx file

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2005
    Posts
    1,170

    rename ascx file

    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?

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: rename ascx file

    Rename it back to .ascx.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2005
    Posts
    1,170

    Re: rename ascx file

    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

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: rename ascx file

    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.

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2005
    Posts
    1,170

    Re: rename ascx file

    nope still not solved the problem. I have a snapshot of my code where I want to call it.

    Code:
    Forum.GetLink( Pages.rules)
    But somehow it only populated "rule" when I put the dot after Pages in VS2005, and "rules" file is not there.

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: rename ascx file

    What is Pages?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width