asp.net - If statement inside Repeater control -
Although there are many questions on this topic, I have not found any satisfactory answer.
I should be a repeater in which complex content is required to be displayed. A if statement is required inside the template I can not take it behind code because I need user control inside the server control and repeater.What I want here:
& Lt;% or%> & Lt;% - HTML content with server and user controls -%> & Lt;% end if% & gt; & Lt; / ItemTemplate & gt; & Lt; / ASP: Repeater & gt; A compiler hurls the above error, any ideas on how to achieve it? If there is a need to evaluate the IsFix field in the statement statement.
I will place each group of content within a server side panel, then on itemDataBound event, a panel Set the visibility to the right, and the other is false. If visibility is set to server side, then front end content is never provided.
Comments
Post a Comment