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

ASP.NET

 
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 
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 
Sub fillSectorDropdown()
Dim DS As DataSet
Dim MyCommand As SqlDataAdapter
Dim MyConnection As SqlConnection
MyConnection = New SqlConnection(Application("dbStrConn").ToString())
Dim sql As String = "select SectorId,SectorName,subSectorId,subSectorName from(Sector, subSector) where(SectorId = subSectorId) order by Sector.SectorId"
MyCommand = New SqlDataAdapter(sql, MyConnection)
Dim prevsecid As Integer = 0
Dim objDR As SqlDataReader

If objDr.Read Then
'While (objDr.Read) 'dis is not working
If prevsecid = objDr("jobSectorCategoryId") Then
chooseSector.DataSource = DS
chooseSector.DataSource = DS.Tables(0)
chooseSector.DataTextField = DS.Tables(0).Columns("Sector").ColumnName.ToString()
Sector.DataValueField = DS.Tables(0).Columns("SectorId").ColumnName.ToString()
chooseSector.DataBind()
'add sub sector info to drop down
Else
prevsecid = objDr("subSectorId")
'add sector info to drop down
'add sub sector info to drop down
chooseSector.DataSource = DS
chooseSector.DataSource = DS.Tables(0)
chooseSector.DataTextField = DS.Tables(0).Columns("Sector").ColumnName.ToString()
chooseSector.DataValueField = DS.Tables(0).Columns("SectorId").ColumnName.ToString()
chooseSector.DataBind()
End If

'Loop
End If
End Sub


i m using dis code please retify dis code
thanx
regards.
rahul


rahul saini
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 
AnswerRe: How to compare values Pin
Suresh Pirsquare16-Oct-06 20:06
Suresh Pirsquare16-Oct-06 20:06 
GeneralRe: How to compare values Pin
miniThomas16-Oct-06 21:05
miniThomas16-Oct-06 21:05 
QuestionCheck for culture support in ASP.Net 2.0 Pin
dotnetquery16-Oct-06 17:51
dotnetquery16-Oct-06 17:51 
AnswerRe: Check for culture support in ASP.Net 2.0 Pin
Tad McClellan16-Oct-06 18:39
professionalTad McClellan16-Oct-06 18:39 
Questionhow can i create buttons duirng runtime? Pin
neodeaths16-Oct-06 17:07
neodeaths16-Oct-06 17:07 
AnswerRe: how can i create buttons duirng runtime? Pin
Tad McClellan16-Oct-06 18:31
professionalTad McClellan16-Oct-06 18:31 

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.