Results 1 to 2 of 2

Thread: 2 user controls on a webpage

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2003
    Location
    Georgia
    Posts
    32

    2 user controls on a webpage

    Let's say you have 2 user ctrls on 1 webpage. userctrl1 and userctrl2. When the page loads I want to activate userctrl1 and make userctrl2 not active. Once the user completes all of the required fields in userctrl1, the code checks out a project in visual sourcesafe and saves it to a directory. Once this is complete, a user selects a button and I want to make userctrl1 not active and activate userctrl2. I have code that reads the directory structure created in userctrl1 into a treeview in userctrl2. How can I fire the event to make userctrl1 not visible and activates or fires the event to make userctrl2 visible?

    Thanks

  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: 2 user controls on a webpage

    Create a method in each user control, when the method is called, each element within the user control is rendered as read only.

    So when you call the method to deactivate a control, it will be re-rendered as 'deactivated'.

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