What is the difference between Server.Transfer and
Response.Redirect? Why would you choose one over the other?
Answer Posted / for ref
Please ignore.
Put this in aspx:
<div style="<%= displayProp %>">
<table cellpadding="0" cellspacing="0" border="1">
<tr>
<td>Name:</td>
<td>Thiyagu</td>
</tr>
<tr>
<td>Age:</td>
<td>25</td>
</tr>
</table>
</div>
Put this in .cs
int val = 0;
if (val == 0)
{
displayProp = "display:none;";
}
else
{
displayProp = string.Empty;
}
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
How do we sort the data from a dataset?
Which is better session or viewstate?
Explain how is a property designated as read-only?
What is distributed system in asp.net?
What is the difference between ASP.NET Webforms and ASP.NET MVC?
How to use push notification?
What's the use of response.output.write()?
What is the difference between the asp and asp.net?
Can you use c# without .net?
What is voluum?
What is a page life cycle? What are the events in a page life cycle?
Define globalization and localization.
What are the differences between clr & cts?
What methods are fired during the page load? Init()
What is microsoft windows sharepoint services?