Click here to Skip to main content
15,896,557 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to upload asp.net project in internet? Pin
Nada Adel17-Oct-07 6:44
Nada Adel17-Oct-07 6:44 
Questionhow to print pdf document in aspnet? Pin
camal0017-Oct-07 2:26
camal0017-Oct-07 2:26 
QuestionProblem with ConectionString in ASP.NET Pin
Abhijit Jana17-Oct-07 2:18
professionalAbhijit Jana17-Oct-07 2:18 
AnswerRe: Problem with ConectionString in ASP.NET Pin
That's Aragon17-Oct-07 2:21
That's Aragon17-Oct-07 2:21 
GeneralRe: Problem with ConectionString in ASP.NET Pin
Abhijit Jana17-Oct-07 3:13
professionalAbhijit Jana17-Oct-07 3:13 
AnswerRe: Problem with ConectionString in ASP.NET Pin
Jintal Patel17-Oct-07 2:22
Jintal Patel17-Oct-07 2:22 
GeneralRe: Problem with ConectionString in ASP.NET Pin
Abhijit Jana17-Oct-07 3:11
professionalAbhijit Jana17-Oct-07 3:11 
GeneralRe: Problem with ConectionString in ASP.NET [modified] Pin
Jintal Patel17-Oct-07 19:28
Jintal Patel17-Oct-07 19:28 
hi If u want to open connection then try with

according your code

<connectionStrings>
<add name="mycon" connectionString="Data Source=M53;Initial Catalog=mydb;User ID=sa"
providerName="System.Data.SqlClient" />
</connectionStrings>

SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["mycon"].ToString());

u will be able to open connection ..

OR also try like this

<appSettings>
<add key="connectionString" value="Data Source==M53;Initial Catalog=mydb;User ID=s<a;Password=sa;"/>
</appSettings>

conn = new SqlConnection(System.Configuration.ConfigurationManager.AppSettings["connectionString"]);




-- modified at 2:36 Thursday 18th October, 2007


-- modified at 2:37 Thursday 18th October, 2007

Jintal Patel

GeneralRe: Problem with ConectionString in ASP.NET Pin
Abhijit Jana18-Oct-07 0:11
professionalAbhijit Jana18-Oct-07 0:11 
QuestionChange resource dynamically Pin
mpavas17-Oct-07 0:53
mpavas17-Oct-07 0:53 
QuestionHow to assign DebugLevel To Zero Pin
matjame17-Oct-07 0:51
matjame17-Oct-07 0:51 
AnswerRe: How to assign DebugLevel To Zero Pin
Colin Angus Mackay17-Oct-07 1:12
Colin Angus Mackay17-Oct-07 1:12 
GeneralRe: How to assign DebugLevel To Zero Pin
matjame17-Oct-07 1:25
matjame17-Oct-07 1:25 
Questionhow i can add a table to an iframe(plz very urgent) Pin
jagadeeshkumar198417-Oct-07 0:38
jagadeeshkumar198417-Oct-07 0:38 
AnswerRe: how i can add a table to an iframe(plz very urgent) Pin
Colin Angus Mackay17-Oct-07 1:10
Colin Angus Mackay17-Oct-07 1:10 
AnswerRe: how i can add a table to an iframe(plz very urgent) Pin
varshavmane17-Oct-07 1:33
varshavmane17-Oct-07 1:33 
QuestionCredential Pin
SreejithAchutan17-Oct-07 0:32
SreejithAchutan17-Oct-07 0:32 
AnswerRe: Credential Pin
John-ph17-Oct-07 0:49
John-ph17-Oct-07 0:49 
QuestionEncrypting Pin
SreejithAchutan17-Oct-07 0:27
SreejithAchutan17-Oct-07 0:27 
Questionupdate database Pin
Milind Panchal17-Oct-07 0:26
Milind Panchal17-Oct-07 0:26 
AnswerRe: update database Pin
Baran M17-Oct-07 0:32
Baran M17-Oct-07 0:32 
AnswerRe: update database Pin
John-ph17-Oct-07 0:59
John-ph17-Oct-07 0:59 
Questionurl Pin
venky45617-Oct-07 0:24
venky45617-Oct-07 0:24 
AnswerRe: url Pin
monu nair17-Oct-07 0:32
monu nair17-Oct-07 0:32 
Questionurl Pin
venky45617-Oct-07 0:15
venky45617-Oct-07 0: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.