Click here to Skip to main content
15,908,843 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: VB .NET ASP .NET Error Pin
summon_1911-Aug-08 21:28
summon_1911-Aug-08 21:28 
GeneralRe: VB .NET ASP .NET Error Pin
Christian Graus11-Aug-08 22:10
protectorChristian Graus11-Aug-08 22:10 
QuestionSend string data to an email address Pin
Abbasy Ahmad11-Aug-08 19:16
Abbasy Ahmad11-Aug-08 19:16 
AnswerRe: Send string data to an email address Pin
Christian Graus11-Aug-08 19:31
protectorChristian Graus11-Aug-08 19:31 
Questionmaster page Pin
niki_nilu11-Aug-08 19:01
niki_nilu11-Aug-08 19:01 
AnswerRe: master page Pin
Abhijit Jana11-Aug-08 19:22
professionalAbhijit Jana11-Aug-08 19:22 
QuestionASP.Net 1.1 to 2.0 Migration Help Pin
pashitech11-Aug-08 19:00
pashitech11-Aug-08 19:00 
Questiongetting value of control Pin
kjalandoon11-Aug-08 16:27
kjalandoon11-Aug-08 16:27 
I have this web application that displays table/data according to a query result and edits only the selected line of output if the check box 'Add' is checked. Here is my code:

Protected Sub btnEdit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnEdit.Click
Dim forms = Request.Form()
Dim item As String
Dim strRollNo, strNewInspStat, strNewInspDateM, strNewInspDateD, strNewInspDateY, strNewInspBy, strNewInspDate As String
Dim chk As String
Dim count As Integer
For Each item In forms

If InStr(item, "Hidden") > 0 Then
strRollNo = Request.Form(item)
End If
If InStr(item, "inpsStat") > 0 Then
strNewInspStat = Request.Form(item)
End If
If InStr(item, "dteMonth") > 0 Then
strNewInspDateM = Request.Form(item)
End If
If InStr(item, "dteDay") > 0 Then
strNewInspDateD = Request.Form(item)
End If
If InStr(item, "dteYear") > 0 Then
strNewInspDateY = Request.Form(item)
End If

Dim dtecastdatemonth As String
Select Case strNewInspDateM
Case "Jan"
dtecastdatemonth = "1"
Case "Feb"
dtecastdatemonth = "2"
Case "Mar"
dtecastdatemonth = "3"
Case "Apr"
dtecastdatemonth = "4"
Case "May"
dtecastdatemonth = "5"
Case "Jun"
dtecastdatemonth = "6"
Case "Jul"
dtecastdatemonth = "7"
Case "Aug"
dtecastdatemonth = "8"
Case "Sep"
dtecastdatemonth = "9"
Case "Oct"
dtecastdatemonth = "10"
Case "Nov"
dtecastdatemonth = "11"
Case "Dec"
dtecastdatemonth = "12"
End Select

strNewInspDate = dtecastdatemonth + "/" + strNewInspDateD + "/" + strNewInspDateY
If InStr(item, "inpsBy") > 0 Then
strNewInspBy = Request.Form(item)
End If

If InStr(item, "chk") > 0 Then
chk = Request.Form(item)
If chk = "on" Or chk = "1" Then
Dim rollInfo As New Inspector(fm.posConnection)
If rollInfo.updateRollInfo(strRollNo, strNewInspStat, strNewInspDate, strNewInspBy) = True Then
lblEdited.Text = "Selected Record(s) has been Edited."
Else
lblEdited.Text = "Failed to Edit Record Selected."
End If
End If
End If
Next

End Sub

Basically i want to do is check line per line(or per result set) to get the value of the controls in that line, and if the check box is checked, it will be updated using my function "updateRollInfo". It seems that my code is getting all the values for a certain control before proceeding to the next.

I hope I am making sense and somebody can help me on this, thanks in advance!
AnswerRe: getting value of control Pin
kjalandoon11-Aug-08 17:05
kjalandoon11-Aug-08 17:05 
Questionhelp with nextval in do while loop Pin
kl01070511-Aug-08 6:56
kl01070511-Aug-08 6:56 
AnswerRe: help with nextval in do while loop Pin
Manas Bhardwaj11-Aug-08 7:22
professionalManas Bhardwaj11-Aug-08 7:22 
GeneralRe: help with nextval in do while loop Pin
kl01070511-Aug-08 8:05
kl01070511-Aug-08 8:05 
QuestionQuestion regarding 'GetPostBackEventReference' and multiple arguments Pin
Lea Hayes11-Aug-08 6:49
Lea Hayes11-Aug-08 6:49 
AnswerRe: Question regarding 'GetPostBackEventReference' and multiple arguments Pin
Lea Hayes11-Aug-08 7:58
Lea Hayes11-Aug-08 7:58 
GeneralRe: Question regarding 'GetPostBackEventReference' and multiple arguments Pin
nyeboy11-Aug-08 15:55
nyeboy11-Aug-08 15:55 
GeneralRe: Question regarding 'GetPostBackEventReference' and multiple arguments Pin
Lea Hayes12-Aug-08 0:11
Lea Hayes12-Aug-08 0:11 
GeneralRe: Question regarding 'GetPostBackEventReference' and multiple arguments Pin
nyeboy16-Aug-08 15:06
nyeboy16-Aug-08 15:06 
Questionproblem with LoadXml() Pin
salmonraju11-Aug-08 6:02
salmonraju11-Aug-08 6:02 
AnswerRe: problem with LoadXml() Pin
Manas Bhardwaj11-Aug-08 6:14
professionalManas Bhardwaj11-Aug-08 6:14 
GeneralRe: problem with LoadXml() Pin
salmonraju11-Aug-08 6:17
salmonraju11-Aug-08 6:17 
GeneralRe: problem with LoadXml() Pin
Lea Hayes11-Aug-08 6:53
Lea Hayes11-Aug-08 6:53 
GeneralRe: problem with LoadXml() Pin
salmonraju11-Aug-08 6:57
salmonraju11-Aug-08 6:57 
QuestionRadio button list,with a set of values form database. Pin
amit201111-Aug-08 5:25
amit201111-Aug-08 5:25 
AnswerRe: Radio button list,with a set of values form database. Pin
Manas Bhardwaj11-Aug-08 5:36
professionalManas Bhardwaj11-Aug-08 5:36 
GeneralRe: Radio button list,with a set of values form database. Pin
amit201111-Aug-08 5:51
amit201111-Aug-08 5:51 

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.