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. Help Please

Help Please

Scheduled Pinned Locked Moved ASP.NET
csharphelpvisual-studiotutorial
5 Posts 4 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.
  • Y Offline
    Y Offline
    yasso_115
    wrote on last edited by
    #1

    I am using Visual Studio 2005 and programming with VB.Net The problem is that, I am using a menu in the main page and when i click on this menu it loads a websuercontrol. In this websuercontrol there is a dropdownList "i checked its autopostback property" but when i choose one of the items in this dropdown list the webusercontrol disappears, and i don't want that. Please tell me how to solve this probelm

    yasso

    G 1 Reply Last reply
    0
    • Y yasso_115

      I am using Visual Studio 2005 and programming with VB.Net The problem is that, I am using a menu in the main page and when i click on this menu it loads a websuercontrol. In this websuercontrol there is a dropdownList "i checked its autopostback property" but when i choose one of the items in this dropdown list the webusercontrol disappears, and i don't want that. Please tell me how to solve this probelm

      yasso

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      For every postback the page is recreated from the original markup. If you want your user control to stay on the page, you have to add it in every postback.

      --- single minded; short sighted; long gone;

      Y 1 Reply Last reply
      0
      • G Guffa

        For every postback the page is recreated from the original markup. If you want your user control to stay on the page, you have to add it in every postback.

        --- single minded; short sighted; long gone;

        Y Offline
        Y Offline
        yasso_115
        wrote on last edited by
        #3

        and how can i add it in every postback, by the way i have 5 menus and each one loads a different webusercontrol. Thanks for ur help

        yasso

        E I 2 Replies Last reply
        0
        • Y yasso_115

          and how can i add it in every postback, by the way i have 5 menus and each one loads a different webusercontrol. Thanks for ur help

          yasso

          E Offline
          E Offline
          enjoycrack
          wrote on last edited by
          #4

          in the Page_Load event... << >>

          8x Solutions Ltd

          1 Reply Last reply
          0
          • Y yasso_115

            and how can i add it in every postback, by the way i have 5 menus and each one loads a different webusercontrol. Thanks for ur help

            yasso

            I Offline
            I Offline
            Ibuprofen
            wrote on last edited by
            #5

            I would bulid a switch in your page load, to detect what user is who, and set what visible you need them to see.

            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