2

I am have td in repeater. i want show and hide it on condition

How to Find a html tag from the repeater in C#?

for find button in repeater we write this code

Button btn=Repeater1.FindControl("Button1") as Button;

but for html a tag?

----- atag=Repeater1.FindControl("id of a tag") as -------;

please fill in the -------

behnamhaji
  • 151
  • 7
  • 1
    What code do you have to display us? Generally speaking - you should use FindControl and Controls to find the proper one. But without code it's rather difficult to actually guide you. – Allan S. Hansen Apr 30 '14 at 08:14
  • 2
    The control must run at server. If it does, use "FindControl" method – Itiel Apr 30 '14 at 08:17
  • Find the first example of how to use the Repeater control and you'll have your answer. You're asking about the very basics of working with ASP.NET and repeaters. If that doesn't help you, revise your question to be more specific and show what you've tried so far etc. – Luaan Apr 30 '14 at 08:33

0 Answers0