Click here to Skip to main content
15,890,973 members
Home / Discussions / C#
   

C#

 
AnswerRe: NHibernate Pin
Pete O'Hanlon8-Dec-06 9:28
mvePete O'Hanlon8-Dec-06 9:28 
GeneralRe: NHibernate Pin
peshawarcoder11-Dec-06 2:12
peshawarcoder11-Dec-06 2:12 
QuestionDatabase Question [modified] Pin
mfcuser8-Dec-06 7:44
mfcuser8-Dec-06 7:44 
AnswerRe: Database Question Pin
User 17164929-Dec-06 4:55
professionalUser 17164929-Dec-06 4:55 
QuestionRestaurant POS Database Question (long) Pin
jeweladdict8-Dec-06 7:29
jeweladdict8-Dec-06 7:29 
AnswerRe: Restaurant POS Database Question (long) Pin
karam chandrabose8-Dec-06 10:06
karam chandrabose8-Dec-06 10:06 
AnswerRe: Restaurant POS Database Question (long) Pin
Not Active8-Dec-06 14:35
mentorNot Active8-Dec-06 14:35 
QuestionWhat is wrong Pin
CodeItWell8-Dec-06 7:16
CodeItWell8-Dec-06 7:16 
I have written this and the data don't want to enter in my Microsoft Access database.
What is wrong????????????

using System.Data.OleDb;

private void Button1_Click(object sender, System.EventArgs e)
{
string SQL;
OleDbConnection connection = new OleDbConnection
(@"Provider=Microsoft.Jet.OLEDB.4.0; " + "Data Source=" + Server.MapPath("baza.mdb"));

OleDbDataAdapter sql = new OleDbDataAdapter("select * from Korisnici", connection.ConnectionString);

connection.Close();
connection.Open();
SQL = @"insert into Users ([UserID],[Name],[Surname],[Address],[Phone],[YearsOld],[UserName],[Password],[Privilegy]) VALUES (";
SQL = SQL + @"'"+TextBox9.Text+"'"+"'";
SQL = SQL + @"'"+TextBox8.Text+"'"+"'";
SQL = SQL + @"'"+TextBox7.Text+"'"+"'";
SQL = SQL + @"'"+TextBox6.Text+"'"+"'";
SQL = SQL + @"'"+TextBox5.Text+"'"+"'";
SQL = SQL + @"'"+TextBox4.Text+"'"+"'";
SQL = SQL + @"'"+TextBox3.Text+"'"+"'";
SQL = SQL + @"'"+TextBox2.Text+"'"+"'";
SQL = SQL + @"'"+TextBox1.Text+"')";

OleDbCommand myCommand = new OleDbCommand(SQL, connection);
myCommand.ExecuteNonQuery();
connection.Close();
Response.Redirect("WebForm1.aspx");
}

Vasildb

AnswerRe: What is wrong Pin
Andrew Rissing8-Dec-06 7:58
Andrew Rissing8-Dec-06 7:58 
QuestionNHibernate Pin
peshawarcoder8-Dec-06 6:41
peshawarcoder8-Dec-06 6:41 
AnswerRe: NHibernate Pin
Judah Gabriel Himango8-Dec-06 6:54
sponsorJudah Gabriel Himango8-Dec-06 6:54 
QuestionDisplay Datagrid Decimal to 2 places Pin
jeweladdict8-Dec-06 5:47
jeweladdict8-Dec-06 5:47 
AnswerRe: Display Datagrid Decimal to 2 places Pin
ednrgc8-Dec-06 5:58
ednrgc8-Dec-06 5:58 
GeneralRe: Display Datagrid Decimal to 2 places Pin
jeweladdict8-Dec-06 6:49
jeweladdict8-Dec-06 6:49 
GeneralRe: Display Datagrid Decimal to 2 places Pin
ednrgc8-Dec-06 6:59
ednrgc8-Dec-06 6:59 
QuestionNeed help with Regex Pin
zaboboa8-Dec-06 5:08
zaboboa8-Dec-06 5:08 
AnswerRe: Need help with Regex Pin
ednrgc8-Dec-06 7:04
ednrgc8-Dec-06 7:04 
QuestionInsert javascript into IE Address bar Pin
PhrankBooth8-Dec-06 4:39
PhrankBooth8-Dec-06 4:39 
AnswerRe: Insert javascript into IE Address bar Pin
ednrgc8-Dec-06 7:06
ednrgc8-Dec-06 7:06 
QuestionHow to Use Sql Transactions With DataRow ? Pin
hdv2128-Dec-06 4:17
hdv2128-Dec-06 4:17 
AnswerRe: How to Use Sql Transactions With DataRow ? Pin
Colin Angus Mackay8-Dec-06 4:41
Colin Angus Mackay8-Dec-06 4:41 
QuestionNetwork Credentials for domain user Pin
vineas8-Dec-06 4:15
vineas8-Dec-06 4:15 
QuestionTreeview and jump to node Pin
Saamir8-Dec-06 4:13
Saamir8-Dec-06 4:13 
AnswerRe: Treeview and jump to node Pin
Pete O'Hanlon8-Dec-06 5:01
mvePete O'Hanlon8-Dec-06 5:01 
AnswerRe: Treeview and jump to node Pin
Not Active8-Dec-06 5:07
mentorNot Active8-Dec-06 5:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.