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

ASP.NET

 
GeneralRe: invoke webservice with xmlhttprequest Pin
impeesa_0111-Mar-09 15:42
professionalimpeesa_0111-Mar-09 15:42 
QuestionCannot Use IIS Pin
MrColeyted10-Mar-09 14:40
MrColeyted10-Mar-09 14:40 
AnswerRe: Cannot Use IIS Pin
Yusuf10-Mar-09 15:23
Yusuf10-Mar-09 15:23 
GeneralRe: Cannot Use IIS [modified] Pin
MrColeyted10-Mar-09 15:32
MrColeyted10-Mar-09 15:32 
QuestionException handling with web services in ASP.NET 3.5 Pin
Member 391904910-Mar-09 14:14
Member 391904910-Mar-09 14:14 
QuestionUpdate Database(ACCESS) from ASP page Pin
daks90610-Mar-09 10:13
daks90610-Mar-09 10:13 
AnswerRe: Update Database(ACCESS) from ASP page Pin
Yusuf10-Mar-09 11:20
Yusuf10-Mar-09 11:20 
QuestionASP.Net 1.1, VB.Net 2003 and SQL Server 2005 Pin
Ragonastick10-Mar-09 9:43
Ragonastick10-Mar-09 9:43 
Hi I am new to programming with ASP.Net and I am looking for some information.

I currently have a database locally on my machine, and I am trying to connect and read one of the tables through the VB. I have gone to many website, and tried a couple of things but I get up to a point and its still crashing when I go to open it. One thing you will notice is that I do not have a password on my database because there is not one on my machine.

This is the code I have in my page load


Dim oConn As New System.Data.SqlClient.SqlConnection
       Dim oCom As System.Data.SqlClient.SqlCommand
       Dim oDr As System.Data.SqlClient.SqlDataReader
       Dim sSQL As String

       sSQL = "SELECT * FROM AdminTypes"
       oConn = New System.Data.SqlClient.SqlConnection("server=MCF1500\SQLEXPRESS;uid=JWilson;pwd=;database=MCF_Staff;Trusted_Connection=yes")
       oConn.Open()   'Crashes HERE

       oCom = New System.Data.SqlClient.SqlCommand(sSQL, oConn)

       oDr = oCom.ExecuteReader()

       Do While oDr.Read()
           ' Show database data
       Loop
       oConn.Close()


And I have this code in my WEB.config File

<configuration>
    <appsettings>
        <add key="DBConString" value="Uid=JWilson;pwd=;server=MCF1500\SQLEXPRESS;database=MCF_Staff" />
    </appsettings>
  <system.web></system.web></configuration>


I was wondering if anyone could help me out with his. If so it would be much appreciated. If not then I am switching over to PHP for this project because I understand it better.
AnswerRe: ASP.Net 1.1, VB.Net 2003 and SQL Server 2005 Pin
Ragonastick10-Mar-09 9:46
Ragonastick10-Mar-09 9:46 
AnswerRe: ASP.Net 1.1, VB.Net 2003 and SQL Server 2005 Pin
Rutvik Dave11-Mar-09 6:20
professionalRutvik Dave11-Mar-09 6:20 
GeneralRe: ASP.Net 1.1, VB.Net 2003 and SQL Server 2005 Pin
Ragonastick13-Mar-09 7:20
Ragonastick13-Mar-09 7:20 
Questioncompilation error while running the application Pin
misha singhal10-Mar-09 8:16
misha singhal10-Mar-09 8:16 
AnswerRe: compilation error while running the application Pin
Calin Tatar10-Mar-09 9:28
Calin Tatar10-Mar-09 9:28 
Questioncreating a daemon process [modified] Pin
liz310-Mar-09 8:00
liz310-Mar-09 8:00 
AnswerRe: creating a daemon process Pin
fred_10-Mar-09 8:24
fred_10-Mar-09 8:24 
QuestionLooking for a starting point (ftp7 lockout) Pin
cechode10-Mar-09 6:53
cechode10-Mar-09 6:53 
QuestionPage.isValid is not affected by ValidationGroup hange Pin
tiktak610-Mar-09 5:49
tiktak610-Mar-09 5:49 
QuestionDeferred Evaluation in LINQ Pin
nkmkrishna10-Mar-09 3:02
nkmkrishna10-Mar-09 3:02 
AnswerRe: Deferred Evaluation in LINQ Pin
Calin Tatar10-Mar-09 7:55
Calin Tatar10-Mar-09 7:55 
QuestionGridview ? Pin
Che _Guevara10-Mar-09 2:15
Che _Guevara10-Mar-09 2:15 
AnswerRe: Gridview ? [modified] Pin
rakeshs31210-Mar-09 2:26
rakeshs31210-Mar-09 2:26 
AnswerRe: Gridview ? Pin
nagendrathecoder10-Mar-09 2:36
nagendrathecoder10-Mar-09 2:36 
AnswerRe: Gridview ? Pin
BalasubramanianK10-Mar-09 2:44
BalasubramanianK10-Mar-09 2:44 
AnswerRe: Gridview ? Pin
impeesa_0110-Mar-09 21:01
professionalimpeesa_0110-Mar-09 21:01 
QuestionUpdating Date in gridview Pin
bishwambhar_sen10-Mar-09 1:33
bishwambhar_sen10-Mar-09 1:33 

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.