Click here to Skip to main content
15,919,423 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionsms sending Pin
yuvachandra21-Dec-06 19:47
yuvachandra21-Dec-06 19:47 
AnswerRe: sms sending Pin
ednrgc22-Dec-06 4:06
ednrgc22-Dec-06 4:06 
GeneralRe: sms sending Pin
yuvachandra22-Dec-06 19:32
yuvachandra22-Dec-06 19:32 
QuestionHow can i display 20 records in detail section per page in crystal reports. Pin
MissionSuccess21-Dec-06 19:21
MissionSuccess21-Dec-06 19:21 
Questionhow to upload files or folders using drag and drop in asp.net Pin
vipin desai21-Dec-06 19:14
vipin desai21-Dec-06 19:14 
Questionweb mail server Pin
amit.code21-Dec-06 19:11
amit.code21-Dec-06 19:11 
QuestionConnection Issue While connecting to SqlServer 2000 from ASP.NET 2.0 Pin
nesaraja21-Dec-06 18:31
nesaraja21-Dec-06 18:31 
AnswerRe: Connection Issue While connecting to SqlServer 2000 from ASP.NET 2.0 Pin
RenuKhot21-Dec-06 18:57
RenuKhot21-Dec-06 18:57 
Hi,
can you paste your code u are using to connect to the database.

The way it is usually done is pasted below for your reference

The connection stings are specified in the web config file.

In Web.Config, you can add a key to the AppSettings Section

<appsettings>

<add key="MyDBConnection" value="data source=<ServerName>;Initial catalog =<DBName>;user id=<Username>;password=<Password>;">



Example:
<add key="ConnectionString" value="data source=localhost;Initial catalog=northwind;user id=sa;password=mypass">

Then, in your ASP.Net application - just refer to it like this:
using System.Configuration;
string connectionString = (string )ConfigurationSettings.AppSettings["ConnectionString"];

try also adding
<identidy impersonate="true"> segment to your web config file.

i hope this helps


Renu.K
GeneralRe: Connection Issue While connecting to SqlServer 2000 from ASP.NET 2.0 Pin
nesaraja21-Dec-06 19:20
nesaraja21-Dec-06 19:20 
GeneralRe: Connection Issue While connecting to SqlServer 2000 from ASP.NET 2.0 Pin
RenuKhot21-Dec-06 19:55
RenuKhot21-Dec-06 19:55 
GeneralRe: Connection Issue While connecting to SqlServer 2000 from ASP.NET 2.0 Pin
nesaraja28-Dec-06 19:49
nesaraja28-Dec-06 19:49 
Questionunable to run copied asp code in local server Pin
madhumallidi21-Dec-06 13:01
madhumallidi21-Dec-06 13:01 
AnswerRe: unable to run copied asp code in local server Pin
ednrgc22-Dec-06 4:08
ednrgc22-Dec-06 4:08 
QuestionConfiguration failures Pin
whatever10121-Dec-06 10:38
whatever10121-Dec-06 10:38 
QuestionTriggering the Background color, font and other properties in ASP.Net Pin
Tina P21-Dec-06 10:21
Tina P21-Dec-06 10:21 
AnswerRe: Triggering the Background color, font and other properties in ASP.Net Pin
eggsovereasy21-Dec-06 10:53
eggsovereasy21-Dec-06 10:53 
GeneralRe: Triggering the Background color, font and other properties in ASP.Net Pin
Tina P21-Dec-06 20:11
Tina P21-Dec-06 20:11 
GeneralRe: Triggering the Background color, font and other properties in ASP.Net Pin
Nimit Patel22-Dec-06 2:14
Nimit Patel22-Dec-06 2:14 
GeneralRe: Triggering the Background color, font and other properties in ASP.Net Pin
eggsovereasy22-Dec-06 8:51
eggsovereasy22-Dec-06 8:51 
GeneralRe: Triggering the Background color, font and other properties in ASP.Net Pin
Tina P22-Dec-06 10:39
Tina P22-Dec-06 10:39 
GeneralRe: Triggering the Background color, font and other properties in ASP.Net Pin
Tina P22-Dec-06 12:06
Tina P22-Dec-06 12:06 
NewsRe: Triggering the Background color, font and other properties in ASP.Net Pin
Tina P23-Dec-06 15:24
Tina P23-Dec-06 15:24 
QuestionGridview cross page data transfer Pin
srishree21-Dec-06 10:05
srishree21-Dec-06 10:05 
AnswerIf you want to use popup window for child gridview,this may help you Pin
kvPriya21-Dec-06 18:30
kvPriya21-Dec-06 18:30 
GeneralRe: If you want to use popup window for child gridview,this may help you Pin
srishree21-Dec-06 18:41
srishree21-Dec-06 18:41 

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.