Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
GeneralRe: Printing Bytes to printer in MVC Pin
nitin_ion8-Jul-14 1:15
nitin_ion8-Jul-14 1:15 
AnswerRe: Printing Bytes to printer in MVC Pin
Kornfeld Eliyahu Peter8-Jul-14 1:20
professionalKornfeld Eliyahu Peter8-Jul-14 1:20 
AnswerRe: Printing Bytes to printer in MVC Pin
Richard MacCutchan8-Jul-14 1:14
mveRichard MacCutchan8-Jul-14 1:14 
GeneralRe: Printing Bytes to printer in MVC Pin
nitin_ion8-Jul-14 1:16
nitin_ion8-Jul-14 1:16 
GeneralRe: Printing Bytes to printer in MVC Pin
Pete O'Hanlon8-Jul-14 1:33
mvePete O'Hanlon8-Jul-14 1:33 
AnswerRe: Printing Bytes to printer in MVC Pin
Dave Kreskowiak8-Jul-14 5:06
mveDave Kreskowiak8-Jul-14 5:06 
QuestionWindows services Not starting with c# codes Pin
Chinedu Nwankwo7-Jul-14 21:04
Chinedu Nwankwo7-Jul-14 21:04 
SuggestionRe: Windows services Not starting with c# codes Pin
Richard Deeming8-Jul-14 1:40
mveRichard Deeming8-Jul-14 1:40 
I hope that's not your real sa password that you've just published on a public forum! D'Oh! | :doh:

Also, applications should NEVER connect using the sa user. You should always create and use a specific user which only has the permissions required by your application.

Your code in Button1_Click is susceptible to SQL Injection[^]. You should be using parameterized queries instead.

Most of the code you've posted doesn't appear to have anything to do with the problem your having. It's also not particularly easy to read, because you haven't formatted it - either use the "code" button on the toolbar, or wrap the code in <pre>...</pre> tags.

And finally, unless you've modified your AppPool to run as a user with local administrator privileges - which would be a very bad idea! - it won't have permission to restart services.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


QuestionSession Timeout Pin
Member 106416987-Jul-14 19:57
Member 106416987-Jul-14 19:57 
AnswerRe: Session Timeout Pin
Bernhard Hiller7-Jul-14 20:46
Bernhard Hiller7-Jul-14 20:46 
AnswerRe: Session Timeout Pin
Karen Mitchelle7-Jul-14 20:55
professionalKaren Mitchelle7-Jul-14 20:55 
GeneralRe: Session Timeout Pin
Richard MacCutchan7-Jul-14 22:22
mveRichard MacCutchan7-Jul-14 22:22 
AnswerRe: Session Timeout Pin
Richard MacCutchan7-Jul-14 22:23
mveRichard MacCutchan7-Jul-14 22:23 
SuggestionRe: Session Timeout Pin
ZurdoDev9-Jul-14 2:19
professionalZurdoDev9-Jul-14 2:19 
QuestionTexbox OnKeyPress event thru javascript executes a button click event Pin
bjay tiamsic7-Jul-14 15:37
bjay tiamsic7-Jul-14 15:37 
AnswerRe: Texbox OnKeyPress event thru javascript executes a button click event Pin
Dave Kreskowiak7-Jul-14 17:46
mveDave Kreskowiak7-Jul-14 17:46 
QuestionAn MVC concern Pin
Neo101017-Jul-14 10:25
Neo101017-Jul-14 10:25 
QuestionRe: An MVC concern Pin
Richard Deeming7-Jul-14 11:33
mveRichard Deeming7-Jul-14 11:33 
AnswerRe: An MVC concern Pin
Neo101017-Jul-14 22:33
Neo101017-Jul-14 22:33 
AnswerRe: An MVC concern Pin
Richard MacCutchan7-Jul-14 22:21
mveRichard MacCutchan7-Jul-14 22:21 
QuestionHow to make Setup Project Pin
Amr Muhammed7-Jul-14 8:32
Amr Muhammed7-Jul-14 8:32 
AnswerRe: How to make Setup Project Pin
OriginalGriff7-Jul-14 8:58
mveOriginalGriff7-Jul-14 8:58 
GeneralRe: How to make Setup Project Pin
Amr Muhammed7-Jul-14 11:30
Amr Muhammed7-Jul-14 11:30 
GeneralRe: How to make Setup Project Pin
OriginalGriff7-Jul-14 22:25
mveOriginalGriff7-Jul-14 22:25 
SuggestionRe: How to make Setup Project Pin
Erik Rude14-Jul-14 5:03
Erik Rude14-Jul-14 5:03 

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.