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 skin in asp.net?

522


what are the security certificates used in webservices?

1501


What are assemblies and namespaces and explain the difference between them ?

570


Explain the use of view state?

566


a)COM Callable Wrapper b)Runtime Callable Which one of the above is Win32 API in .Net?

1599






What is anonymous authentication?

589


Explain what does wsdl stand for?

561


What is the mvc model?

581


What’s difference between “optimistic” and “pessimistic” locking?

577


In the Repeater control which way you can edit?

651


What is session in http request?

556


What is different authentication mechanisms used in ASP.NET?

591


Explain the difference between an exe and a dll?

529


where can i gather the materials for MCP certification

4489


What are the differences between application object and session object?

495