Click here to Skip to main content
15,916,949 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionProblem with UpdatePanel, ListBox, and the back button.. Pin
Dio227-Nov-07 4:25
Dio227-Nov-07 4:25 
QuestionProcess cannot access the file because it is being used by another process Pin
samerh7-Nov-07 3:48
samerh7-Nov-07 3:48 
QuestionHelp me with this Pl/Sql procedure (ORACLE 9i) call from asp.net Pin
solami7-Nov-07 3:24
solami7-Nov-07 3:24 
AnswerRe: Help me with this Pl/Sql procedure (ORACLE 9i) call from asp.net Pin
VenkataRamesh7-Nov-07 5:26
VenkataRamesh7-Nov-07 5:26 
QuestionHow can I use a connection string stored in the web.config file Pin
Big Ralph7-Nov-07 3:01
Big Ralph7-Nov-07 3:01 
AnswerRe: How can I use a connection string stored in the web.config file [modified] Pin
alexfromto7-Nov-07 3:10
alexfromto7-Nov-07 3:10 
GeneralRe: How can I use a connection string stored in the web.config file Pin
Big Ralph7-Nov-07 3:51
Big Ralph7-Nov-07 3:51 
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 
Use connection to connect to database. Create datagrid, dataset and dataadapter.
Fill your dataset using dataadapter and assing dataset to your datagrid.

NOTE: dg is the datagrid on your page. You can AutoGenerateColumns(True or False).
If you do just bind dataset to datagrid and that's it. If you want to play around you will have to built custom columns for your datagrid.

'Open connection<br />
con.Open()<br />
<br />
Dim strSQL As String = "SELECT * FROM Tabl1"<br />
<br />
'Create command and assign timeout value<br />
Dim cmdSelect As New System.Data.SqlClient.SqlCommand(strSQL, con)<br />
<br />
'Create data set<br />
Dim ds As New DataSet<br />
<br />
'Created adapter and fill dataset<br />
Dim da As New System.Data.SqlClient.SqlDataAdapter(cmdSelect)<br />
da.Fill(ds, "ANYTABLENAME")<br />
<br />
'Verify if data exists<br />
If ds.Tables(0).Rows.Count > 0 Then<br />
   'Create dataview and assign sort by field and direction<br />
   Dim dv As DataView = ds.Tables("ANYTABLENAME").DefaultView<br />
   dg.DataSource = dv<br />
<br />
   'Bind data to datagrid<br />
   dg.DataBind()<br />
End If<br />
<br />
'Close connection<br />
con.Close()

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 
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 

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.