Click here to Skip to main content
15,907,281 members
Home / Discussions / Web Development
   

Web Development

 
QuestionAsp Website asynchronous calling of other IP device Pin
Reanalyse11-Jun-07 12:37
Reanalyse11-Jun-07 12:37 
AnswerRe: Asp Website asynchronous calling of other IP device Pin
Reanalyse11-Jun-07 15:28
Reanalyse11-Jun-07 15:28 
Question407 proxy authentication requiredd Pin
sujithapril11-Jun-07 5:12
sujithapril11-Jun-07 5:12 
QuestionASP Database grid control error Pin
mon_Dip11-Jun-07 1:11
mon_Dip11-Jun-07 1:11 
QuestionPrint settings on the web page... Pin
pradeep kumarappagari10-Jun-07 22:23
pradeep kumarappagari10-Jun-07 22:23 
AnswerRe: Print settings on the web page... Pin
Guffa11-Jun-07 8:50
Guffa11-Jun-07 8:50 
GeneralRe: Print settings on the web page... Pin
pradeep kumarappagari14-Jun-07 20:53
pradeep kumarappagari14-Jun-07 20:53 
AnswerRe: Print settings on the web page... Pin
Guffa15-Jun-07 8:24
Guffa15-Jun-07 8:24 
Question[Message Deleted] Pin
shantiom10-Jun-07 6:45
shantiom10-Jun-07 6:45 
AnswerRe: ASP / ASP.NET Web Site creation method question Pin
Christian Graus10-Jun-07 13:38
protectorChristian Graus10-Jun-07 13:38 
GeneralRe: ASP / ASP.NET Web Site creation method question Pin
shantiom10-Jun-07 22:01
shantiom10-Jun-07 22:01 
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 

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.