Advertisement
Advertisement
| 03.26.2008 at 05:03PM PDT, ID: 23272582 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
|
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: |
Code:
Protected Sub CustomValidator_Checkboxlist_ServerValidate(ByVal source As Object, ByVal args As System.Web.UI.WebControls.ServerValidateEventArgs)
Dim i As Integer
Dim selected As String
Dim gvRow As GridViewRow
Dim iCounter As Integer
For Each gvRow In GridView_Consol_HBL.Rows
If iCounter = -1 Then
iCounter = 0
End If
Dim cbxList As CheckBoxList = GridView_Consol_HBL.Rows(iCounter).FindControl("CheckBoxList_Consol_Docs")
For i = 0 To cbxList.Items.Count - 1
If cbxList.Items(i).Selected Then
selected = "yes"
End If
Next
iCounter += 1
Next
If selected = "yes" Then
args.IsValid = True
Else
args.IsValid = False
End If
selected = ""
End Sub
|
| Microsoft |
| Apple |
| Internet |
| Gamers |
| Digital Living |
| Virus & Spyware |
| Hardware |
| Software |
| ITPro |
| Developer |
| Storage |
| OS |
| Database |
| Security |
| Programming |
| Web Development |
| Networking |
| Other |
| Community Support |
| 03.28.2008 at 10:31AM PDT, ID: 21232479 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: |
Protected Sub CustomValidator_HBLCheckBoxList_ServerValidate(ByVal source As Object, ByVal args As System.Web.UI.WebControls.ServerValidateEventArgs)
Dim i As Integer
Dim selected As String
For i = 0 To GridView_Consol_HBL.Rows.Count - 1
'---------------------------------
Dim dgItem As GridViewRow = GridView_Consol_HBL.Rows(i)
Dim cb As CheckBoxList = CType(dgItem.FindControl("CheckBoxList_Consol_Docs"), CheckBoxList)
Dim Validator As CustomValidator = CType(dgItem.FindControl("CustomValidator_HBLCheckBoxList"), CustomValidator)
For x = 0 To cb.Items.Count - 1
If cb.Items(x).Selected Then
selected = "yes"
End If
Next
If selected = "yes" Then
cb.ForeColor = Drawing.Color.SeaGreen
Validator.Visible = False
args.IsValid = True
selected = ""
Else
cb.ForeColor = Drawing.Color.Red
args.IsValid = False
selected = ""
End If
Next
End Sub
|
| 05.17.2008 at 05:38AM PDT, ID: 21589044 |