In earlier versions of IIS, if we wanted to send a user to a new Web page, the only option we had was Response.Redirect. While this method does accomplish our goal, it has several important drawbacks. The biggest problem is that this method causes each page to be treated as a separate transaction. Besides making it difficult to maintain your transactional integrity, Response.Redirect introduces some additional headaches. First, it prevents good encapsulation of code. Second, you lose access to all of the properties in the Request object. Sure, there are workarounds, but they're difficult. Finally, Response.Redirect necessitates a round trip to the client, which, on high-volume sites, causes scalability problems.
As you might suspect, Server.Transfer fixes all of these problems. It does this by performing the transfer on the server without requiring a roundtrip to the client.
Showing posts with label client. Show all posts
Showing posts with label client. Show all posts
Thursday, March 12, 2009
Explain the differences between Server-side and Client-side code?
Server side scripting means that all the script will be executed by the server and interpreted as needed. ASP doesn't have some of the functionality like sockets, uploading, etc. For these you have to make a custom components usually in VB or VC++. Client side scripting means that the script will be executed immediately in the browser such as form field validation, clock, email validation, etc. Client side scripting is usually done in VBScript or JavaScript. Download time, browser compatibility, and visible code - since JavaScript and VBScript code is included in the HTML page, then anyone can see the code by viewing the page source. Also a possible security hazards for the client computer.
Sunday, March 1, 2009
How to Manage state in ASP.NET?
We can manage the state in two ways
Client based techniques are Viewstate, Query strings and Cookies.
Server based techniques are Application and Session
Client based techniques are Viewstate, Query strings and Cookies.
Server based techniques are Application and Session
Labels:
Asp.net faqs,
Asp.net Tutorial,
beginner Asp.net,
client,
server,
state management
Subscribe to:
Posts (Atom)
About Me
- Wajid Ansari
- Hyderabad, Andhra Pradesh, India
- I'm a MCA graduate working as a Web Developer.