Howdy, Stranger!

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

Categories

Interesting Problem

samsundarsamsundar Member Posts: 7
[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 asp.net through oledb i am getting blank page as output.Infact the same code is working well for vb.net but the problem is with asp.net.My 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")
con.Open()
Response.Write("connection is established")
adapter = New OleDbDataAdapter("select * from emp", con)
adapter.Fill(ds)
DataGrid1.DataSource = ds.Tables("emp")
Datagrid1.databind()
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.