Click here to Skip to main content
15,894,460 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: suggestions for sliding images on my website Pin
Johnny ²10-Jun-07 14:31
Johnny ²10-Jun-07 14:31 
AnswerRe: suggestions for sliding images on my website Pin
Tom John10-Jun-07 22:59
Tom John10-Jun-07 22:59 
QuestionHOW TO DECLARE UBOUND Pin
hifiger20049-Jun-07 7:07
hifiger20049-Jun-07 7:07 
AnswerRe: HOW TO DECLARE UBOUND Pin
Guffa9-Jun-07 8:35
Guffa9-Jun-07 8:35 
AnswerFOR...NEXT IN ASP.NET [modified] Pin
hifiger20049-Jun-07 5:03
hifiger20049-Jun-07 5:03 
GeneralRe: FOR...NEXT IN ASP.NET Pin
Guffa9-Jun-07 8:32
Guffa9-Jun-07 8:32 
GeneralRe: FOR...NEXT IN ASP.NET Pin
hifiger200412-Jun-07 4:54
hifiger200412-Jun-07 4:54 
QuestionERROR in ds.Tables.Item("SampleID").ToString() [modified] Pin
hifiger20049-Jun-07 3:46
hifiger20049-Jun-07 3:46 
Just disregard this issue. I already solved it guys.

Hi Guys,

Can you help me if what's wrong with my source code? I am using ASP.Net 2.0 and I got an error in "MsgBox(ds.Tables.Item("SampleID").ToString())"



Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim strConnString As String = ConfigurationManager.ConnectionStrings("MyConnection").ConnectionString
Dim sqlConn As New Data.SqlClient.SqlConnection(strConnString)
Dim cmd As New Data.SqlClient.SqlCommand
Dim da As Data.SqlClient.SqlDataAdapter
Dim ds As New Data.DataSet

cmd.CommandText = "select SampleID, RowID from tblSample where SampleID = 100"
cmd.CommandType = CommandType.Text
cmd.Connection = sqlConn

da = New Data.SqlClient.SqlDataAdapter(cmd)
da.Fill(ds)

MsgBox(ds.Tables.Item("SampleID").ToString())
MsgBox(ds.Tables.Item(0).Rows(0).Item(1).ToString())

da.Dispose()
ds.Dispose()

sqlConn.Close()


-- modified at 10:03 Saturday 9th June, 2007

hifiger2004

AnswerRe: ERROR in ds.Tables.Item("SampleID").ToString() Pin
Tom John11-Jun-07 9:00
Tom John11-Jun-07 9:00 
QuestionHow to convert a single http page into https using SSL in IIS? Pin
vijay_838-Jun-07 20:29
vijay_838-Jun-07 20:29 
AnswerRe: How to convert a single http page into https using SSL in IIS? Pin
Expert Coming8-Jun-07 23:45
Expert Coming8-Jun-07 23:45 
QuestionASP.Net Stored Procedure Pin
hifiger20048-Jun-07 6:17
hifiger20048-Jun-07 6:17 
AnswerRe: ASP.Net Stored Procedure Pin
_AK_10-Jun-07 21:10
_AK_10-Jun-07 21:10 
QuestionPrevent File-> save as Pin
Mri1a8-Jun-07 1:32
Mri1a8-Jun-07 1:32 
AnswerRe: Prevent File-> save as Pin
Christian Graus8-Jun-07 1:41
protectorChristian Graus8-Jun-07 1:41 
AnswerRe: Prevent File-> save as Pin
Shog98-Jun-07 5:56
sitebuilderShog98-Jun-07 5:56 
GeneralRe: Prevent File-> save as Pin
Johnny ²8-Jun-07 9:47
Johnny ²8-Jun-07 9:47 
GeneralRe: Prevent File-> save as Pin
Christian Graus10-Jun-07 13:45
protectorChristian Graus10-Jun-07 13:45 
AnswerRe: Prevent File-> save as Pin
Bradml9-Jun-07 0:41
Bradml9-Jun-07 0:41 
QuestionStill have problems with dropdownlist Pin
matjame8-Jun-07 0:44
matjame8-Jun-07 0:44 
AnswerRe: Still have problems with dropdownlist Pin
Viral Upadhyay8-Jun-07 3:57
Viral Upadhyay8-Jun-07 3:57 
AnswerRe: Still have problems with dropdownlist Pin
hiral_shah8-Jun-07 19:50
hiral_shah8-Jun-07 19:50 
QuestionFILE input field Pin
Aleksandar Cajic7-Jun-07 23:46
Aleksandar Cajic7-Jun-07 23:46 
AnswerRe: FILE input field Pin
Guffa8-Jun-07 10:26
Guffa8-Jun-07 10:26 
QuestionConverting Request object to WebRequest in asp.net Pin
amitar277-Jun-07 9:18
amitar277-Jun-07 9:18 

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.