Interesting Problem

[b][red]This message was edited by samsundar at 2006-6-20 4:15:12[/red][/b][hr]
[b][red]This message was edited by samsundar at 2006-6-20 4:14:23[/red][/b][hr]
Hi, while iam connecting msacess to through oledb i am getting blank page as output.Infact the same code is working well for but the problem is with code is like

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim con As OleDbConnection
Dim ds As New DataSet
Dim adapter As New OleDbDataAdapter
con = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:emp.mdb")
Response.Write("connection is established")
adapter = New OleDbDataAdapter("select * from emp", con)
DataGrid1.DataSource = ds.Tables("emp")
Button1.Visible = False
End Sub

So on the page i am getting Output like "Connection is established" but no data from the database only blank screen is viewing...What might be the problem plz help me..

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!