Click here to Skip to main content
15,888,461 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: validate list control 2010 Pin
phil.o27-Oct-11 22:57
professionalphil.o27-Oct-11 22:57 
AnswerRe: validate list control 2010 Pin
jkirkerx28-Oct-11 19:09
professionaljkirkerx28-Oct-11 19:09 
QuestionIssues with Partial Postback / AJAX / Update Panel Pin
jscheponik27-Oct-11 4:42
jscheponik27-Oct-11 4:42 
Questionweb value Pin
sc steinhayse27-Oct-11 3:53
sc steinhayse27-Oct-11 3:53 
AnswerRe: web value Pin
Dennis E White27-Oct-11 4:31
professionalDennis E White27-Oct-11 4:31 
AnswerRe: web value Pin
Abhinav S27-Oct-11 4:32
Abhinav S27-Oct-11 4:32 
AnswerRe: web value Pin
Not Active27-Oct-11 5:23
mentorNot Active27-Oct-11 5:23 
AnswerRe: web value Pin
jkirkerx28-Oct-11 19:40
professionaljkirkerx28-Oct-11 19:40 
You have to change the way you think about web pages.

Each web page, is a brand new instance of the program, fresh and clean.
The page has no clue what happened 10 minutes ago, or what the last page was.

You can pass data back to the web server using some html post, in which you you transmit back some values, but that's a waste of time.

You need to establish something common to each page, like a querystring that holds the value of the name, order number, sessionid, just something.

For each new page that loads, you start all over again at the begining, loading the data needed to make the page work.

You do this in the Page.Load Cycle of the web page.

VB
Context HttpContext = HttpContext.Current;
If Not Context.Request.QueryString("cid") Is Nothing Then
            SecureCustomerID = Context.Request.QueryString("cid")
            CustomerID = Convert.ToInt32(SecureQueryString.Decrypt(SecureCustomerID.Replace(" ", "+")))
            SecureEmail = Get_CustomerEmail(CustomerID)
            sEmail = EncryptDecrypt.DecryptTripleDES(SecureEmail)
            AccountName = Get_CustomerAccountName(CustomerID)
        End If


To call the next page:
SecureCustomerID = SecureQuerystring.encrypt(CustomerID)
Context.Response.Redirect("nextpage.aspx?cid=" & secureCustomerID)
QuestionNone Object Oriented Control Pin
Ali Al Omairi(Abu AlHassan)26-Oct-11 20:55
professionalAli Al Omairi(Abu AlHassan)26-Oct-11 20:55 
AnswerRe: None Object Oriented Control Pin
Not Active27-Oct-11 2:43
mentorNot Active27-Oct-11 2:43 
GeneralRe: None Object Oriented Control Pin
Ali Al Omairi(Abu AlHassan)27-Oct-11 4:53
professionalAli Al Omairi(Abu AlHassan)27-Oct-11 4:53 
GeneralRe: None Object Oriented Control Pin
Not Active27-Oct-11 5:28
mentorNot Active27-Oct-11 5:28 
GeneralRe: None Object Oriented Control Pin
Ali Al Omairi(Abu AlHassan)27-Oct-11 7:43
professionalAli Al Omairi(Abu AlHassan)27-Oct-11 7:43 
GeneralRe: None Object Oriented Control Pin
Not Active27-Oct-11 7:46
mentorNot Active27-Oct-11 7:46 
GeneralRe: None Object Oriented Control Pin
Ali Al Omairi(Abu AlHassan)29-Oct-11 14:19
professionalAli Al Omairi(Abu AlHassan)29-Oct-11 14:19 
AnswerRe: None Object Oriented Control Pin
jkirkerx28-Oct-11 19:53
professionaljkirkerx28-Oct-11 19:53 
QuestionHow to read server registry from client (or host)? Pin
WomblingFree25-Oct-11 13:15
WomblingFree25-Oct-11 13:15 
AnswerRe: How to read server registry from client (or host)? Pin
Bernhard Hiller25-Oct-11 20:15
Bernhard Hiller25-Oct-11 20:15 
GeneralRe: How to read server registry from client (or host)? Pin
WomblingFree26-Oct-11 9:37
WomblingFree26-Oct-11 9:37 
AnswerRe: How to read server registry from client (or host)? Pin
jkirkerx28-Oct-11 19:59
professionaljkirkerx28-Oct-11 19:59 
Questionhow to proceed Pin
Marcel Vreuls (www.agentbase.nl)25-Oct-11 11:18
Marcel Vreuls (www.agentbase.nl)25-Oct-11 11:18 
AnswerRe: how to proceed Pin
Not Active25-Oct-11 12:15
mentorNot Active25-Oct-11 12:15 
GeneralRe: how to proceed Pin
Marcel Vreuls (www.agentbase.nl)25-Oct-11 13:25
Marcel Vreuls (www.agentbase.nl)25-Oct-11 13:25 
GeneralRe: how to proceed Pin
Paul Conrad25-Oct-11 19:40
professionalPaul Conrad25-Oct-11 19:40 
GeneralRe: how to proceed Pin
Marcel Vreuls (www.agentbase.nl)25-Oct-11 20:48
Marcel Vreuls (www.agentbase.nl)25-Oct-11 20:48 

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.