How to Implement the If Condition in my aspx page

I am new to this Asp.net application I need some code help.I have this Condition in my code \[code\]viewData.CheckCondition = _gen.BatchODSFiles.Where(x => x.Processed == 0).OrderByDescending(x => x.DateTimeAdded).FirstOrDefault();\[/code\]In the view I need to check if this ViewData.CheckCondition is not nullI need to execute this whole div tag \[code\]<div><fieldset><legend><b>Last Uploaded File Information</b></legend><br /><table border="1"><tr style="background-color:Aqua"><th>AddedBy</th><th>DateTimeAdded</th><th>File Name</th></tr><tr><td><%=Model.UserID %> </td><td><%=Model.DateTimeAdded %> </td><td><%=Model.FileName %> </td></tr></table><br /></fieldset></div>\[/code\]if it is null I need to hide the div tag.Can anybody help me out how to do this?
 
Back
Top