Click here to Skip to main content
15,886,578 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: ASP.Net Newby Question On ListView Pin
Not Active3-Dec-10 12:36
mentorNot Active3-Dec-10 12:36 
Questionregarding VS2008 IDE Pin
Tridip Bhattacharjee3-Dec-10 6:31
professionalTridip Bhattacharjee3-Dec-10 6:31 
AnswerRe: regarding VS2008 IDE Pin
Brij3-Dec-10 7:42
mentorBrij3-Dec-10 7:42 
GeneralRe: regarding VS2008 IDE Pin
Tridip Bhattacharjee3-Dec-10 23:05
professionalTridip Bhattacharjee3-Dec-10 23:05 
GeneralRe: regarding VS2008 IDE Pin
Brij4-Dec-10 5:14
mentorBrij4-Dec-10 5:14 
QuestionClear session after redirect Pin
Hanzaplast3-Dec-10 5:28
Hanzaplast3-Dec-10 5:28 
AnswerRe: Clear session after redirect Pin
Brij3-Dec-10 6:39
mentorBrij3-Dec-10 6:39 
AnswerRe: Clear session after redirect Pin
fjdiewornncalwe3-Dec-10 6:44
professionalfjdiewornncalwe3-Dec-10 6:44 
Am I understanding you correctly, that you need the value to be part of the session as long as the user is using PostBack, but on a new page load, the session value should be empty?
If that is the case, then you can do this simply like this
C#
void Page_Load()
{
    if(!Page.IsPostBack)
    {
        Session["something"] = true;
    }
    else
    {
        Session["something"] = false;
    }
}

I wasn't, now I am, then I won't be anymore.

QuestionInterview task - what can I expect? Pin
Danpeking3-Dec-10 0:48
Danpeking3-Dec-10 0:48 
AnswerRe: Interview task - what can I expect? Pin
Hiren solanki3-Dec-10 1:15
Hiren solanki3-Dec-10 1:15 
GeneralRe: Interview task - what can I expect? Pin
Danpeking3-Dec-10 1:50
Danpeking3-Dec-10 1:50 
GeneralRe: Interview task - what can I expect? Pin
Hiren solanki3-Dec-10 2:05
Hiren solanki3-Dec-10 2:05 
GeneralRe: Interview task - what can I expect? Pin
Danpeking3-Dec-10 2:18
Danpeking3-Dec-10 2:18 
GeneralRe: Interview task - what can I expect? Pin
_AK_3-Dec-10 8:21
_AK_3-Dec-10 8:21 
AnswerRe: Interview task - what can I expect? Pin
T M Gray3-Dec-10 10:51
T M Gray3-Dec-10 10:51 
QuestionVSS with .NET Pin
padmanabhan N2-Dec-10 22:28
padmanabhan N2-Dec-10 22:28 
AnswerRe: VSS with .NET Pin
fjdiewornncalwe3-Dec-10 1:19
professionalfjdiewornncalwe3-Dec-10 1:19 
QuestionLinq-Sql DateTime? Pin
Morgs Morgan2-Dec-10 20:58
Morgs Morgan2-Dec-10 20:58 
AnswerRe: Linq-Sql DateTime? Pin
Keith Barrow2-Dec-10 22:40
professionalKeith Barrow2-Dec-10 22:40 
QuestionRemoving Page's Load Event handler from my Customer Control Pin
Nadia Monalisa2-Dec-10 19:37
Nadia Monalisa2-Dec-10 19:37 
QuestionUpload file to server Pin
priyagee2-Dec-10 0:06
priyagee2-Dec-10 0:06 
AnswerRe: Upload file to server Pin
Hiren solanki2-Dec-10 0:54
Hiren solanki2-Dec-10 0:54 
GeneralRe: Upload file to server Pin
priyagee2-Dec-10 0:59
priyagee2-Dec-10 0:59 
AnswerRe: Upload file to server Pin
Hiren solanki2-Dec-10 1:05
Hiren solanki2-Dec-10 1:05 
GeneralRe: Upload file to server Pin
priyagee2-Dec-10 1:22
priyagee2-Dec-10 1:22 

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.