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

ASP.NET

 
Questionhow to calculate the Bandwidth. Pin
Amit Agarrwal16-Oct-06 19:53
Amit Agarrwal16-Oct-06 19:53 
QuestionDrillDown Reports Pin
Sowmya Chillampally16-Oct-06 19:48
Sowmya Chillampally16-Oct-06 19:48 
QuestionHow to Save Audion Files to The SQL SERVER using ASP.NET Pin
deviduttayahoo16-Oct-06 19:45
deviduttayahoo16-Oct-06 19:45 
AnswerRe: How to Save Audion Files to The SQL SERVER using ASP.NET Pin
just3ala216-Oct-06 20:27
just3ala216-Oct-06 20:27 
GeneralRe: How to Save Audion Files to The SQL SERVER using ASP.NET Pin
Andrei_KS16-Oct-06 21:21
Andrei_KS16-Oct-06 21:21 
Questionhow to bind dropdown listbox with two tables Pin
monuSaini16-Oct-06 19:30
monuSaini16-Oct-06 19:30 
AnswerRe: how to bind dropdown listbox with two tables Pin
shreekar16-Oct-06 19:46
shreekar16-Oct-06 19:46 
GeneralRe: how to bind dropdown listbox with two tables Pin
monuSaini16-Oct-06 20:18
monuSaini16-Oct-06 20:18 
Dim DS As DataSet
Dim MyCommand As SqlDataAdapter
'create connection
Dim MyConnection As SqlConnection
MyConnection = New SqlConnection(Application("dbStrConn").ToString())
'first statement to run
MyCommand = New SqlDataAdapter("select* from jobSectorCategory where jobSectorCategoryStatus='A'", MyConnection)

DS = New DataSet
MyCommand.Fill(DS, "jobSectorCategory")

MyCommand.SelectCommand.CommandText = "select * from jobSectorSubCategory where jobSectorSubCategoryStatus='A'"
MyCommand.Fill(DS, "jobSectorSubCategory")

Dim i, j As Integer

Dim dc As DataColumn

Dim mystrval As String

Dim dt As DataTable

Dim dr As DataRow

For Each dt In DS.Tables

For i = 0 To dt.Rows.Count - 1

For Each dc In dt.Columns

Select Case dc.ColumnName

Case "jobSectorCategoryText"

mystrval = mystrval & dt.Rows(i)(dc.ColumnName).ToString

Case "jobSectorSubCategoryText"

mystrval = mystrval & dt.Rows(i)(dc.ColumnName).ToString

End Select

Next
'Response.Write("ya hai--")
'Response.Write(mystrval)
chooseSector.Items.Add(mystrval)

mystrval = ""

Next

Next

thanx for showning ur interest in my problem.
i m using dis,with dis code i am able to get data but the ordering is not according to want . here first all the records of first table then second table. but i want record of first table as heading of second table.

thanx
waiting
regards
rahul

rahul saini
GeneralRe: how to bind dropdown listbox with two tables Pin
shreekar16-Oct-06 20:26
shreekar16-Oct-06 20:26 
GeneralRe: how to bind dropdown listbox with two tables Pin
monuSaini16-Oct-06 21:27
monuSaini16-Oct-06 21:27 
GeneralRe: how to bind dropdown listbox with two tables Pin
shreekar16-Oct-06 21:42
shreekar16-Oct-06 21:42 
GeneralRe: how to bind dropdown listbox with two tables Pin
monuSaini17-Oct-06 23:35
monuSaini17-Oct-06 23:35 
GeneralRe: how to bind dropdown listbox with two tables Pin
shreekar18-Oct-06 0:07
shreekar18-Oct-06 0:07 
GeneralRe: how to bind dropdown listbox with two tables Pin
monuSaini18-Oct-06 0:40
monuSaini18-Oct-06 0:40 
Questionhistory deletion in vb.net Pin
amaneet16-Oct-06 19:07
amaneet16-Oct-06 19:07 
AnswerRe: history deletion in vb.net Pin
srilu nagalla16-Oct-06 19:12
srilu nagalla16-Oct-06 19:12 
GeneralRe: history deletion in vb.net Pin
amaneet16-Oct-06 19:43
amaneet16-Oct-06 19:43 
GeneralRe: history deletion in vb.net Pin
srilu nagalla16-Oct-06 20:05
srilu nagalla16-Oct-06 20:05 
QuestionProgrammatically Create a DSN Pin
nannapanenikamalnath16-Oct-06 19:06
nannapanenikamalnath16-Oct-06 19:06 
AnswerRe: Programmatically Create a DSN Pin
Andrei_KS16-Oct-06 20:08
Andrei_KS16-Oct-06 20:08 
QuestionHow to compare values Pin
miniThomas16-Oct-06 18:51
miniThomas16-Oct-06 18:51 
AnswerRe: How to compare values Pin
Guffa16-Oct-06 19:04
Guffa16-Oct-06 19:04 
AnswerRe: How to compare values Pin
Faisal Khatri16-Oct-06 19:26
Faisal Khatri16-Oct-06 19:26 
AnswerRe: How to compare values Pin
Faisal Khatri16-Oct-06 19:34
Faisal Khatri16-Oct-06 19:34 
GeneralRe: How to compare values Pin
shreekar16-Oct-06 19:49
shreekar16-Oct-06 19:49 

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.