Click here to Skip to main content
16,004,761 members
Home / Discussions / C#
   

C#

 
GeneralRe: enum question Pin
akkram12-Jun-07 0:43
akkram12-Jun-07 0:43 
GeneralRe: enum question Pin
DavidNohejl12-Jun-07 2:27
DavidNohejl12-Jun-07 2:27 
QuestionHow to record the video from web camera Pin
Exelioindia11-Jun-07 23:53
Exelioindia11-Jun-07 23:53 
AnswerRe: How to record the video from web camera Pin
Thomas Stockwell12-Jun-07 3:10
professionalThomas Stockwell12-Jun-07 3:10 
GeneralRe: How to record the video from web camera Pin
Exelioindia12-Jun-07 3:54
Exelioindia12-Jun-07 3:54 
QuestionHow can simulate button clicking in multiple threads environment? Pin
gzcjun11-Jun-07 23:39
gzcjun11-Jun-07 23:39 
QuestionClarification On Static Member [modified] Pin
Rahul8311-Jun-07 23:22
Rahul8311-Jun-07 23:22 
AnswerRe: Clarification On Static Member Pin
turbochimp12-Jun-07 11:05
turbochimp12-Jun-07 11:05 
First off, this is an ASP.Net question, not one specific to C#. You should post it to the ASP.Net forum for more timely response.

Now, unless you personally make some attempt to persist your data source (or reconnect and query it each time) across page turns, it will not persist itself. At the very least, you need to bind your data source to its control after each page turn (Postback or not), and at most - meaning if you don't want to reload your data after each page turn - you need to persist it statefully. The static variable is a bit much for this application, but it proves the point.

Is ViewState enabled for your dropdownlist? If you're doing filtering after your initial binding it won't really matter since you'll need access to your datasource, not the expression of the data in the control, but it's something to check.

Other ways to do the same thing would be to push the data source to ViewState manually, or use the Session or Application objects - it all depends upon your needs.

I would recommend looking up the ASP.Net page life cycle to better understand what happens each time a page is turned (whether it's a new HTTP Request or a Postback).

Good luck

The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’

QuestionMultiple Inheritances Pin
Neema Vikas11-Jun-07 23:20
Neema Vikas11-Jun-07 23:20 
AnswerRe: Multiple Inheritances Pin
Tarek Elganainy11-Jun-07 23:37
Tarek Elganainy11-Jun-07 23:37 
AnswerRe: Multiple Inheritances Pin
Kevin McFarlane12-Jun-07 1:07
Kevin McFarlane12-Jun-07 1:07 
Questionhow to lock a directory Pin
Hesham Yassin11-Jun-07 23:12
Hesham Yassin11-Jun-07 23:12 
AnswerRe: how to lock a directory Pin
Muammar©12-Jun-07 1:26
Muammar©12-Jun-07 1:26 
AnswerRe: how to lock a directory Pin
Sylvester george12-Jun-07 2:17
Sylvester george12-Jun-07 2:17 
AnswerRe: how to lock a directory Pin
shervin jijo12-Jun-07 2:21
shervin jijo12-Jun-07 2:21 
QuestionHow to get Remote Machine's hardware resources Pin
zinc_z11-Jun-07 23:03
zinc_z11-Jun-07 23:03 
AnswerRe: How to get Remote Machine's hardware resources Pin
Shy Agam12-Jun-07 2:19
Shy Agam12-Jun-07 2:19 
GeneralRe: How to get Remote Machine's hardware resources Pin
zinc_z12-Jun-07 2:28
zinc_z12-Jun-07 2:28 
GeneralRe: How to get Remote Machine's hardware resources Pin
Shy Agam12-Jun-07 2:57
Shy Agam12-Jun-07 2:57 
GeneralRe: How to get Remote Machine's hardware resources Pin
zinc_z12-Jun-07 7:55
zinc_z12-Jun-07 7:55 
GeneralRe: How to get Remote Machine's hardware resources Pin
Shy Agam12-Jun-07 8:54
Shy Agam12-Jun-07 8:54 
Questioncall .css file into c# Pin
matjame11-Jun-07 23:02
matjame11-Jun-07 23:02 
AnswerRe: call .css file into c# Pin
Colin Angus Mackay12-Jun-07 0:36
Colin Angus Mackay12-Jun-07 0:36 
GeneralRe: call .css file into c# Pin
matjame12-Jun-07 1:09
matjame12-Jun-07 1:09 
GeneralRe: call .css file into c# Pin
Colin Angus Mackay12-Jun-07 1:23
Colin Angus Mackay12-Jun-07 1:23 

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.