Click here to Skip to main content
15,909,242 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Query Problem Pin
varshavmane21-Jun-06 2:16
varshavmane21-Jun-06 2:16 
GeneralRe: Query Problem Pin
Malcolm Smart21-Jun-06 2:21
Malcolm Smart21-Jun-06 2:21 
GeneralRe: Query Problem Pin
albCode21-Jun-06 2:10
albCode21-Jun-06 2:10 
GeneralRe: Query Problem Pin
varshavmane21-Jun-06 2:19
varshavmane21-Jun-06 2:19 
GeneralRe: Query Problem Pin
Malcolm Smart21-Jun-06 2:27
Malcolm Smart21-Jun-06 2:27 
GeneralRe: Query Problem Pin
albCode21-Jun-06 2:28
albCode21-Jun-06 2:28 
GeneralRe: Query Problem [modified] Pin
varshavmane21-Jun-06 2:59
varshavmane21-Jun-06 2:59 
AnswerRe: Query Problem Pin
Nagraj Naik21-Jun-06 2:07
Nagraj Naik21-Jun-06 2:07 
Hi,
look it may help you.


''''''''''''''''''''''''''''''First Create one class
Public Class ComboClass
Private _id As Integer
Public Property ID() As Integer
Get
Return _id
End Get
Set(ByVal Value As Integer)
_id = Value
End Set
End Property

Private _name As String
Public Property Name() As String
Get
Return _name
End Get
Set(ByVal Value As String)
_name = Value
End Set
End Property
End Class

public sub Save()
//some database code here
Dim dataReader As IDataReader = database.ExecuteReader(dbCommandWrapper)
Dim comboClass As ComboClass
Dim returnArrayList As New ArrayList
While (dataReader.Read())
comboClass = New ComboClass
With comboClass
.ID = Convert.ToInt32(dataReader(0))
'TODO take this hack oout and replace with a column name
.Name = Convert.ToString(dataReader(1))
End With
returnArrayList.Add(comboClass)
End While

end sub


After this you have Arraylist with all fetched values that you can use.


Regards,
Nagraj


Let's Teach Life To Laugh........Laugh | :laugh:


QuestionGet variable from javascript Pin
Commickey21-Jun-06 1:34
Commickey21-Jun-06 1:34 
AnswerRe: Get variable from javascript Pin
varshavmane21-Jun-06 1:45
varshavmane21-Jun-06 1:45 
GeneralRe: Get variable from javascript Pin
Commickey21-Jun-06 1:59
Commickey21-Jun-06 1:59 
GeneralRe: Get variable from javascript Pin
varshavmane21-Jun-06 2:13
varshavmane21-Jun-06 2:13 
GeneralRe: Get variable from javascript Pin
RichardGrimmer22-Jun-06 5:08
RichardGrimmer22-Jun-06 5:08 
QuestionCDONTS PROBLEM Pin
123XYZQWERT21-Jun-06 1:09
123XYZQWERT21-Jun-06 1:09 
AnswerRe: CDONTS PROBLEM Pin
Vasudevan Deepak Kumar21-Jun-06 2:17
Vasudevan Deepak Kumar21-Jun-06 2:17 
GeneralRe: CDONTS PROBLEM Pin
123XYZQWERT21-Jun-06 2:18
123XYZQWERT21-Jun-06 2:18 
AnswerRe: CDONTS PROBLEM Pin
Malcolm Smart21-Jun-06 2:24
Malcolm Smart21-Jun-06 2:24 
GeneralRe: CDONTS PROBLEM Pin
123XYZQWERT21-Jun-06 2:31
123XYZQWERT21-Jun-06 2:31 
AnswerRe: CDONTS PROBLEM Pin
Nagraj Naik21-Jun-06 3:53
Nagraj Naik21-Jun-06 3:53 
Questionuse web service at work with database Pin
sogol_n2021-Jun-06 0:30
sogol_n2021-Jun-06 0:30 
AnswerRe: use web service at work with database Pin
Vasudevan Deepak Kumar21-Jun-06 2:21
Vasudevan Deepak Kumar21-Jun-06 2:21 
GeneralRe: use web service at work with database Pin
sogol_n2021-Jun-06 6:53
sogol_n2021-Jun-06 6:53 
QuestionWhy Web config file........? Pin
Nagraj Naik20-Jun-06 22:19
Nagraj Naik20-Jun-06 22:19 
AnswerRe: Why Web config file........? Pin
Vasudevan Deepak Kumar20-Jun-06 22:43
Vasudevan Deepak Kumar20-Jun-06 22:43 
GeneralRe: Why Web config file........? Pin
Nagraj Naik21-Jun-06 0:52
Nagraj Naik21-Jun-06 0:52 

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.