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
What is special types forms
Why would anyone need to implement their own hashtable or linked list?
What is the use of placeholder control?
What is caching? What are different ways of caching in asp.net?
Can we set which type of comparison we want to perform by the CompareValidator control?
What is difference between ispostback and autopostback in asp net?
What is asp.net response object?
How can you debug your.net application?
How to make sure that contents of an updatepanel update only when a partial postback takes place (and not on a full postback)?
To bind columns manually which tags do you need to add within the asp:datagrid ?
What is a postback in asp net?
What are the uses of reflection?
explain code with multi inhertance
Define repository pattern in mvc.net? : asp.net mvc
What is autopostback true?