Click here to Skip to main content
15,887,436 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Configuration and Trust levels Pin
egenis16-Sep-09 18:04
egenis16-Sep-09 18:04 
QuestionSilverlight error when not using silverlight -edit resolved. Pin
thrakazog15-Sep-09 11:22
thrakazog15-Sep-09 11:22 
AnswerRe: Silverlight error when not using silverlight Pin
Christian Graus15-Sep-09 11:27
protectorChristian Graus15-Sep-09 11:27 
GeneralRe: Silverlight error when not using silverlight Pin
thrakazog15-Sep-09 11:45
thrakazog15-Sep-09 11:45 
GeneralRe: Silverlight error when not using silverlight Pin
Christian Graus15-Sep-09 11:52
protectorChristian Graus15-Sep-09 11:52 
Questioncalende option disappeare after deploying my code in server Pin
amitamit09915-Sep-09 9:23
amitamit09915-Sep-09 9:23 
AnswerRe: calende option disappeare after deploying my code in server Pin
Abhishek Sur15-Sep-09 9:51
professionalAbhishek Sur15-Sep-09 9:51 
QuestionRegarding opening a database through c# Pin
dayakar_dn15-Sep-09 9:20
dayakar_dn15-Sep-09 9:20 
hi Friends,

i want to get data from database. I am giving connection string in my web.config file
it looks like
<connectionStrings>
<add name="SampleDataBaseConnectionString" connectionString="Data Source=DREDDY9\SQLEXPRESS;Initial Catalog=SampleDataBase;Integrated Security=True"
providerName="System.Data.SqlClient" />
</connectionStrings>

from the codebehind file i am trying to accesses data from the DB, The code which i written is mentioned below
string sqlStatement = "select * from Student_Table";
String dataBaseConnection = WebConfigurationManager.ConnectionStrings["SampleDataBaseConnectionString"].ConnectionString;
//String dataBaseConnection = "Data Source=ddaya;Initial Catalog=SampleDataBase;Integrated Security=True";
SqlConnection myConnection = new SqlConnection(dataBaseConnection);

SqlCommand myCommand = new SqlCommand(sqlStatement, myConnection);
SqlDataReader dr;

myConnection.Open();
dr = myCommand.ExecuteReader();
if (dr != null)
{
Response.Write("Successfully Executed");
}
myConnection.Close();

but still it was giving an error like
Cannot open database "SampleDataBase" requested by the login. The login failed.
Login failed for user 'DREDDY9\ASPNET'.

but through sql server i am able to open the DB and i can query.

any solution for this.
AnswerRe: Regarding opening a database through c# Pin
Abhishek Sur15-Sep-09 9:47
professionalAbhishek Sur15-Sep-09 9:47 
QuestionDynamically creating pie chart by taking data from a database. Pin
coolsharath15-Sep-09 7:55
coolsharath15-Sep-09 7:55 
AnswerRe: Dynamically creating pie chart by taking data from a database. Pin
Abhishek Sur15-Sep-09 8:08
professionalAbhishek Sur15-Sep-09 8:08 
GeneralRe: Dynamically creating pie chart by taking data from a database. Pin
coolsharath15-Sep-09 8:45
coolsharath15-Sep-09 8:45 
AnswerRe: Dynamically creating pie chart by taking data from a database. Pin
Abhishek Sur15-Sep-09 9:14
professionalAbhishek Sur15-Sep-09 9:14 
GeneralRe: Dynamically creating pie chart by taking data from a database. Pin
coolsharath15-Sep-09 9:28
coolsharath15-Sep-09 9:28 
AnswerRe: Dynamically creating pie chart by taking data from a database. Pin
Abhishek Sur15-Sep-09 9:40
professionalAbhishek Sur15-Sep-09 9:40 
QuestionASP.NET(i want to access website2 in Website1) Pin
krishna2615-Sep-09 5:25
krishna2615-Sep-09 5:25 
AnswerRe: ASP.NET(i want to access website2 in Website1) Pin
Abhishek Sur15-Sep-09 6:38
professionalAbhishek Sur15-Sep-09 6:38 
QuestionGoogle analytics - ga.js? Pin
nowrocktheworld15-Sep-09 3:31
nowrocktheworld15-Sep-09 3:31 
AnswerRe: Google analytics - ga.js? Pin
Parwej Ahamad15-Sep-09 4:11
professionalParwej Ahamad15-Sep-09 4:11 
GeneralRe: Google analytics - ga.js? Pin
nowrocktheworld15-Sep-09 4:56
nowrocktheworld15-Sep-09 4:56 
GeneralRe: Google analytics - ga.js? Pin
Christian Graus15-Sep-09 10:13
protectorChristian Graus15-Sep-09 10:13 
AnswerRe: Google analytics - ga.js? Pin
Abhishek Sur15-Sep-09 6:21
professionalAbhishek Sur15-Sep-09 6:21 
GeneralRe: Google analytics - ga.js? Pin
nowrocktheworld17-Sep-09 23:41
nowrocktheworld17-Sep-09 23:41 
GeneralRe: Google analytics - ga.js? Pin
Abhishek Sur18-Sep-09 5:29
professionalAbhishek Sur18-Sep-09 5:29 
QuestionSelectedItem Problem in ASP.Net Pin
Shalini_U15-Sep-09 3:29
Shalini_U15-Sep-09 3:29 

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.