Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:875072
More Search Options
RSS Available
Matching Posts
check for duplicate records
Hi, I am using visual studio 2005, Asp.net c# and postgreSQL... I am trying to insert IDs into the database through a text box and a submit button. I want to check for duplicates before insertion and give an error when the ID already exists.. this is what I got so far: protected void btnAdd_Click(object sender, EventArgs e) { CoreLab.PostgreSql.PgSqlConnection cn = new CoreLab.PostgreSql.PgSqlConnection("my connection string"); string strSQL = "Select Count(win) as TheCount from tbl_win
Posted to
Other Databases
(Forum)
by
maisa
on 6/23/2009
Re: check for duplicate records
That worked :) Thank you so much
Posted to
Other Databases
(Forum)
by
maisa
on 6/23/2009
connecting to postgresql
Hi, I am working on asp.net c# with visiual studio 2005 and I would like to connect to postgressql..I have the PostgreSQLDirect.Net. I have successfully connected to the database but I want to replace those two lines with the proper lines for Postgresql: OleDbConnection cn = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\AccessDB\db1.mdb;User Id=admin;Password=;"); OleDbCommand cmd = new OleDbCommand(); any ideas? Thank you
Posted to
Other Databases
(Forum)
by
maisa
on 6/22/2009
Re: connecting to postgresql
Hi, Thank you for the hint but I'm still confused, I've seen some strings online but dont know whether to use: PgSqlConnection cn = new PgSqlConnection(@"Provider=PostgreSQL OLE DB Provider;Data Source=myServerAddress;location=myDataBase;User ID=myUsername;password=myPassword;timeout=1000;"); Or OleDbConnection cn = new OleDbConnection(@" Provider=PostgreSQL OLE DB Provider ;Data Source=myServerAddress;location=myDataBase;User ID=myUsername;password=myPassword;timeout=1000;"
Posted to
Other Databases
(Forum)
by
maisa
on 6/22/2009
connect to postgres from ASP
Hi, I've posted this question in another form, I've been helped but I guess I should post it in getting started since it is a very basic question, could you help me pls: I am working on asp.net c# with visiual studio 2005 and I would like to connect to postgressql..I have the PostgreSQLDirect.Net. I have successfully connected to the database but I want to replace those two lines with the proper lines for Postgresql: OleDbConnection cn = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB
Posted to
Other Databases
(Forum)
by
maisa
on 6/22/2009
on textChanged?
Hi, I'm using ASP.net c#, visual studio 2005, and access 2003. I'm trying to add a record to a database with the info of a textbox when that textbox changes. so I wrote this code in the Textchanged method protected void _TextChanged(object sender, EventArgs e) { OleDbConnection cn = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\AccessDB\db1.mdb;User Id=admin;Password=;"); OleDbCommand cmd = new OleDbCommand(); cmd.CommandText = "insert into comments
Posted to
Getting Started
(Forum)
by
maisa
on 6/19/2009
Re: on textChanged?
Still no results and i received a syntax error when I added AutoPostBack="true" <asp:TextBox ID="COMMENT_BOX" Name="COMMENT_BOX" runat="server" Enabled="true" OnTextChanged="_TextChanged" Height="24px" Width="344px" AutoPostBack="true" />
Posted to
Getting Started
(Forum)
by
maisa
on 6/19/2009
Re: on textChanged?
I tried that, still doesn't work, and I don't know why I'm getting the syntax error
Posted to
Getting Started
(Forum)
by
maisa
on 6/19/2009
Re: on textChanged?
Well.. I don't have a choice here.. My boss wants me to save the information when it is written, without hitting an add button.. so I gotta do this
Posted to
Getting Started
(Forum)
by
maisa
on 6/19/2009
Re: on textChanged?
I tried that already and it didn't work and i also recieved a syntax error...
Posted to
Getting Started
(Forum)
by
maisa
on 6/19/2009
Page 1 of 3 (23 items) 1
2
3
Next >
Channel 10:
Faster Solid State Drives for Windows 7 Arrive
ASP.NET:
Death to confirmation dialogs with jquery.undoable
Channel 9:
E2E: Brian Beckman and Erik Meijer - Co/Contravariance in Physics and Programming, 1 of 2
TechNet Edge:
Windows Server 2008 R2 Quick Look #3 - PowerShell V2
ASP.NET:
2009 Blogged - Greatest Hits
WindowsClient:
2009 Blogged - Greatest Hits
Channel 9:
Nikolaj Bjørner and Leonardo de Moura: The Z3 Constraint Solver
Channel 9:
MEF & Silverlight 4 Beta - Part 2, Imports & Exports
Channel 9:
MEF & Silverlight 4 Beta - Part 1, Introduction
WindowsClient:
The (Near) Final Word on Multi-Monitor Taskbars for Windows 7 - Ultramon vs. DisplayFusion
WindowsClient:
Looking back at 2009, and forward to 2010
Silverlight:
Polling Video – A Viable sub-second alternative?
TechNet Edge:
Windows Server 2008 R2 Quick Look #2 - Active Directory Recycle Bin
Channel 10:
I'm a Windows 7 PC Themes
Channel 10:
24 Years of Windows Box Art
WindowsClient:
Silverlight tutorial: HOW TO build CommandLink Control in Silverlight with Expression Blend 3 and Behaviors
ASP.NET:
Converting an RGB Color To Hex With JavaScript
Silverlight:
Silverlight HVP Design – Configuration & Scenarios
Channel 9:
Channel 9 Live at PDC09: Day 3 Welcome
Channel 9:
Channel 9 Live at PDC09: TWoC9 Day 3
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online