Click here to Skip to main content
15,903,175 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: VB.NET and DocuCorp Pin
TonyMatute3-Nov-06 19:34
TonyMatute3-Nov-06 19:34 
GeneralRe: VB.NET and DocuCorp Pin
Dave Kreskowiak4-Nov-06 2:51
mveDave Kreskowiak4-Nov-06 2:51 
Questionis there a dialog to select file OR folder?? Pin
dianadcx3-Nov-06 7:31
dianadcx3-Nov-06 7:31 
AnswerRe: is there a dialog to select file OR folder?? Pin
nlarson113-Nov-06 7:55
nlarson113-Nov-06 7:55 
GeneralRe: is there a dialog to select file OR folder?? Pin
dianadcx3-Nov-06 8:20
dianadcx3-Nov-06 8:20 
QuestionExport text to MS Word with VB.NET 2005 [modified] Pin
DJ-P3-Nov-06 7:02
DJ-P3-Nov-06 7:02 
QuestionGlobal.aspx Pin
Pete Newman3-Nov-06 5:41
Pete Newman3-Nov-06 5:41 
AnswerRe: Global.aspx Pin
Dave Kreskowiak3-Nov-06 6:52
mveDave Kreskowiak3-Nov-06 6:52 
You've got multiple problems with this.

First, ApplicationStart only executes the first time a page request is made to your site. It will never execute again.

Second, since this only executes once, anything this code does will never get executed for any subsequent page requests. Since web applications are stateless, your page code has to be written so that each page requests builds and destroys the objects it needs on EVERY request, not just the first one.

Any object you create in ApplicationStart will fall out of scope and not be usable anywhere in your page's code. So, building an SQL connection in ApplicationStart will not do you any good since they will no longer exist after ApplicationStart is done executing.


Lastly, you REALLY have to be specific in your posts as to what the code is supposed to be doing and supply any and all error messages you get along with the lines of code that the errors occur on. Without that, all you've done is pulled your car into the dealership and told the service guy "It's broke." How's he supposed to know what you're talking about?


Dave Kreskowiak
Microsoft MVP - Visual Basic


QuestionHowTo display File Names + extension in a ListBox Pin
Zaegra3-Nov-06 4:32
Zaegra3-Nov-06 4:32 
AnswerRe: HowTo display File Names + extension in a ListBox Pin
Are Jay3-Nov-06 6:23
Are Jay3-Nov-06 6:23 
AnswerRe: HowTo display File Names + extension in a ListBox Pin
nlarson113-Nov-06 6:26
nlarson113-Nov-06 6:26 
GeneralRe: HowTo display File Names + extension in a ListBox Pin
Zaegra3-Nov-06 6:32
Zaegra3-Nov-06 6:32 
GeneralRe: HowTo display File Names + extension in a ListBox Pin
nlarson113-Nov-06 7:52
nlarson113-Nov-06 7:52 
Questionfunction to format partnumbers (alpha numeric) Pin
jds12073-Nov-06 2:54
jds12073-Nov-06 2:54 
AnswerRe: function to format partnumbers (alpha numeric) Pin
nlarson113-Nov-06 8:30
nlarson113-Nov-06 8:30 
GeneralRe: function to format partnumbers (alpha numeric) Pin
jds12073-Nov-06 9:00
jds12073-Nov-06 9:00 
GeneralRe: function to format partnumbers (alpha numeric) Pin
nlarson113-Nov-06 9:02
nlarson113-Nov-06 9:02 
GeneralRe: function to format partnumbers (alpha numeric) Pin
jds12073-Nov-06 9:25
jds12073-Nov-06 9:25 
GeneralRe: function to format partnumbers (alpha numeric) Pin
nlarson113-Nov-06 9:32
nlarson113-Nov-06 9:32 
QuestionHow to create a users manual Pin
rafaguilarsol3-Nov-06 1:56
rafaguilarsol3-Nov-06 1:56 
AnswerRe: How to create a users manual Pin
Dave Kreskowiak3-Nov-06 6:44
mveDave Kreskowiak3-Nov-06 6:44 
GeneralRe: How to create a users manual Pin
rafaguilarsol3-Nov-06 7:47
rafaguilarsol3-Nov-06 7:47 
QuestionSend image path to Crystal report8 through VB6 [modified] Pin
Kiran S. S.2-Nov-06 23:26
Kiran S. S.2-Nov-06 23:26 
QuestionHow to swap values in database with the help of combobox Pin
Khan.Bangash2-Nov-06 23:19
Khan.Bangash2-Nov-06 23:19 
AnswerRe: How to swap values in database with the help of combobox Pin
Akhilesh Yadav2-Nov-06 23:25
Akhilesh Yadav2-Nov-06 23:25 

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.