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 the advantages and disadvantages of session?
What is the use of global.asax file?
In What Order Do The Events Of An Aspx Page Execute. As A Developer Is It Important To Undertsand These Events?
Why do I get error message "could not load type" whenever I browse to my asp.net web site?
How can exception be handled with out the use of try catch?
When maintaining session through sql server, what is the impact of read and write operation on session objects?
Explain the benefits of viewstate?
Explain the difference between asp and asp.net?
What are the modes of updation in an updatepanel? What are triggers of an updatepanel?
How to comment out asp.net tags?
What is the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc
What do you mean by marshalbyref?
I have an external link in my application say www.xyztest.com. Today this site works on http protocal. Tommorow it may run on https. So i cant hardcore the protocal in the site. When a user clicks on the link how can i know if the external site works on http or https and takes him to that place?
To display data in the combo box, prior to setting the Data Source, what kind of property on a Combo Box do you set with a column name?
What is the use of the tag in the web.config file?