Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. User Control to DLL

User Control to DLL

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netperformancehelptutorial
9 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sudhir Yadav
    wrote on last edited by
    #1

    Hi, Can any body tell me how to convert the asp.net user control along with it's resource file ex localization and other class files that it is using and the ascx page to a single dll?? Help Appritiated. Do not forget to tune the Performance ;) Sudhir Yadav

    N J 2 Replies Last reply
    0
    • S Sudhir Yadav

      Hi, Can any body tell me how to convert the asp.net user control along with it's resource file ex localization and other class files that it is using and the ascx page to a single dll?? Help Appritiated. Do not forget to tune the Performance ;) Sudhir Yadav

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      Sudhir Yadav wrote:

      scx page to a single dll??

      When you build the project which contains ASCX files, DLL will be created automatically. But to use this you need to supply the ASCX files and resource files. If you want all in a single assembly, go for Custom server controls.


      My Website | Ask smart questions

      S 1 Reply Last reply
      0
      • N N a v a n e e t h

        Sudhir Yadav wrote:

        scx page to a single dll??

        When you build the project which contains ASCX files, DLL will be created automatically. But to use this you need to supply the ASCX files and resource files. If you want all in a single assembly, go for Custom server controls.


        My Website | Ask smart questions

        S Offline
        S Offline
        Sudhir Yadav
        wrote on last edited by
        #3

        Thanks Navneet But i thought that there be any other solution other then custom control. Actually i was trying to avoid lengthy code to write composite controls. If there i anything else that you know please tell.

        Do not forget to tune the Performance :-) Sudhir Yadav

        M N 2 Replies Last reply
        0
        • S Sudhir Yadav

          Thanks Navneet But i thought that there be any other solution other then custom control. Actually i was trying to avoid lengthy code to write composite controls. If there i anything else that you know please tell.

          Do not forget to tune the Performance :-) Sudhir Yadav

          M Offline
          M Offline
          Mri1a
          wrote on last edited by
          #4

          hello !! I have a project with me .. A namespace has 6 ".cs" files and I want to create a dll for that namespace and add to the project :- I am already having dll added but i have updated one of the .cs file now when I build the project and when i look into the dll , it does not shows any newly created dll .. why is it so . how can add a updated dll . plz hlp me out

          Mrinal

          S 1 Reply Last reply
          0
          • M Mri1a

            hello !! I have a project with me .. A namespace has 6 ".cs" files and I want to create a dll for that namespace and add to the project :- I am already having dll added but i have updated one of the .cs file now when I build the project and when i look into the dll , it does not shows any newly created dll .. why is it so . how can add a updated dll . plz hlp me out

            Mrinal

            S Offline
            S Offline
            Sandeep Akhare
            wrote on last edited by
            #5

            Dll will be created by the name of Application i think is it wen application or class library check the details it will override the existing one with same name so check the detials of that dll

            Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

            1 Reply Last reply
            0
            • S Sudhir Yadav

              Thanks Navneet But i thought that there be any other solution other then custom control. Actually i was trying to avoid lengthy code to write composite controls. If there i anything else that you know please tell.

              Do not forget to tune the Performance :-) Sudhir Yadav

              N Offline
              N Offline
              N a v a n e e t h
              wrote on last edited by
              #6

              I don't find any other alternative. That's the way how ASCX files works. It's a replacement for include files in classical ASP. It needs the ASCX files to be present in the requested path. In ASP.NET 2.0 comes with WebResource concept, which allows you to embed the resources and access it with a temporary URL. I don't how much this is helpful in ASCX files. i successfully implemented that in Custom Server controls


              My Website | Ask smart questions

              S 1 Reply Last reply
              0
              • N N a v a n e e t h

                I don't find any other alternative. That's the way how ASCX files works. It's a replacement for include files in classical ASP. It needs the ASCX files to be present in the requested path. In ASP.NET 2.0 comes with WebResource concept, which allows you to embed the resources and access it with a temporary URL. I don't how much this is helpful in ASCX files. i successfully implemented that in Custom Server controls


                My Website | Ask smart questions

                S Offline
                S Offline
                Sudhir Yadav
                wrote on last edited by
                #7

                Ok, thanks Navneeth, Mean while i am trying the WebResource method of yours. Let's see what happens. I'v never done that before, so if i am having any trouble. I will bother you again bro. Bi 4 now

                Do not forget to tune the Performance :-) Sudhir Yadav

                1 Reply Last reply
                0
                • S Sudhir Yadav

                  Hi, Can any body tell me how to convert the asp.net user control along with it's resource file ex localization and other class files that it is using and the ascx page to a single dll?? Help Appritiated. Do not forget to tune the Performance ;) Sudhir Yadav

                  J Offline
                  J Offline
                  John ph
                  wrote on last edited by
                  #8

                  Converting a User control into Custom-control[^]

                  Regards
                   - J O N -


                  S 1 Reply Last reply
                  0
                  • J John ph

                    Converting a User control into Custom-control[^]

                    Regards
                     - J O N -


                    S Offline
                    S Offline
                    Sudhir Yadav
                    wrote on last edited by
                    #9

                    Hi JON, Thanks for your concern. Yes, i have already tried that method of using the user control. Creating the UC to DLL using web setup but when i reference that dll into different project it gives compile time error that dll not found for the one which i had added manually in the aspx file. If you have something to say, you are welcome. Also, i wanted to add the language resourse and other file into that dll so that it's a single unit all together. Is that possible?

                    Do not forget to tune the Performance :-) Sudhir Yadav

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups