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

ASP.NET

 
GeneralRe: Problem when loading an aspx page from ascx Pin
tiran_kaskas29-Jun-09 3:26
tiran_kaskas29-Jun-09 3:26 
GeneralRe: Problem when loading an aspx page from ascx Pin
tiran_kaskas29-Jun-09 3:41
tiran_kaskas29-Jun-09 3:41 
QuestionRe: Problem when loading an aspx page from ascx Pin
Muhammad Gouda29-Jun-09 4:13
Muhammad Gouda29-Jun-09 4:13 
AnswerRe: Problem when loading an aspx page from ascx Pin
tiran_kaskas29-Jun-09 4:27
tiran_kaskas29-Jun-09 4:27 
GeneralRe: Problem when loading an aspx page from ascx Pin
tiran_kaskas29-Jun-09 5:03
tiran_kaskas29-Jun-09 5:03 
GeneralRe: Problem when loading an aspx page from ascx Pin
DoctorMick29-Jun-09 5:24
DoctorMick29-Jun-09 5:24 
GeneralRe: Problem when loading an aspx page from ascx Pin
tiran_kaskas29-Jun-09 5:27
tiran_kaskas29-Jun-09 5:27 
GeneralRe: Problem when loading an aspx page from ascx Pin
Muhammad Gouda29-Jun-09 20:46
Muhammad Gouda29-Jun-09 20:46 
I got it.
No new instances are created. Actually the user control is reloaded from the server in each post back.

The solution is to cash the values you want to save between postbacks
There are several ways to do so
ViewState object
Session object
Application object
Cash object
Static Members

But take care, because you have to select the choice suitable to your situation
You will need to read about "State Management" in any ASP.NET refernce
Or try this
Web Aplication State[^]

foreach(Minute m in MyLife)
myExperience++;

QuestionQuerying carriage return fields Pin
eyeseetee29-Jun-09 2:57
eyeseetee29-Jun-09 2:57 
AnswerRe: Querying carriage return fields Pin
Niladri_Biswas29-Jun-09 6:08
Niladri_Biswas29-Jun-09 6:08 
Questionautomating microsoft word file using vb.net Pin
trimandir prajapati29-Jun-09 1:27
trimandir prajapati29-Jun-09 1:27 
AnswerRe: automating microsoft word file using vb.net Pin
Manas Bhardwaj29-Jun-09 1:37
professionalManas Bhardwaj29-Jun-09 1:37 
QuestionUsing SQL Search in c# page - problem with fields with ' ' in them Pin
eyeseetee29-Jun-09 1:21
eyeseetee29-Jun-09 1:21 
AnswerRe: Using SQL Search in c# page - problem with fields with ' ' in them Pin
SeMartens29-Jun-09 1:55
SeMartens29-Jun-09 1:55 
AnswerRe: Using SQL Search in c# page - problem with fields with ' ' in them Pin
DoctorMick29-Jun-09 2:02
DoctorMick29-Jun-09 2:02 
GeneralRe: Using SQL Search in c# page - problem with fields with ' ' in them [modified] Pin
eyeseetee29-Jun-09 2:20
eyeseetee29-Jun-09 2:20 
AnswerRe: Using SQL Search in c# page - problem with fields with ' ' in them Pin
SeMartens29-Jun-09 2:13
SeMartens29-Jun-09 2:13 
AnswerRe: Using SQL Search in c# page - problem with fields with ' ' in them Pin
Niladri_Biswas29-Jun-09 6:20
Niladri_Biswas29-Jun-09 6:20 
Questioncan't send mail with attachment file,that is from database Pin
pujafaldu29-Jun-09 0:39
pujafaldu29-Jun-09 0:39 
AnswerRe: can't send mail with attachment file,that is from database Pin
Manas Bhardwaj29-Jun-09 0:45
professionalManas Bhardwaj29-Jun-09 0:45 
GeneralRe: can't send mail with attachment file,that is from database Pin
pujafaldu29-Jun-09 1:27
pujafaldu29-Jun-09 1:27 
GeneralRe: can't send mail with attachment file,that is from database Pin
N a v a n e e t h29-Jun-09 1:37
N a v a n e e t h29-Jun-09 1:37 
AnswerRe: can't send mail with attachment file,that is from database Pin
N a v a n e e t h29-Jun-09 1:50
N a v a n e e t h29-Jun-09 1:50 
QuestionSomething Missing Pin
KhandelwalA29-Jun-09 0:30
KhandelwalA29-Jun-09 0:30 
AnswerRe: Something Missing Pin
Christian Graus29-Jun-09 0:38
protectorChristian Graus29-Jun-09 0:38 

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.