Click here to Skip to main content
15,917,005 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How can I use a connection string stored in the web.config file Pin
alexfromto7-Nov-07 3:57
alexfromto7-Nov-07 3:57 
GeneralRe: How can I use a connection string stored in the web.config file Pin
Big Ralph7-Nov-07 4:20
Big Ralph7-Nov-07 4:20 
GeneralRe: How can I use a connection string stored in the web.config file Pin
VenkataRamesh7-Nov-07 4:18
VenkataRamesh7-Nov-07 4:18 
GeneralRe: How can I use a connection string stored in the web.config file Pin
Big Ralph7-Nov-07 4:34
Big Ralph7-Nov-07 4:34 
GeneralRe: How can I use a connection string stored in the web.config file Pin
VenkataRamesh7-Nov-07 4:42
VenkataRamesh7-Nov-07 4:42 
GeneralRe: How can I use a connection string stored in the web.config file Pin
Big Ralph7-Nov-07 4:51
Big Ralph7-Nov-07 4:51 
GeneralRe: How can I use a connection string stored in the web.config file Pin
VenkataRamesh7-Nov-07 4:58
VenkataRamesh7-Nov-07 4:58 
QuestionRe: How can I use a connection string stored in the web.config file Pin
Big Ralph8-Nov-07 1:35
Big Ralph8-Nov-07 1:35 
the connection string is:
<add name="NameofConnection" connectionString="Data Source=W2K3SERVER;Initial Catalog=DATABASE;Integrated Security=True" providerName="System.Data.SqlClient"/>

My code is the code u gave me:
Dim sConn As String
sConn = System.Configuration.ConfigurationManager.AppSettings("NameofConnection")
Dim con As New System.Data.SqlClient.SqlConnection
con.ConnectionString = sConn
Dim selectCMD As SqlCommand = New SqlCommand("SELECT * FROM Table$", con)
selectCMD.CommandTimeout = 30
Dim custDA As SqlDataAdapter = New SqlDataAdapter
custDA.SelectCommand = selectCMD
con.Open()
Dim custDT As DataTable = New DataTable
custDA.Fill(custDT)
con.Close()

the .fill doesn't take the 2 parameters I'm using asp.net 2.0 (maybe there is a difference)


BiG RaLpH
Questionways to create table Pin
alexfromto7-Nov-07 2:56
alexfromto7-Nov-07 2:56 
AnswerRe: ways to create table Pin
Michael Sync7-Nov-07 4:08
Michael Sync7-Nov-07 4:08 
GeneralRe: ways to create table Pin
alexfromto7-Nov-07 4:30
alexfromto7-Nov-07 4:30 
GeneralRe: ways to create table Pin
alexfromto7-Nov-07 11:23
alexfromto7-Nov-07 11:23 
QuestionIs there a way to check the eBay API Services offline? Pin
Rocky#7-Nov-07 2:55
Rocky#7-Nov-07 2:55 
AnswerRe: Is there a way to check the eBay API Services offline? Pin
Rocky#7-Nov-07 3:19
Rocky#7-Nov-07 3:19 
QuestionFile Upload to another server [modified] Pin
GaryWoodfine 7-Nov-07 1:57
professionalGaryWoodfine 7-Nov-07 1:57 
Questionhow to call the code behind function in source file of javascipt Pin
Sonia Gupta7-Nov-07 1:31
Sonia Gupta7-Nov-07 1:31 
AnswerRe: how to call the code behind function in source file of javascipt Pin
Pete O'Hanlon7-Nov-07 2:03
mvePete O'Hanlon7-Nov-07 2:03 
Questioncheck box list Pin
rameshdontagani7-Nov-07 1:30
rameshdontagani7-Nov-07 1:30 
AnswerRe: check box list Pin
J4amieC7-Nov-07 1:56
J4amieC7-Nov-07 1:56 
AnswerRe: check box list Pin
John-ph7-Nov-07 5:00
John-ph7-Nov-07 5:00 
Questioncustom validator problem Pin
N a r e s h P a t e l7-Nov-07 1:10
N a r e s h P a t e l7-Nov-07 1:10 
AnswerRe: custom validator problem Pin
Michael Sync7-Nov-07 4:44
Michael Sync7-Nov-07 4:44 
Questionhyperlink control Pin
Sonia Gupta7-Nov-07 0:55
Sonia Gupta7-Nov-07 0:55 
AnswerRe: hyperlink control Pin
Christian Graus7-Nov-07 1:01
protectorChristian Graus7-Nov-07 1:01 
GeneralRe: hyperlink control [modified] Pin
Sonia Gupta7-Nov-07 1:17
Sonia Gupta7-Nov-07 1:17 

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.