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. can i include .aspx into another .aspx file ?

can i include .aspx into another .aspx file ?

Scheduled Pinned Locked Moved ASP.NET
csharpjavaasp-nethelpquestion
8 Posts 3 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    I just switched from Jsp to Asp.Net. My working .aspx file has become very large , and i am using a wizard and i want to separate codes for each step in different files . Cann anyone Help , coz it become so bulky !

    N K 2 Replies Last reply
    0
    • L Lost User

      I just switched from Jsp to Asp.Net. My working .aspx file has become very large , and i am using a wizard and i want to separate codes for each step in different files . Cann anyone Help , coz it become so bulky !

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      If you are using ASP.NET 2.0 there is a wizard control that should help you. Consider your design also. Is it necessary to have everything all on the same page, or would breaking it up into more pages be better for development, maintenance and performance?


      only two letters away from being an asset

      1 Reply Last reply
      0
      • L Lost User

        I just switched from Jsp to Asp.Net. My working .aspx file has become very large , and i am using a wizard and i want to separate codes for each step in different files . Cann anyone Help , coz it become so bulky !

        K Offline
        K Offline
        Krugger404
        wrote on last edited by
        #3

        One solution is to use web UserControls User controls come as ascx files and contain the same functionality (even pageload is there) as an aspx. The great thing is that you can dynamically load and unload usercontrols on an aspx by using a panel or some other methods. In visual studio, add a new file of type " Web User Control" for each step of your wizard and add the required coding in each ascx. Then use a panel in your aspx to load and unload the different user controls programmatically. Hope this helps.:) Carpe diem Krugger

        N 1 Reply Last reply
        0
        • K Krugger404

          One solution is to use web UserControls User controls come as ascx files and contain the same functionality (even pageload is there) as an aspx. The great thing is that you can dynamically load and unload usercontrols on an aspx by using a panel or some other methods. In visual studio, add a new file of type " Web User Control" for each step of your wizard and add the required coding in each ascx. Then use a panel in your aspx to load and unload the different user controls programmatically. Hope this helps.:) Carpe diem Krugger

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          Not a good architecture for building a wizard. Loading and unloading user controls on the fly has problems that will become apparent when you try using doing it. Have you?


          only two letters away from being an asset

          K 1 Reply Last reply
          0
          • N Not Active

            Not a good architecture for building a wizard. Loading and unloading user controls on the fly has problems that will become apparent when you try using doing it. Have you?


            only two letters away from being an asset

            K Offline
            K Offline
            Krugger404
            wrote on last edited by
            #5

            I did use it but not for wizards. Can you please tell me more about these "practical problems" plz? Carpe diem Krg

            N 1 Reply Last reply
            0
            • K Krugger404

              I did use it but not for wizards. Can you please tell me more about these "practical problems" plz? Carpe diem Krg

              N Offline
              N Offline
              Not Active
              wrote on last edited by
              #6

              If you had seriously used this technique for real production applications you would have encountered the issues of state management and viewstate corruption.


              only two letters away from being an asset

              K 1 Reply Last reply
              0
              • N Not Active

                If you had seriously used this technique for real production applications you would have encountered the issues of state management and viewstate corruption.


                only two letters away from being an asset

                K Offline
                K Offline
                Krugger404
                wrote on last edited by
                #7

                Thanks for the clue. I will give it a go. :-) Carpe diem Krg

                L 1 Reply Last reply
                0
                • K Krugger404

                  Thanks for the clue. I will give it a go. :-) Carpe diem Krg

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #8

                  Thanks !For your help I will take care about the practical problems also.

                  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