acess a control which was outside the datalist in itemcommand asp.net2.0,c#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sridhar21
    New Member
    • Feb 2007
    • 26

    acess a control which was outside the datalist in itemcommand asp.net2.0,c#

    hi to all


    I am sridhar

    My doubt is


    I got a panel and a datalist and a button inside the datalist in my webform


    panel placed out side the datalist and default VISIBLE FALSE
    when i click the button which was inside the datalist, i want to make panel VISIBLE TRUE in item command


    i.e

    I want to access the outside control in itemcommand

    thanks in advance
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    You want to click a button inside panel that is not visible?

    Comment

    • sridhar21
      New Member
      • Feb 2007
      • 26

      #3
      Originally posted by kenobewan
      You want to click a button inside panel that is not visible?
      Thanks for reply

      I think that u can't understand my question

      i have a panel set default visible false and a iframe is inside that panel.

      inside the iframe i am calling another page contains the details of the users

      My datalist displays the list of users in linkbutton

      when i click the linkbutton
      panel should be visible and the detail should be display in the panel which was out side the Datalist

      Comment

      • abhi kapoor
        New Member
        • Aug 2012
        • 1

        #4
        i m too faacing the same problem if u have got the answer plzz tell me.
        thnx

        Comment

        • Mudassir
          New Member
          • May 2012
          • 85

          #5
          well in the OnClick event of the LinkButton, set the panels visibility to true like
          Code:
          myPanel.Visible=True;
          and if you want to show some specific data like data against some specific user the bind the linkbutton with the user id and on click event initialize the session and show the data against that session like
          Code:
          LinkButton myLinkButton=(LinkButton)sender;
          Session["uID"]=myLinkButton.CommandArgument.ToString();
          now you have the specific User ID in session
          ...
          Addan

          Comment

          Working...