Click here to Skip to main content
16,006,709 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionmajor project in visual basic Pin
vishal dhir9-Sep-07 19:39
vishal dhir9-Sep-07 19:39 
AnswerRe: major project in visual basic Pin
The ANZAC9-Sep-07 22:03
The ANZAC9-Sep-07 22:03 
AnswerRe: major project in visual basic Pin
Dave Kreskowiak10-Sep-07 1:58
mveDave Kreskowiak10-Sep-07 1:58 
QuestionHow to recover delete files from Hard Disk Pin
Software_Guy_1239-Sep-07 18:50
Software_Guy_1239-Sep-07 18:50 
AnswerRe: How to recover delete files from Hard Disk Pin
Dave Kreskowiak10-Sep-07 1:54
mveDave Kreskowiak10-Sep-07 1:54 
GeneralRe: How to recover delete files from Hard Disk Pin
Software_Guy_12310-Sep-07 18:35
Software_Guy_12310-Sep-07 18:35 
QuestionScope of a variable Pin
ASPnoob9-Sep-07 17:53
ASPnoob9-Sep-07 17:53 
AnswerRe: Scope of a variable Pin
Mark Churchill9-Sep-07 18:39
Mark Churchill9-Sep-07 18:39 
It sounds like you are getting confused about the lifecycle of the pages in ASP.Net. Your scoping is correct. However your instance of this page class is created when the browser makes the request, then it renders the page, then the instance is disposed. This means that when your Click event handler is running, it is a totally new instance of the class, with a freshly initialized TotalCount.

You need to read up on the "asp.net page lifecycle" (google it), and look at how you can store information you need between requests in the ViewState.

Mark Churchill
Director
Dunn & Churchill

AnswerRe: Scope of a variable Pin
Chetan Patel10-Sep-07 0:35
Chetan Patel10-Sep-07 0:35 
QuestionWebBrowser Control Woes Pin
jonnyleroux9-Sep-07 12:03
jonnyleroux9-Sep-07 12:03 
AnswerRe: WebBrowser Control Woes Pin
Mark Churchill9-Sep-07 18:34
Mark Churchill9-Sep-07 18:34 
GeneralRe: WebBrowser Control Woes Pin
jonnyleroux9-Sep-07 21:59
jonnyleroux9-Sep-07 21:59 
QuestionException at address Pin
VFaul9-Sep-07 9:40
VFaul9-Sep-07 9:40 
AnswerRe: Exception at address Pin
Christian Graus9-Sep-07 9:42
protectorChristian Graus9-Sep-07 9:42 
GeneralRe: Exception at address Pin
VFaul9-Sep-07 9:53
VFaul9-Sep-07 9:53 
GeneralRe: Exception at address Pin
Luc Pattyn9-Sep-07 10:22
sitebuilderLuc Pattyn9-Sep-07 10:22 
GeneralRe: Exception at address Pin
VFaul9-Sep-07 10:41
VFaul9-Sep-07 10:41 
GeneralRe: Exception at address Pin
Luc Pattyn9-Sep-07 11:29
sitebuilderLuc Pattyn9-Sep-07 11:29 
Questionfind row index where Column = value Pin
cstrader2329-Sep-07 8:06
cstrader2329-Sep-07 8:06 
AnswerRe: find row index where Column = value Pin
Naji El Kotob9-Sep-07 11:42
Naji El Kotob9-Sep-07 11:42 
QuestionColored Circle around cursor Pin
Dave@VB9-Sep-07 6:21
Dave@VB9-Sep-07 6:21 
AnswerRe: Colored Circle around cursor Pin
Christian Graus9-Sep-07 6:33
protectorChristian Graus9-Sep-07 6:33 
Questiondetecting a disconnected wireless connection Pin
steve_rm9-Sep-07 5:59
steve_rm9-Sep-07 5:59 
Questionvb code for closing a running exe application Pin
Nasim Ahamed9-Sep-07 5:59
Nasim Ahamed9-Sep-07 5:59 
AnswerRe: vb code for closing a running exe application Pin
Christian Graus9-Sep-07 6:50
protectorChristian Graus9-Sep-07 6:50 

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.