Click here to Skip to main content
15,895,746 members
Home / Discussions / C#
   

C#

 
GeneralRe: Terminate Application after a given time of inactivity? Pin
Gulfraz Khan14-Oct-05 0:55
Gulfraz Khan14-Oct-05 0:55 
QuestionCatching application start/close events Pin
Trickster-SWE13-Oct-05 2:58
Trickster-SWE13-Oct-05 2:58 
AnswerRe: Catching application start/close events Pin
XRaheemX13-Oct-05 3:50
XRaheemX13-Oct-05 3:50 
GeneralRe: Catching application start/close events Pin
Trickster-SWE13-Oct-05 4:00
Trickster-SWE13-Oct-05 4:00 
QuestionHow To add/Show icons to the main menu items? Pin
majidbhutta13-Oct-05 2:23
majidbhutta13-Oct-05 2:23 
AnswerRe: How To add/Show icons to the main menu items? Pin
Gulfraz Khan13-Oct-05 2:35
Gulfraz Khan13-Oct-05 2:35 
QuestionDo you know the answer? Pin
Gulfraz Khan13-Oct-05 2:22
Gulfraz Khan13-Oct-05 2:22 
AnswerRe: Do you know the answer? Pin
turbochimp13-Oct-05 20:17
turbochimp13-Oct-05 20:17 
You can do whatever suits your application best, but it's typical in large application settings with lots of users to have all access to the database take place through a small number (or one) login. Doing so has certain administrative benefits as well as performance benefits to the database server (wrt connection pooling, and cacheing commands).

If you're interested in doing declarative security, I would recommend checking out the IPrincipal interface and the classes that inherit from it. If you're writing a WinForms application, you may be able to take advantage of the WindowsPrincipal to leverage your AD security without making a lot of concessions. If that's not an option, you can make your own Principal, and roll your own authentication scheme as well. Either way, the Principal is a built-in authorization structure in .Net.

Best of luck.





The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’

QuestionCreate .EXE file Pin
zaboboa13-Oct-05 1:59
zaboboa13-Oct-05 1:59 
AnswerRe: Create .EXE file Pin
Dan Neely13-Oct-05 4:08
Dan Neely13-Oct-05 4:08 
AnswerRe: Create .EXE file Pin
Tom Larsen13-Oct-05 8:39
Tom Larsen13-Oct-05 8:39 
Questionmobile agent implementation Pin
sujeer00912-Oct-05 23:23
sujeer00912-Oct-05 23:23 
QuestionNested Datagrids Pin
Member 124072312-Oct-05 22:46
Member 124072312-Oct-05 22:46 
QuestionLoad Balanced Network Pin
Andre Trollip12-Oct-05 21:26
Andre Trollip12-Oct-05 21:26 
AnswerRe: Load Balanced Network Pin
XRaheemX13-Oct-05 3:54
XRaheemX13-Oct-05 3:54 
AnswerRe: Load Balanced Network Pin
Dave Kreskowiak13-Oct-05 6:25
mveDave Kreskowiak13-Oct-05 6:25 
QuestionTreeView selectedNode problem Pin
ppp00112-Oct-05 21:07
ppp00112-Oct-05 21:07 
AnswerRe: TreeView selectedNode problem Pin
mav.northwind12-Oct-05 23:21
mav.northwind12-Oct-05 23:21 
QuestionThe problem about Excel Automation add-ins(C#) Pin
dreamwinter12-Oct-05 20:48
dreamwinter12-Oct-05 20:48 
QuestionDisabling controls Pin
Brendan Vogt12-Oct-05 20:29
Brendan Vogt12-Oct-05 20:29 
AnswerRe: Disabling controls Pin
XRaheemX13-Oct-05 3:43
XRaheemX13-Oct-05 3:43 
AnswerRe: Disabling controls Pin
Dave Kreskowiak13-Oct-05 6:22
mveDave Kreskowiak13-Oct-05 6:22 
Questionalignment problem please help me its urgent Pin
arusmemon12-Oct-05 19:42
arusmemon12-Oct-05 19:42 
QuestionScrolling the RichtextBox Pin
AB777112-Oct-05 19:21
AB777112-Oct-05 19:21 
AnswerRe: Scrolling the RichtextBox Pin
mav.northwind12-Oct-05 20:15
mav.northwind12-Oct-05 20:15 

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.