W
Web Team @ Borough of Poole
Hi All,
I have this code, which I am trying not to replicate many times in my
code-behind.
Me.img1.Visible = False
Me.img1UploadButton.Visible = True
Me.pnlImg1Uploader.Visible = True
Me.img1Cancel.Visible = True
I have mulitple controls on the page which do similar things. They are
all named in a consistant manner. e.g: img1, img2, img3...etc. I would
like to call one function to carry out the above code, but I am not
sure how to get the ID into the code. I guess something like this:
me.img+TheID+.Visible = False (Obviously that wont work, but should
give you an idea of what I'm trying to achieve)
Any help/suggestions will be appreciate.
Many Thanks.
I have this code, which I am trying not to replicate many times in my
code-behind.
Me.img1.Visible = False
Me.img1UploadButton.Visible = True
Me.pnlImg1Uploader.Visible = True
Me.img1Cancel.Visible = True
I have mulitple controls on the page which do similar things. They are
all named in a consistant manner. e.g: img1, img2, img3...etc. I would
like to call one function to carry out the above code, but I am not
sure how to get the ID into the code. I guess something like this:
me.img+TheID+.Visible = False (Obviously that wont work, but should
give you an idea of what I'm trying to achieve)
Any help/suggestions will be appreciate.
Many Thanks.