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


Please Help Members By Posting Answers For Below Questions

What is asp net application object?

535


What does ascx stand for?

504


Where is the session stored?

633


How many languages are supported by .NET at present time?

285


What are client activated objects and server activated objects?

512






What is cookies in asp net?

521


Explain program to call the js function when the change is being made in the dropdown list made in asp.net mvc? : asp.net mvc

528


What are custom user controls in asp.net?

512


What parameters can you pass in the url of the api? Can get and post use the same url?

556


What is difference in .net 1.1 and .net 2.0?

584


How does u get record no from 5 to 15 from a dataset of 100 records?

509


What are the difference between function and stored procedure in .net programming language?

251


Explain the difference between server control and html control.

474


Take a Large textbox allow to type any data. Task 1:display the count of vowels in a lable on key press event of the textbox Task 2:dispaly count of dates in a lable when dates in following foramats:dd/mm/yy , mm/dd/yy , yy/mm/dd. Task3:compare 2 dates and display both are same or not which dates are in dd/mm/yy and mm/dd/yy farmats.

2591


What is AutoPostback?

592