Click here to Skip to main content
15,913,722 members
Home / Discussions / C#
   

C#

 
GeneralRe: <script languaage="c#" runat="server">... Pin
acodman8-Feb-07 5:15
acodman8-Feb-07 5:15 
AnswerRe: <script languaage="c#" runat="server">... Pin
Zach Burnett8-Feb-07 8:16
Zach Burnett8-Feb-07 8:16 
QuestionHow to know when an image was successfully loaded into a picturebox from url Pin
Subterranean8-Feb-07 3:22
Subterranean8-Feb-07 3:22 
AnswerRe: How to know when an image was successfully loaded into a picturebox from url Pin
Ravi Bhavnani8-Feb-07 6:11
professionalRavi Bhavnani8-Feb-07 6:11 
AnswerRe: How to know when an image was successfully loaded into a picturebox from url Pin
Patrick Etc.8-Feb-07 11:55
Patrick Etc.8-Feb-07 11:55 
GeneralRe: How to know when an image was successfully loaded into a picturebox from url Pin
Subterranean9-Feb-07 1:33
Subterranean9-Feb-07 1:33 
QuestionDatabase Routines Pin
Wayne Phipps8-Feb-07 2:58
Wayne Phipps8-Feb-07 2:58 
AnswerRe: Database Routines Pin
Colin Angus Mackay8-Feb-07 3:33
Colin Angus Mackay8-Feb-07 3:33 
Wayne Phipps wrote:
1) Is having a static class for database routines a good idea?


If you don't have too much interation with the database its fine. For larger applications you may wish to split up the interation into more logical divisions (maybe with a common base class)


Wayne Phipps wrote:
There is a potential for the application to be multi-threaded although each thread would most likely access different tables from the database.


There are two ways I normally deal with a DAL. One is with the Enterprise Libraries. And the other is to do my own thing and for that the only shared information is a connection string that doesn't change. Each request to the database uses its own connection object (which is regarded as best practice) so there is no threading problems. If multiple things are accessing the database the database will handle it.


Wayne Phipps wrote:
2) Where is it best to code the rotine to load the configuration from the database?


I typically have a configuration class (a singleton class) that loads the information from the config file. All other code in the application can then access it.

If the configuration is large and complex I'll probably have a number of config classes to handle the various subsystems of the application. (Again, each will be a singleton - as all this is coming from a database, you may consider a common base for each of these an advantage)


GeneralRe: Database Routines Pin
Wayne Phipps9-Feb-07 5:02
Wayne Phipps9-Feb-07 5:02 
QuestionExporting DataGrid to Excel Pin
pssuresh8-Feb-07 2:52
pssuresh8-Feb-07 2:52 
AnswerRe: Exporting DataGrid to Excel Pin
Sandeep Akhare8-Feb-07 3:11
Sandeep Akhare8-Feb-07 3:11 
GeneralRe: Exporting DataGrid to Excel Pin
pssuresh8-Feb-07 3:24
pssuresh8-Feb-07 3:24 
GeneralRe: Exporting DataGrid to Excel Pin
Sandeep Akhare8-Feb-07 3:44
Sandeep Akhare8-Feb-07 3:44 
GeneralRe: Exporting DataGrid to Excel [modified] Pin
pssuresh8-Feb-07 3:56
pssuresh8-Feb-07 3:56 
QuestionBtrieve Database Pin
coolestCoder8-Feb-07 2:35
coolestCoder8-Feb-07 2:35 
QuestionCast to a Generic Type at runtime Pin
Florian Storck8-Feb-07 2:30
Florian Storck8-Feb-07 2:30 
QuestionDelegate Help Pin
JeremyLM8-Feb-07 2:29
JeremyLM8-Feb-07 2:29 
AnswerRe: Delegate Help Pin
aSarafian8-Feb-07 3:23
aSarafian8-Feb-07 3:23 
GeneralRe: Delegate Help Pin
JeremyLM8-Feb-07 4:04
JeremyLM8-Feb-07 4:04 
QuestionUpdating and removing nodes from a treeview Pin
sharpiesharpie8-Feb-07 2:12
sharpiesharpie8-Feb-07 2:12 
AnswerRe: Updating and removing nodes from a treeview Pin
Ravi Bhavnani8-Feb-07 6:16
professionalRavi Bhavnani8-Feb-07 6:16 
QuestionAdding compiled help to a C# project Pin
Antony M Kancidrowski8-Feb-07 1:58
Antony M Kancidrowski8-Feb-07 1:58 
AnswerRe: Adding compiled help to a C# project Pin
Sandeep Akhare8-Feb-07 3:14
Sandeep Akhare8-Feb-07 3:14 
GeneralRe: Adding compiled help to a C# project Pin
Antony M Kancidrowski8-Feb-07 4:24
Antony M Kancidrowski8-Feb-07 4:24 
Questionstring process Pin
Mohammad Daba'an8-Feb-07 1:56
Mohammad Daba'an8-Feb-07 1:56 

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.