Click here to Skip to main content
15,902,445 members
Home / Discussions / C#
   

C#

 
GeneralRe: Combobox to filter a datagrid c# Pin
Sascha Lefèvre6-Jan-16 0:26
professionalSascha Lefèvre6-Jan-16 0:26 
QuestionHow to merge same cells value into single cell in C# Pin
Ashfaque Hussain4-Jan-16 2:50
Ashfaque Hussain4-Jan-16 2:50 
SuggestionRe: How to merge same cells value into single cell in C# Pin
Sascha Lefèvre4-Jan-16 3:16
professionalSascha Lefèvre4-Jan-16 3:16 
GeneralRe: How to merge same cells value into single cell in C# Pin
Ashfaque Hussain4-Jan-16 18:51
Ashfaque Hussain4-Jan-16 18:51 
GeneralRe: How to merge same cells value into single cell in C# Pin
Richard Deeming5-Jan-16 2:22
mveRichard Deeming5-Jan-16 2:22 
SuggestionRe: How to merge same cells value into single cell in C# Pin
Richard Deeming4-Jan-16 3:17
mveRichard Deeming4-Jan-16 3:17 
QuestionDisplaying Objects In A List Inside A Foreach Loop Pin
MadDashCoder3-Jan-16 19:22
MadDashCoder3-Jan-16 19:22 
AnswerRe: Displaying Objects In A List Inside A Foreach Loop Pin
Pete O'Hanlon3-Jan-16 20:02
mvePete O'Hanlon3-Jan-16 20:02 
I see that this is a question about an ASP.NET project. We do have a dedicated forum for that, that you should consider posting questions like this on, in the future.

Anyway, the problem is because your list of employees is lost between one postback and the next. You have to consider the nature of a web site, which is short lived in the duration of what happens in the code because each post back from the client to the server effectively fires off a new instance of this page. What you need to do is either store your list in a cache or a session object and then retrieve it from there. The choice of whether to host it in the Cache or in a Session depends on whether you want this list to be visible to everyone (stored in the Cache), or just for the user who is entering the current details (store it in the Session).
This space for rent

GeneralRe: Displaying Objects In A List Inside A Foreach Loop Pin
MadDashCoder3-Jan-16 20:19
MadDashCoder3-Jan-16 20:19 
QuestionDynamic Localization for released products Pin
Chandra Mohan BS3-Jan-16 18:28
Chandra Mohan BS3-Jan-16 18:28 
QuestionFingerprint student attendance Pin
Nareen Nair3-Jan-16 4:53
Nareen Nair3-Jan-16 4:53 
SuggestionRe: Fingerprint student attendance Pin
Richard MacCutchan3-Jan-16 5:04
mveRichard MacCutchan3-Jan-16 5:04 
GeneralRe: Fingerprint student attendance Pin
Redgum4-Jan-16 10:17
professionalRedgum4-Jan-16 10:17 
GeneralRe: Fingerprint student attendance Pin
Pete O'Hanlon4-Jan-16 10:41
mvePete O'Hanlon4-Jan-16 10:41 
AnswerRe: Fingerprint student attendance Pin
Richard MacCutchan29-Jan-16 6:35
mveRichard MacCutchan29-Jan-16 6:35 
GeneralRe: Fingerprint student attendance Pin
Nareen Nair29-Jan-16 23:28
Nareen Nair29-Jan-16 23:28 
GeneralRe: Fingerprint student attendance Pin
Richard MacCutchan29-Jan-16 23:54
mveRichard MacCutchan29-Jan-16 23:54 
GeneralRe: Fingerprint student attendance Pin
Nareen Nair31-Jan-16 1:03
Nareen Nair31-Jan-16 1:03 
GeneralRe: Fingerprint student attendance Pin
Richard MacCutchan31-Jan-16 1:56
mveRichard MacCutchan31-Jan-16 1:56 
GeneralRe: Fingerprint student attendance Pin
Nareen Nair31-Jan-16 19:20
Nareen Nair31-Jan-16 19:20 
QuestionHow to reference a deletegate to a static member of each Form Pin
alamdarAfridi1-Jan-16 23:45
alamdarAfridi1-Jan-16 23:45 
AnswerRe: How to reference a deletegate to a static member of each Form Pin
OriginalGriff2-Jan-16 0:41
mveOriginalGriff2-Jan-16 0:41 
AnswerRe: How to reference a deletegate to a static member of each Form Pin
BillWoodruff2-Jan-16 1:10
professionalBillWoodruff2-Jan-16 1:10 
GeneralRe: How to reference a deletegate to a static member of each Form Pin
Pete O'Hanlon5-Jan-16 21:32
mvePete O'Hanlon5-Jan-16 21:32 
AnswerRe: How to reference a deletegate to a static member of each Form Pin
Pete O'Hanlon2-Jan-16 2:35
mvePete O'Hanlon2-Jan-16 2:35 

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.