Click here to Skip to main content
15,892,005 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Getting DataTable to clean XML to send over a socket Pin
Mycroft Holmes10-Jun-08 15:29
professionalMycroft Holmes10-Jun-08 15:29 
AnswerRe: Getting DataTable to clean XML to send over a socket Pin
BDEz (Member 3919223)12-Jun-08 7:27
BDEz (Member 3919223)12-Jun-08 7:27 
QuestionHow to Load an HTML Page From Resources File? Pin
Saul Johnson10-Jun-08 7:23
Saul Johnson10-Jun-08 7:23 
AnswerRe: How to Load an HTML Page From Resources File? Pin
jzonthemtn10-Jun-08 8:04
jzonthemtn10-Jun-08 8:04 
GeneralRe: How to Load an HTML Page From Resources File? Pin
Saul Johnson10-Jun-08 20:31
Saul Johnson10-Jun-08 20:31 
AnswerRe: How to Load an HTML Page From Resources File? Pin
BDEz (Member 3919223)12-Jun-08 7:49
BDEz (Member 3919223)12-Jun-08 7:49 
AnswerRe: How to Load an HTML Page From Resources File? Pin
Kenny McKee30-Jun-08 9:12
Kenny McKee30-Jun-08 9:12 
QuestionChoosing which service to use based on an appsetting Pin
daveg5510-Jun-08 3:53
daveg5510-Jun-08 3:53 
Hi all

Noob question Smile | :)

I'm using different web services depending on whether I want to connect to the development back end server or the production one. I'd like to choose which web service to use based on a setting in the web.config file. If I use a case statement (or if etc) to define my object the code complains that the object isn't declared.
e.g.

if Appsettings("Debug") = "True" then
dim myObj as new devServer.Service
else
dim myObj as new prodServer.Service
end if

myVar = myObj.somethingClever
name myobj is not declared

Can this be done in some other way?

Thanks
Dave
AnswerRe: Choosing which service to use based on an appsetting Pin
Christian Graus10-Jun-08 4:11
protectorChristian Graus10-Jun-08 4:11 
GeneralRe: Choosing which service to use based on an appsetting Pin
daveg5510-Jun-08 4:34
daveg5510-Jun-08 4:34 
GeneralRe: Choosing which service to use based on an appsetting Pin
Christian Graus10-Jun-08 5:06
protectorChristian Graus10-Jun-08 5:06 
AnswerRe: Choosing which service to use based on an appsetting Pin
Mycroft Holmes10-Jun-08 15:17
professionalMycroft Holmes10-Jun-08 15:17 
GeneralRe: Choosing which service to use based on an appsetting Pin
daveg5511-Jun-08 1:08
daveg5511-Jun-08 1:08 
GeneralRe: Choosing which service to use based on an appsetting Pin
Mycroft Holmes11-Jun-08 2:10
professionalMycroft Holmes11-Jun-08 2:10 
QuestionDataError Event for a Datagrid Pin
gates0910-Jun-08 1:35
gates0910-Jun-08 1:35 
AnswerRe: DataError Event for a Datagrid Pin
Mycroft Holmes10-Jun-08 15:33
professionalMycroft Holmes10-Jun-08 15:33 
QuestionHow to check file status Pin
Ebube10-Jun-08 0:34
Ebube10-Jun-08 0:34 
AnswerRe: How to check file status Pin
Ashfield10-Jun-08 1:32
Ashfield10-Jun-08 1:32 
GeneralRe: How to check file status Pin
Ebube10-Jun-08 2:05
Ebube10-Jun-08 2:05 
GeneralRe: How to check file status Pin
Ashfield10-Jun-08 3:40
Ashfield10-Jun-08 3:40 
QuestionWhen Rss Feed Will Be Updated Pin
divyesh14329-Jun-08 23:39
divyesh14329-Jun-08 23:39 
AnswerRe: When Rss Feed Will Be Updated Pin
Ashfield10-Jun-08 1:28
Ashfield10-Jun-08 1:28 
JokeRe: When Rss Feed Will Be Updated Pin
Mycroft Holmes10-Jun-08 15:36
professionalMycroft Holmes10-Jun-08 15:36 
QuestionDebug problem Pin
monika_vasvani9-Jun-08 21:52
monika_vasvani9-Jun-08 21:52 
AnswerRe: Debug problem Pin
meeram3959-Jun-08 23:57
meeram3959-Jun-08 23:57 

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.