Click here to Skip to main content
15,924,367 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Problem with window service Pin
kubben22-Jun-07 3:43
kubben22-Jun-07 3:43 
GeneralRe: Problem with window service Pin
Affan Toor22-Jun-07 4:25
Affan Toor22-Jun-07 4:25 
GeneralRe: Problem with window service Pin
kubben22-Jun-07 4:26
kubben22-Jun-07 4:26 
GeneralRe: Problem with window service Pin
Affan Toor22-Jun-07 4:55
Affan Toor22-Jun-07 4:55 
GeneralRe: Problem with window service Pin
kubben22-Jun-07 4:57
kubben22-Jun-07 4:57 
QuestionStill problems with dropdownlist Pin
matjame21-Jun-07 3:16
matjame21-Jun-07 3:16 
AnswerRe: Still problems with dropdownlist Pin
N a v a n e e t h21-Jun-07 3:34
N a v a n e e t h21-Jun-07 3:34 
GeneralRe: Still problems with dropdownlist Pin
matjame21-Jun-07 3:42
matjame21-Jun-07 3:42 
I have managed to load data onto the dropdown, but binding the datagrid when something is selected from the dropdown.

Here is some code from a working vb.net page.

Protected Sub DropDownList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DropDownList1.SelectedIndexChanged
con = New OleDbConnection("Provider = Microsoft.Jet.oledb.4.0; data source = C:\TelephoneList.mdb")
con.Open()
'Dim str As String = "Select Branch,[Contact Name], [Telephone Number], [Telephone Extension], [Fax Number], [Fax Extension] from [Other Branches] Where Branch = '" & DropDownList1.SelectedValue & "'"
' Dim con As New OleDbConnection
Dim comx As New OleDbCommand
comx = New OleDbCommand("Select [Contact Name],[Telephone Number], [Telephone Extension], [Fax Number], [Fax Extension] from [Other Branches] where Branch = '" & DropDownList1.SelectedValue & "'", con)
comx.Connection = con
If con.State = ConnectionState.Open Then
con.Close()
End If
con.Open()
'Dim cm As New OleDbCommand(str, con)
GridView1.DataSource = comx.ExecuteReader(CommandBehavior.CloseConnection)
GridView1.DataBind()
If con.State = ConnectionState.Open Then
con.Close()
End If


' ***********Now Im allocating data to the second datagrid
Dim comxx As New OleDbCommand
comxx = New OleDbCommand("Select [Alternative Contact], [Second Alternative], [Alt Telephone], [Alternative Ext] from [Other Branches] Where [Branch] = '" & DropDownList1.SelectedValue & "'", con)
'Dim str2 As String = "Select Branch, [Alternative Contact], [Second Alternative], [Alternative TelNumber], [Alternative TelExtension], [Cell] Where [Branch] = '" & DropDownList1.SelectedValue & "'"
comxx.Connection = con
If con.State = ConnectionState.Closed Then
con.Open()
End If
'con.Open()
'Dim command As New OleDbCommand(str2, con)
GridView2.DataSource = comxx.ExecuteReader(CommandBehavior.CloseConnection)
GridView2.DataBind()
con.Close()

If DropDownList1.SelectedValue = "UNITRANS" Then

lblMessage.Text = "Here Are Other Users For " & DropDownList1.SelectedValue
Dim Comxxx As New OleDbCommand
Comxxx = New OleDbCommand("Select User, Telephone, Notes from [Other Users] where Branch = '" & DropDownList1.SelectedValue & "'", con)
If con.State = ConnectionState.Closed Then
con.Open()
End If
GridView3.DataSource = Comxxx.ExecuteReader(CommandBehavior.CloseConnection)
GridView3.DataBind()
con.Close()
Else
If DropDownList1.SelectedValue = "A.HAK Industrial Services" Then

lblMessage.Text = "Here Are Other Users For " & DropDownList1.SelectedValue
Dim Comxxx As New OleDbCommand
Comxxx = New OleDbCommand("Select User, Telephone, Notes from [Other Users] where Branch = '" & DropDownList1.SelectedValue & "'", con)
If con.State = ConnectionState.Closed Then
con.Open()
End If
GridView3.DataSource = Comxxx.ExecuteReader(CommandBehavior.CloseConnection)
GridView3.DataBind()
con.Close()
End If

End If
End Sub

kagiso

GeneralRe: Still problems with dropdownlist Pin
N a v a n e e t h21-Jun-07 4:02
N a v a n e e t h21-Jun-07 4:02 
GeneralRe: Still problems with dropdownlist Pin
matjame21-Jun-07 4:06
matjame21-Jun-07 4:06 
GeneralRe: Still problems with dropdownlist Pin
N a v a n e e t h21-Jun-07 4:09
N a v a n e e t h21-Jun-07 4:09 
GeneralRe: Still problems with dropdownlist Pin
matjame21-Jun-07 4:16
matjame21-Jun-07 4:16 
GeneralRe: Still problems with dropdownlist Pin
N a v a n e e t h21-Jun-07 4:17
N a v a n e e t h21-Jun-07 4:17 
GeneralRe: Still problems with dropdownlist Pin
matjame25-Jun-07 0:02
matjame25-Jun-07 0:02 
QuestionBUG IN LOGGEDINTEMPLATE IN ASP.NET Pin
hifiger200421-Jun-07 3:16
hifiger200421-Jun-07 3:16 
Questionmails r going to spam. Pin
hkchauhan21-Jun-07 1:28
hkchauhan21-Jun-07 1:28 
AnswerRe: mails r going to spam. Pin
N a v a n e e t h21-Jun-07 3:11
N a v a n e e t h21-Jun-07 3:11 
GeneralRe: mails r going to spam. Pin
hkchauhan21-Jun-07 3:20
hkchauhan21-Jun-07 3:20 
GeneralRe: mails r going to spam. Pin
N a v a n e e t h21-Jun-07 3:27
N a v a n e e t h21-Jun-07 3:27 
Questionmozilla is not supporting Pin
hkchauhan21-Jun-07 1:25
hkchauhan21-Jun-07 1:25 
AnswerRe: mozilla is not supporting Pin
N a v a n e e t h21-Jun-07 3:23
N a v a n e e t h21-Jun-07 3:23 
AnswerRe: mozilla is not supporting Pin
Guffa21-Jun-07 3:49
Guffa21-Jun-07 3:49 
GeneralRe: mozilla is not supporting Pin
N a v a n e e t h21-Jun-07 4:03
N a v a n e e t h21-Jun-07 4:03 
AnswerRe: mozilla is not supporting Pin
Guffa21-Jun-07 4:13
Guffa21-Jun-07 4:13 
GeneralRe: mozilla is not supporting Pin
N a v a n e e t h21-Jun-07 4:18
N a v a n e e t h21-Jun-07 4:18 

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.