What is the difference between Server.Transfer and Response.Redirect?

In Server.Transfer page processing transfers from one page to the other page without making a round-trip back to the client’s browser. This provides a faster response with a little less overhead on the server. The clients url history list or current url Server does not update in case of Server.Transfer Response.Redirect is used to redirect … Read more

In which event of page cycle is the ViewState available?

After the Init() and before the Page_Load(). In ASP.NET, the ViewState is available in the Load event of the page life cycle. This event occurs after the Init event and before the PreRender event. Therefore, any data stored in the ViewState can be accessed or manipulated during the Load event.

What’s the use of Response.Output.Write()?

We can write formatted output using Response.Output.Write(). In ASP.NET, Response.Output.Write() is used to directly write content to the output stream of the current HTTP response. This method allows you to dynamically generate content and send it directly to the client’s browser without having to rely on server controls or pre-defined HTML markup. Here’s a breakdown … Read more

What is ASP.Net?

It is a framework developed by Microsoft on which we can develop new generation web sites using web forms(aspx), MVC, HTML, Javascript, CSS etc. Its successor of Microsoft Active Server Pages(ASP). Currently there is ASP.NET 4.0, which is used to develop web sites. There are various page extensions provided by Microsoft that are being used … Read more