Click here to Skip to main content
16,005,120 members
Home / Discussions / C#
   

C#

 
GeneralRe: Invoking Control Events in Code Pin
Marc Clifton26-Apr-05 14:22
mvaMarc Clifton26-Apr-05 14:22 
GeneralRe: Invoking Control Events in Code Pin
leppie26-Apr-05 18:41
leppie26-Apr-05 18:41 
GeneralRe: Invoking Control Events in Code Pin
Marc Clifton27-Apr-05 4:15
mvaMarc Clifton27-Apr-05 4:15 
GeneralRe: Invoking Control Events in Code Pin
leppie27-Apr-05 9:00
leppie27-Apr-05 9:00 
GeneralRe: Invoking Control Events in Code Pin
Marc Clifton27-Apr-05 10:12
mvaMarc Clifton27-Apr-05 10:12 
GeneralRe: Invoking Control Events in Code Pin
Thoughthopper29-Apr-05 12:37
Thoughthopper29-Apr-05 12:37 
Generalconnecting SQLServer with Asp.net(C#) Pin
cishi_us26-Apr-05 11:10
cishi_us26-Apr-05 11:10 
GeneralRe: connecting SQLServer with Asp.net(C#) Pin
Heath Stewart26-Apr-05 11:17
protectorHeath Stewart26-Apr-05 11:17 
Since you're using integrated security and ASP.NET is running under the NT AUTHORITY\NETWORK SERVICE account (must be IIS6 on Windows Server 2003), the SQL Server won't authenticate it you because 1) it doesn't have an account added for that user account, and 2) because NETWORK SERVICE is a local account - not a domain account. If SQL Server is on your web machine, you could get away with doing that, but it won't work if it's on another machine.

Either use a specific username and password (typical on web machines) or impersonate a user. You can do this using the <identity> element in your application's (or web site's) Web.config file. You could also impersonate any requesting user and let SQL Server decide if they can query the data. It really depends on your requirements.

To encrypt the connection string with the username and password in the registry and have ASP.NET use that instead of putting the plain-text string on the server, read http://support.microsoft.com/default.aspx?scid=kb;en-us;329290[^].

In the future, however, please post ASP.NET-related questions to the ASP.NET[^] forum.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Customer Product-lifecycle Experience
Microsoft

[My Articles] [My Blog]
Questiondisplay row number in datagrid? Pin
sammyh26-Apr-05 8:57
sammyh26-Apr-05 8:57 
AnswerRe: display row number in datagrid? Pin
Marc Clifton26-Apr-05 11:15
mvaMarc Clifton26-Apr-05 11:15 
GeneralRe: display row number in datagrid? Pin
Heath Stewart26-Apr-05 11:20
protectorHeath Stewart26-Apr-05 11:20 
GeneralRe: display row number in datagrid? Pin
sammyh26-Apr-05 18:42
sammyh26-Apr-05 18:42 
GeneralRe: display row number in datagrid? Pin
Heath Stewart27-Apr-05 5:11
protectorHeath Stewart27-Apr-05 5:11 
QuestionHow to write a simple service Pin
dwark10626-Apr-05 8:47
dwark10626-Apr-05 8:47 
AnswerRe: How to write a simple service Pin
Tom Larsen26-Apr-05 9:22
Tom Larsen26-Apr-05 9:22 
AnswerRe: How to write a simple service Pin
Heath Stewart26-Apr-05 9:33
protectorHeath Stewart26-Apr-05 9:33 
GeneralRe: How to write a simple service Pin
dwark10626-Apr-05 13:29
dwark10626-Apr-05 13:29 
Generalopen new window in c# Pin
ABBASI_RA26-Apr-05 8:34
ABBASI_RA26-Apr-05 8:34 
GeneralRe: open new window in c# Pin
Heath Stewart26-Apr-05 9:36
protectorHeath Stewart26-Apr-05 9:36 
GeneralRe: open new window in c# Pin
Polis Pilavas26-Apr-05 10:40
Polis Pilavas26-Apr-05 10:40 
QuestionHow to get the window state? Pin
Sheela Krishnan26-Apr-05 8:33
Sheela Krishnan26-Apr-05 8:33 
AnswerRe: How to get the window state? Pin
Dennis C. Dietrich26-Apr-05 8:53
Dennis C. Dietrich26-Apr-05 8:53 
GeneralTabControl Pin
Alex_Y26-Apr-05 8:18
Alex_Y26-Apr-05 8:18 
GeneralRe: TabControl Pin
Marc Clifton26-Apr-05 11:16
mvaMarc Clifton26-Apr-05 11:16 
GeneralRe: TabControl Pin
Alex_Y27-Apr-05 3:55
Alex_Y27-Apr-05 3:55 

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.