halp me

halp me

Postby jigm0406 » Thu 02 Feb 2006 17:15

:cry:

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=132.248.246.6;Database=egredb;Uid=opsql;Pwd=pancita$--;"
oODBCConnection = New CoreLab.PostgreSql.PgSqlConnection(sConnString)
Try
oODBCConnection.Open()
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
'PgSqlDataAdapter1.Fill(DataSet11)
End Sub
End Class

:?: and dont see nothing...
jigm0406
 

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;
SecureGen
Devart Team
 
Posts: 133
Joined: Thu 08 Sep 2005 06:27


Return to dotConnect for PostgreSQL