This is by far the worse code I have ever come across in .NET. For those of you that understand it you'll laugh, for those of you that don't, just don't ever do something like this.
This is supposed to be code to pull the value(s) selected out of a listBox control with an ID of "selstatus"......enjoy :)
If Request("ctl00$PageBody$selstatus") <> "" Then
stat = Request("ctl00$PageBody$selstatus").Split(",".ToCharArray)
For Each st In stat
If st.Equals("5") Then
For Each st1 In stat
If st1.Equals("2") And st1.Equals("3") Then
ElseIf st1.Equals("2") And st1 <> "3" Then
qur.Append("3,")
ElseIf st1 <> "2" And st1.Equals("3") Then
qur.Append("2,")
ElseIf st1 <> "2" And st1 <> "3" Then
qur.Append("2,3,")
End If
Next
Else
qur.Append(st + ",")
End If
stID = stID & "$" & st
Next
End If
71214860-8028-46c6-8ce7-22ace8be0b01|1|5.0
ASP.NET
asp.net