Web User Control

Results 1 to 2 of 2

Thread: Web User Control

  1. #1
    Join Date
    Dec 1969

    Default Web User Control

    What i try to do is.. displaying the correct Control depending of what i have in my QueryString... how do i call the correct ID of the control i want to hide or display ???<BR><BR>thanx<BR><BR>=======MY CODE=======<BR>----Page Load Event----<BR>Dim Team As Control = LoadControl("Controls/PC_Equipes.ascx")<BR>Dim NoTeam As Control = LoadControl("Controls/NoEquipes.ascx")<BR><BR>If Not Request.QueryString("TeamName") = "LNHockey" Then<BR> Team.Visible = True<BR> NoTeam.Visible = False<BR> Else<BR> Team.Visible = False<BR> NoTeam.Visible = True<BR> End If

  2. #2
    Join Date
    Dec 1969

    Default RE: Web User Control

    Well this looks right, I guess a couple of things which you could check are whether your control has id="team" in it and then whether your controls are declared in the same page as the page you are on.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts