halp me

halp me

Postby jigm0406 » Thu 02 Feb 2006 17:15


I please help me, my code is the next :

Imports System
Imports System.Data
Imports WebApplication17.Global
Imports CoreLab.PostgreSql
Imports CoreLab.Common
Imports CoreLab.Cryptography
Imports CoreLab
Public Class WebForm1
Inherits System.Web.UI.Page

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim oODBCConnection As CoreLab.PostgreSql.PgSqlConnection
Dim sConnString As String = "Server=;Database=egredb;Uid=opsql;Pwd=pancita$--;"
oODBCConnection = New CoreLab.PostgreSql.PgSqlConnection(sConnString)
Dim strSQL As String = "select folio,nombreal from egredt"
Dim da As CoreLab.PostgreSql.PgSqlDataAdapter
da = New CoreLab.PostgreSql.PgSqlDataAdapter(strSQL, oODBCConnection)
Dim ds As New System.Data.DataSet
da.Fill(ds, "egredt")
DataGrid1.DataSource = ds.DefaultViewManager
Catch ex As Exception
Label1.Text = ex.ToString
End Try
End Sub
End Class

:?: and dont see nothing...

Postby SecureGen » Fri 03 Feb 2006 07:47

Did you see any exceptions? What is the value for Label1.Text ?
Try to use: DataGrid1.DataSource = ds;
Devart Team
Posts: 133
Joined: Thu 08 Sep 2005 06:27

Return to dotConnect for PostgreSQL