» lets.coozi.com.au (downloads | tools i use) ... beware the tiger ...


0 1 0
0 0 1
1 1 1
{michaelslists}at<gmail.com> | rss
welcome to silkyblog | Search:
Hi.

About:
» Noon Silk

adriana 26

adriana 1

adriana 2

adriana 3

adriana 4

adriana 5

adriana 6



adriana 91

Links: del.icio.us api is screwing us. Go here for the list.

adriana 18

adriana 20

adriana 24

adriana 23

» sharing data between server.transfers

Signature: <placeholder>

Posted on the 30 June 2008, by Noon Silk

I found this useful just now; maybe you might as well. If you want to share some information temporarily with the next page on a "Server.Transfer", you can use "Context.Items":

// somepage.aspx

Context.Items["hey"] = "there";
Server.Transfer("newpage.aspx?foo=y");

// ...

// newpage.aspx
string message = Context.Items["hey"] as string;

Trivial, and useful.

c# | comment(s) 0

Name:
Website:
Comment:

When you click "submit" I will be factoring this number: . Please wait for me. Wondering why?

Thinking... 0%
 
page generated by: silkyblog. took: longer than it should've.