Click here to Skip to main content
15,912,329 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionlist view Pin
Hasan Jaffal7-Sep-06 1:59
Hasan Jaffal7-Sep-06 1:59 
AnswerRe: list view Pin
H@is@here7-Sep-06 11:14
H@is@here7-Sep-06 11:14 
GeneralRe: list view [modified] Pin
Hasan Jaffal7-Sep-06 13:43
Hasan Jaffal7-Sep-06 13:43 
GeneralRe: list view Pin
Hasan Jaffal7-Sep-06 14:11
Hasan Jaffal7-Sep-06 14:11 
GeneralRe: list view Pin
H@is@here9-Sep-06 16:29
H@is@here9-Sep-06 16:29 
GeneralRe: list view Pin
slowbutsure2913-Sep-06 21:42
slowbutsure2913-Sep-06 21:42 
Questionhelp for atlas: cascading drop down from database? Pin
ii_noname_ii7-Sep-06 1:38
ii_noname_ii7-Sep-06 1:38 
AnswerRe: help for atlas: cascading drop down from database? Pin
ii_noname_ii7-Sep-06 2:24
ii_noname_ii7-Sep-06 2:24 
Made progress...:
<webmethod()> _
Public Function populateProjectDDL(ByVal knownCategoryValues As String, ByVal category As String) As CascadingDropDownNameValue()

'Dim knownCategoryValues As String
'Dim category As String
'Which projects to show:
If Session("admin") = 1 Then
ds1 = dbComponent1.selectOneCondition("Project", "active", 1)
'info1.InnerText = "As admin, you see inactive projects, wells, sections and Drilling units as well."
Else
Dim querystr = "SELECT DISTINCT P.project_id, P.project_name FROM Project as P, UserRole as UR WHERE "
querystr = querystr + "UR.user_id = " & Session("active_user") & " AND "
querystr = querystr + "UR.project_id = P.project_id AND "
querystr = querystr + "P.active = 1"
ds1 = dbComponent1.query(querystr)
End If
Dim objTable As System.Data.DataTable
objTable = ds1.Tables(0)
If ds1.Tables(0).Rows.Count > 0 Then 'user cannot set defaults
With objTable
Dim intRow As Integer
Dim values As List(Of CascadingDropDownNameValue) = New List(Of CascadingDropDownNameValue)
For intRow = 0 To .Rows.Count - 1
values.Add(New CascadingDropDownNameValue(.Rows(intRow).Item("project_name").ToString, .Rows(intRow).Item("project_id")))
Next
Return values.ToArray
End With
Return New CascadingDropDownNameValue() {}
'Return knownCategoryValues
'Return category
Else
Return Nothing
End If
ds1.Clear()
End Function

Now [method error 500] in the project drop down...
GeneralRe: help for atlas: cascading drop down from database? Pin
ii_noname_ii7-Sep-06 21:52
ii_noname_ii7-Sep-06 21:52 
QuestionExcel Dataset Datatype Pin
dwadasi7-Sep-06 1:31
dwadasi7-Sep-06 1:31 
Questiontelephonic data extraction from PBX using system defined funtion Pin
Pradip Kishore7-Sep-06 1:14
Pradip Kishore7-Sep-06 1:14 
Questionquestion in the use of the datagrid Pin
Hasan Jaffal7-Sep-06 0:48
Hasan Jaffal7-Sep-06 0:48 
AnswerRe: question in the use of the datagrid Pin
Tamimi - Code7-Sep-06 1:19
Tamimi - Code7-Sep-06 1:19 
GeneralRe: question in the use of the datagrid Pin
Hasan Jaffal7-Sep-06 1:22
Hasan Jaffal7-Sep-06 1:22 
AnswerRe: question in the use of the datagrid Pin
Tamimi - Code7-Sep-06 1:49
Tamimi - Code7-Sep-06 1:49 
GeneralRe: question in the use of the datagrid Pin
Hasan Jaffal7-Sep-06 2:14
Hasan Jaffal7-Sep-06 2:14 
GeneralRe: question in the use of the datagrid Pin
Tamimi - Code7-Sep-06 2:31
Tamimi - Code7-Sep-06 2:31 
GeneralRe: question in the use of the datagrid Pin
Hasan Jaffal7-Sep-06 14:05
Hasan Jaffal7-Sep-06 14:05 
QuestionProblem in Exporting Crystal Report to Excel Pin
mynameatif7-Sep-06 0:22
mynameatif7-Sep-06 0:22 
AnswerRe: Problem in Exporting Crystal Report to Excel Pin
KhadijaYaseen7-Sep-06 21:43
KhadijaYaseen7-Sep-06 21:43 
Questionhighlite n un-highlite row in repeater/datagrid Pin
manisahmuhamed7-Sep-06 0:22
manisahmuhamed7-Sep-06 0:22 
QuestionCheckBox list: want to only allow single select Pin
cullyk6-Sep-06 23:59
cullyk6-Sep-06 23:59 
AnswerRe: CheckBox list: want to only allow single select Pin
ii_noname_ii7-Sep-06 0:38
ii_noname_ii7-Sep-06 0:38 
GeneralRe: CheckBox list: want to only allow single select Pin
cullyk7-Sep-06 3:50
cullyk7-Sep-06 3:50 
GeneralRe: CheckBox list: want to only allow single select Pin
cullyk7-Sep-06 22:02
cullyk7-Sep-06 22:02 

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.