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

ASP.NET

 
QuestionMemoryStream and array of byte (Urgent) [modified] Pin
Tridip Bhattacharjee18-Oct-06 19:15
professionalTridip Bhattacharjee18-Oct-06 19:15 
AnswerRe: MemoryStream and array of byte (Urgent) Pin
Paddy Boyd19-Oct-06 4:33
Paddy Boyd19-Oct-06 4:33 
GeneralRe: MemoryStream and array of byte (Urgent) Pin
shreekar19-Oct-06 19:42
shreekar19-Oct-06 19:42 
AnswerRe: MemoryStream and array of byte (Urgent) Pin
saqib8220-Oct-06 1:03
saqib8220-Oct-06 1:03 
AnswerRe: MemoryStream and array of byte (Urgent) Pin
saqib8220-Oct-06 1:03
saqib8220-Oct-06 1:03 
AnswerRe: MemoryStream and array of byte (Urgent) Pin
hectorpc200623-Oct-06 2:21
hectorpc200623-Oct-06 2:21 
Questionresponse Pin
amaneet18-Oct-06 18:31
amaneet18-Oct-06 18:31 
AnswerRe: response Pin
Sathesh Sakthivel18-Oct-06 18:40
Sathesh Sakthivel18-Oct-06 18:40 
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 Response.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.


Regards,

Satips.

AnswerRe: response Pin
Guffa18-Oct-06 18:44
Guffa18-Oct-06 18:44 
QuestionHow to handle this error: "Invalid postback or callback argument. Event validation is enabled using in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback Pin
chandu4codeproj18-Oct-06 18:11
chandu4codeproj18-Oct-06 18:11 
AnswerRe: How to handle this error: "Invalid postback or callback argument. Event validation is enabled using in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to post Pin
Tad McClellan18-Oct-06 18:26
professionalTad McClellan18-Oct-06 18:26 
GeneralRe: How to handle this error: "Invalid postback or callback argument. Event validation is enabled using in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to post Pin
chandu4codeproj18-Oct-06 18:30
chandu4codeproj18-Oct-06 18:30 
QuestionResponse.Redirect Pin
avahia18-Oct-06 18:01
avahia18-Oct-06 18:01 
AnswerRe: Response.Redirect Pin
Guffa18-Oct-06 18:50
Guffa18-Oct-06 18:50 
QuestionMore on file uploading Pin
Ennis Ray Lynch, Jr.18-Oct-06 14:45
Ennis Ray Lynch, Jr.18-Oct-06 14:45 
AnswerRe: More on file uploading Pin
minhpc_bk18-Oct-06 15:36
minhpc_bk18-Oct-06 15:36 
GeneralRe: More on file uploading Pin
Ennis Ray Lynch, Jr.18-Oct-06 15:44
Ennis Ray Lynch, Jr.18-Oct-06 15:44 
GeneralRe: More on file uploading Pin
minhpc_bk18-Oct-06 15:45
minhpc_bk18-Oct-06 15:45 
GeneralRe: More on file uploading Pin
Ennis Ray Lynch, Jr.18-Oct-06 15:56
Ennis Ray Lynch, Jr.18-Oct-06 15:56 
GeneralRe: More on file uploading Pin
minhpc_bk18-Oct-06 16:23
minhpc_bk18-Oct-06 16:23 
GeneralRe: More on file uploading Pin
Ennis Ray Lynch, Jr.18-Oct-06 16:31
Ennis Ray Lynch, Jr.18-Oct-06 16:31 
GeneralBTW Pin
Ennis Ray Lynch, Jr.18-Oct-06 16:32
Ennis Ray Lynch, Jr.18-Oct-06 16:32 
GeneralRe: BTW Pin
minhpc_bk18-Oct-06 16:39
minhpc_bk18-Oct-06 16:39 
GeneralRe: BTW Pin
minhpc_bk18-Oct-06 16:49
minhpc_bk18-Oct-06 16:49 
GeneralRe: BTW Pin
Ennis Ray Lynch, Jr.18-Oct-06 16:55
Ennis Ray Lynch, Jr.18-Oct-06 16:55 

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.