Click here to Skip to main content
15,843,623 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Debugging a Web API Project in Visual Studio 2017 Pin
maryam.saboor5-Dec-18 0:36
professionalmaryam.saboor5-Dec-18 0:36 
QuestionHow to write Edit Item template in asp.net with sql command Pin
Member 1362771923-Nov-18 23:19
Member 1362771923-Nov-18 23:19 
QuestionList is losing it's contents ? Pin
caffrey_123-Nov-18 3:37
caffrey_123-Nov-18 3:37 
AnswerRe: List is losing it's contents ? Pin
Richard MacCutchan23-Nov-18 3:46
mveRichard MacCutchan23-Nov-18 3:46 
GeneralRe: List is losing it's contents ? Pin
caffrey_123-Nov-18 4:01
caffrey_123-Nov-18 4:01 
AnswerRe: List is losing it's contents ? Pin
Richard Deeming23-Nov-18 4:32
mveRichard Deeming23-Nov-18 4:32 
GeneralRe: List is losing it's contents ? Pin
caffrey_123-Nov-18 5:05
caffrey_123-Nov-18 5:05 
GeneralRe: List is losing it's contents ? Pin
Richard Deeming23-Nov-18 5:13
mveRichard Deeming23-Nov-18 5:13 
caffrey_1 wrote:
it works like I thought it should

I doubt that. Smile | :)

The label's text will be persisted between requests, because it uses view state. When you append the items from the list, you're only appending a single item each time; the previous items were already in there.

If you debug your code and look at the myList field, you'll see it's empty when you click the button.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

GeneralRe: List is losing it's contents ? Pin
caffrey_123-Nov-18 5:45
caffrey_123-Nov-18 5:45 
QuestionRDLC Report is not showing Column Headers in all the pages Pin
simpledeveloper20-Nov-18 15:30
simpledeveloper20-Nov-18 15:30 
AnswerRe: RDLC Report is not showing Column Headers in all the pages Pin
Richard Deeming21-Nov-18 9:07
mveRichard Deeming21-Nov-18 9:07 
QuestionCSV and WordPress Pin
Davstr19-Nov-18 14:23
Davstr19-Nov-18 14:23 
AnswerRe: CSV and WordPress Pin
Mycroft Holmes20-Nov-18 12:16
professionalMycroft Holmes20-Nov-18 12:16 
QuestionKilling a remote application browser session from a new browser session. Pin
Stephen Holdorf18-Nov-18 5:22
Stephen Holdorf18-Nov-18 5:22 
AnswerRe: Killing a remote application browser session from a new browser session. Pin
Richard Deeming19-Nov-18 4:00
mveRichard Deeming19-Nov-18 4:00 
QuestionoData request to REST server Pin
RVMRVM17-Nov-18 9:48
RVMRVM17-Nov-18 9:48 
QuestionRe: oData request to REST server Pin
Richard MacCutchan17-Nov-18 22:09
mveRichard MacCutchan17-Nov-18 22:09 
AnswerRe: oData request to REST server Pin
RVMRVM18-Nov-18 0:01
RVMRVM18-Nov-18 0:01 
QuestionNeed some suggestion - please Pin
simpledeveloper16-Nov-18 14:14
simpledeveloper16-Nov-18 14:14 
QuestionAutomatic update db on regular intervals mvc Pin
Member 1402506315-Nov-18 19:10
Member 1402506315-Nov-18 19:10 
AnswerRe: Automatic update db on regular intervals mvc Pin
Member 1405668819-Nov-18 19:18
Member 1405668819-Nov-18 19:18 
GeneralRe: Automatic update db on regular intervals mvc Pin
Member 1402506319-Nov-18 19:37
Member 1402506319-Nov-18 19:37 
AnswerRe: Automatic update db on regular intervals mvc Pin
Nathan Minier20-Nov-18 2:37
professionalNathan Minier20-Nov-18 2:37 
QuestionI am using ReportViewerForMVC tool for my rdlc reports, I am getting the following exception on server but not locally, am I missing reference or something Pin
simpledeveloper15-Nov-18 7:30
simpledeveloper15-Nov-18 7:30 
AnswerRe: I am using ReportViewerForMVC tool for my rdlc reports, I am getting the following exception on server but not locally, am I missing reference or something Pin
Richard Deeming15-Nov-18 9:05
mveRichard Deeming15-Nov-18 9:05 

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.