Click here to Skip to main content
15,921,371 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Desgining problem in asp.net Pin
Paddy Boyd13-Jun-07 22:05
Paddy Boyd13-Jun-07 22:05 
AnswerRe: Desgining problem in asp.net Pin
koolprasad200313-Jun-07 23:21
professionalkoolprasad200313-Jun-07 23:21 
GeneralRe: Desgining problem in asp.net Pin
ShuklaGirish14-Jun-07 20:25
ShuklaGirish14-Jun-07 20:25 
Questiongenerate a image waste the server resources? Pin
mimilaw13-Jun-07 20:24
mimilaw13-Jun-07 20:24 
QuestionAsp.net Dynamic table Pin
ShuklaGirish13-Jun-07 20:18
ShuklaGirish13-Jun-07 20:18 
Questiondiffernce between Pin
mnarayana313-Jun-07 20:05
mnarayana313-Jun-07 20:05 
AnswerRe: differnce between Pin
_AK_13-Jun-07 20:18
_AK_13-Jun-07 20:18 
AnswerRe: differnce between Pin
Sathesh Sakthivel13-Jun-07 20:21
Sathesh Sakthivel13-Jun-07 20:21 
Server.Transfer is often a better choice than Response.Redirect.

Example:Let's say you're on A.aspx and you want to send the user to B.aspx.

Response.Redirect flow
A.aspx calls Response.Redirect("B.aspx",false); which sends a 302 redirect header down to the client browser, telling it that the asset it has requested (A.aspx) has moved to B.aspx, and the web application terminates. The client browser then sends a request to the webserver for B.aspx. IIS tells asp_wp.exe to process the request. asp_wp.exe (after checking authentication and doing all the other setup stuff it needs to do when a new request comes in) instantiates the appropriate class for B.aspx, processes the request, sends the result to the browser, and shuts down.

Server.Transfer flow
A.aspx calls Server.Transfer("B.aspx");. ASP.NET instantiates the appropriate class for B.aspx, processes the request, sends the result to the browser, and shuts down.

Note that Server.Transfer cuts the load on the client and the server.

Server.Transfer is easier to code for, too, since you maintain your state. Information can be passed through the HTTP Context object between the pages, eliminating the need to pass information in the querystring or reload it from the database.



Regards,

Satips.Rose | [Rose]

AnswerRe: differnce between Pin
Venk25913-Jun-07 20:22
Venk25913-Jun-07 20:22 
QuestionSession help Pin
kvijayajyothy13-Jun-07 20:05
kvijayajyothy13-Jun-07 20:05 
QuestionScript Pin
saravraj13-Jun-07 19:58
saravraj13-Jun-07 19:58 
AnswerRe: Script Pin
sPaudel13-Jun-07 22:14
sPaudel13-Jun-07 22:14 
QuestionProblem when using SSL certificates.. Pin
vijay_8313-Jun-07 19:33
vijay_8313-Jun-07 19:33 
QuestionFile Upload using Html Input control Pin
sudidelaravindra13-Jun-07 19:12
sudidelaravindra13-Jun-07 19:12 
QuestionEncryption and Decryption of username and password in asp.net Pin
jai 12313-Jun-07 19:00
jai 12313-Jun-07 19:00 
AnswerRe: Encryption and Decryption of username and password in asp.net Pin
amin_behzadi13-Jun-07 20:22
professionalamin_behzadi13-Jun-07 20:22 
QuestionCheckedBoxList Pin
Rajiya13-Jun-07 18:59
Rajiya13-Jun-07 18:59 
AnswerRe: CheckedBoxList Pin
Chetan Ranpariya13-Jun-07 20:38
Chetan Ranpariya13-Jun-07 20:38 
AnswerRe: CheckedBoxList Pin
saravraj13-Jun-07 21:21
saravraj13-Jun-07 21:21 
QuestionSystem.IndexOutOfRangeException: There is no row at position 0 Pin
Sophia Rekhi13-Jun-07 18:58
Sophia Rekhi13-Jun-07 18:58 
AnswerRe: System.IndexOutOfRangeException: There is no row at position 0 Pin
Venkatesh Mookkan13-Jun-07 19:41
Venkatesh Mookkan13-Jun-07 19:41 
GeneralRe: System.IndexOutOfRangeException: There is no row at position 0 Pin
Sophia Rekhi13-Jun-07 19:56
Sophia Rekhi13-Jun-07 19:56 
GeneralRe: System.IndexOutOfRangeException: There is no row at position 0 Pin
Venkatesh Mookkan13-Jun-07 20:05
Venkatesh Mookkan13-Jun-07 20:05 
GeneralRe: System.IndexOutOfRangeException: There is no row at position 0 Pin
Sophia Rekhi13-Jun-07 20:30
Sophia Rekhi13-Jun-07 20:30 
GeneralRe: System.IndexOutOfRangeException: There is no row at position 0 Pin
Venkatesh Mookkan13-Jun-07 20:41
Venkatesh Mookkan13-Jun-07 20:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.