Click here to Skip to main content
15,899,475 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
QuestionEmail Not be recognised as a link Pin
<<Tash18>>25-Oct-11 4:16
<<Tash18>>25-Oct-11 4:16 
AnswerRe: Email Not be recognised as a link Pin
Not Active25-Oct-11 5:16
mentorNot Active25-Oct-11 5:16 
AnswerRe: Email Not be recognised as a link Pin
Bernhard Hiller25-Oct-11 20:18
Bernhard Hiller25-Oct-11 20:18 
QuestionMaster pages Pin
parthibandharma24-Oct-11 21:27
professionalparthibandharma24-Oct-11 21:27 
AnswerRe: Master pages Pin
JacquesDP25-Oct-11 10:56
JacquesDP25-Oct-11 10:56 
AnswerRe: Master pages Pin
jkirkerx28-Oct-11 20:06
professionaljkirkerx28-Oct-11 20:06 

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.