[Mono-list] Npgsql (postgres) and ASP.NET.

yoros@wanadoo.es yoros@wanadoo.es
Tue, 2 Dec 2003 01:26:50 +0100


On Mon, Dec 01, 2003 at 04:03:44PM -0800, Roberto Jimeno wrote:
> I'd like to extract some information stored in a
> postgres data base, from a .aspx file (using
> Codebehind). Unfortunately compilation fails when
> trying to load Ngpsql.
> 
> On a regular program, this is solve by loading the
> assempbly using "-r Npgsql" but I don't know what
> would be its equivalent for a .aspx file.
> 
> Can someone tell me how ccan I compile an .aspx file
> which uses Npgsql? 
>

--------------8<----------------

<%@ import namespace="Npgsql" %>
<%@ Assembly name="Npgsql" %>

--------------------------------

Add this at the top of the ASP.NET page.

See you,

    Pedro

-- 
Pedro Martínez Juliá
\  yoros@terra.es
)|    yoros@wanadoo.es
/        http://yoros.dyndns.org
Socio HispaLinux #311
Usuario Linux #275438 - http://counter.li.org
GnuPG public information:  pub  1024D/74F1D3AC
Key fingerprint = 8431 7B47 D2B4 5A46 5F8E  534F 588B E285 74F1 D3AC