Click here to Skip to main content
15,887,746 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: ASP / ASP.NET Web Site creation method question Pin
Guffa10-Jun-07 19:03
Guffa10-Jun-07 19:03 
Questionsuggestions for sliding images on my website Pin
ComCoderCsharp10-Jun-07 4:18
ComCoderCsharp10-Jun-07 4:18 
AnswerRe: suggestions for sliding images on my website Pin
Christian Graus10-Jun-07 13:39
protectorChristian Graus10-Jun-07 13:39 
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 
Hi Guys,

This is my first time to use the For...Next statement in ASP.Net.
Can you help me on how to program a For...Next using my code below?
There's a "For each row in" statement in my code but it is not yet done, because I don't know how to do it.


Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim strConnString As String = ConfigurationManager.ConnectionStrings("dbConnection").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, DealerID from tblSample where SampleID in (1,2,3,4,5)"
cmd.CommandType = CommandType.Text
cmd.Connection = sqlConn

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

For each row in
Next

For iCtr = 0 To ds.Tables.Item(0).Rows.Count - 1
MsgBox(ds.Tables.Item(0).Rows(iCtr).Item(2).ToString())
Next

da.Dispose()
ds.Dispose()

sqlConn.Close()


-- modified at 11:47 Saturday 9th June, 2007

hifiger2004

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

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.