Click here to Skip to main content
15,909,437 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionpopup window unable to write value in the parent window. Pin
ram19749-Oct-06 19:53
ram19749-Oct-06 19:53 
QuestionRetrival of stored data from a table using asp.net 2.0 Pin
brardavi9-Oct-06 19:51
brardavi9-Oct-06 19:51 
AnswerRe: Retrival of stored data from a table using asp.net 2.0 Pin
Sathesh Sakthivel9-Oct-06 20:07
Sathesh Sakthivel9-Oct-06 20:07 
AnswerRe: Retrival of stored data from a table using asp.net 2.0 Pin
brardavi9-Oct-06 20:28
brardavi9-Oct-06 20:28 
GeneralRe: Retrival of stored data from a table using asp.net 2.0 Pin
Sathesh Sakthivel9-Oct-06 20:45
Sathesh Sakthivel9-Oct-06 20:45 
GeneralRe: Retrival of stored data from a table using asp.net 2.0 Pin
Jay_se9-Oct-06 21:42
Jay_se9-Oct-06 21:42 
QuestionServer.Transfer vs Response.Redirect Pin
psamy9-Oct-06 18:59
psamy9-Oct-06 18:59 
AnswerRe: Server.Transfer vs Response.Redirect Pin
Sathesh Sakthivel9-Oct-06 19:11
Sathesh Sakthivel9-Oct-06 19:11 
Redirect and Transfer both cause a new page to be processed. But the interaction between the client (web browser) and server (ASP.NET) is different in each situation.

Redirect: A redirect is just a suggestion – it’s like saying to the client “Hey, you might want to look at this”. All you tell the client is the new URL to look at, and if they comply, they do a second request for the new URL.

If you want to pass state from the source page to the new page, you have to pass it either on the URL (such as a database key, or message string), or you can store it in the Session object (caveat: there may be more than one browser window, and they’ll all use the same session object).

Transfer: A transfer happens without the client knowing – it’s the equivalent of a client requesting one page, but being given another. As far as the client knows, they are still visiting the original URL.

Sharing state between pages is much easier using Server.Transfer – you can put values into the Context.Items dictionary, which is similar to Session and Application, except that it lasts only for the current request. (search for HttpContext in MSDN). The page receiving postback can process data, store values in the Context, and then Transfer to a page that uses the values.


With Regards

Satips

AnswerRe: Server.Transfer vs Response.Redirect Pin
Jay_se9-Oct-06 19:13
Jay_se9-Oct-06 19:13 
QuestionApplication.DoEvents in ASP.Net? Pin
Mei Yoong9-Oct-06 18:37
Mei Yoong9-Oct-06 18:37 
AnswerRe: Application.DoEvents in ASP.Net? Pin
safat9-Oct-06 20:12
safat9-Oct-06 20:12 
AnswerRe: Application.DoEvents in ASP.Net? Pin
Mei Yoong9-Oct-06 21:15
Mei Yoong9-Oct-06 21:15 
GeneralRe: Application.DoEvents in ASP.Net? Pin
safat10-Oct-06 1:48
safat10-Oct-06 1:48 
GeneralRe: Application.DoEvents in ASP.Net? Pin
Mei Yoong17-Oct-06 16:41
Mei Yoong17-Oct-06 16:41 
QuestionDelete File from Server??? Pin
code-frog9-Oct-06 16:34
professionalcode-frog9-Oct-06 16:34 
AnswerRe: Delete File from Server??? Pin
Steve Echols9-Oct-06 19:34
Steve Echols9-Oct-06 19:34 
AnswerRe: Delete File from Server??? Pin
Sam_IN9-Oct-06 21:59
Sam_IN9-Oct-06 21:59 
QuestionMoving a masterpage contentplaceholder around Pin
ThePlagueIsBack9-Oct-06 13:14
ThePlagueIsBack9-Oct-06 13:14 
AnswerRe: Moving a masterpage contentplaceholder around Pin
Mike Ellison9-Oct-06 14:12
Mike Ellison9-Oct-06 14:12 
GeneralRe: Moving a masterpage contentplaceholder around Pin
ThePlagueIsBack9-Oct-06 14:15
ThePlagueIsBack9-Oct-06 14:15 
QuestionHow to add a custom attribute to a wizard control? Pin
maergorn_09-Oct-06 12:09
maergorn_09-Oct-06 12:09 
AnswerRe: How to add a custom attribute to a wizard control? Pin
ThePlagueIsBack9-Oct-06 13:25
ThePlagueIsBack9-Oct-06 13:25 
GeneralRe: How to add a custom attribute to a wizard control? Pin
maergorn_09-Oct-06 19:17
maergorn_09-Oct-06 19:17 
QuestionValidating Custom User Control Pin
oldbam9-Oct-06 10:16
oldbam9-Oct-06 10:16 
QuestionValidating Custom User Control Pin
oldbam9-Oct-06 10:14
oldbam9-Oct-06 10:14 

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.