How to show latest user control

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • markh
    New Member
    • Jan 2009
    • 5

    How to show latest user control

    Hi

    Can anyone tell me how I get an html page to show my latest user control.

    I created a simple user control in c# (vs2008 pro), copied the dll to the web site and added the html object tags to the page. Bingo! :)

    Then I chnaged the control and copied the new dll to the web site, but the html page still showed the old control.

    I checked the version number on the dll so I knew I had the new version.

    I forced a changed by giving the new dll a new name :( But there must be a better way. :)

    Any thoughts?

    Thanks

    Mark
    Last edited by Frinavale; Jan 16 '09, 02:39 PM. Reason: moved to asp.net from .net
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    You need to flush it from your global assembly cache (gac)

    Comment

    • markh
      New Member
      • Jan 2009
      • 5

      #3
      Plater

      Thanks. I used gacutil to delete the download cache (gacutil.exe /cdl) and that worked fine. Is that what you meant? Or is there a simpler way?

      Mark

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        Thats the only way I've seen how to do it.
        Not sure why you have to do that.
        You might be able to fiddle with version numbers and publishing it, and it might know to load the newer version automatically. But I have not played with it

        Comment

        • markh
          New Member
          • Jan 2009
          • 5

          #5
          I had already tried version nums before posting. Makes no difference.

          Mark

          Comment

          Working...