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 are ASHX files?
Please briefly explain the usage of global.asax?
How does asp page work?
Explain the difference between asp and asp.net?
What types of data validation events are commonly seen in the client-side form validation?
i want to implement grid view value in paypal site. so how to create this code in asp.net with C#
What is difference between cache and session?
What are validators and list some validators of asp.net?
Mention few asp.net validators.
Explain culture and uiculture values.
What are the steps involved to fill a dataset?
Is asp.net a language?
i want to implement grid view value in paypal site. so how to create this code in asp.net with C#
How to reduce the width of textbox in editcommandcolumn of datagrid?
What is enableviewstatemac in asp net?