Click here to Skip to main content
15,915,702 members
Home / Discussions / C#
   

C#

 
AnswerRe: Cross-thread exception Pin
ellllllllie15-May-09 19:48
ellllllllie15-May-09 19:48 
AnswerRe: Cross-thread exception Pin
S. Senthil Kumar16-May-09 4:58
S. Senthil Kumar16-May-09 4:58 
AnswerRe: Cross-thread exception Pin
dybs16-May-09 6:00
dybs16-May-09 6:00 
QuestionArabic / SQL Pin
ellllllllie15-May-09 19:02
ellllllllie15-May-09 19:02 
AnswerRe: Arabic / SQL Pin
dan!sh 15-May-09 20:01
professional dan!sh 15-May-09 20:01 
QuestionHow to compare two dates...???? Pin
harishkharvi15-May-09 16:50
harishkharvi15-May-09 16:50 
AnswerRe: How to compare two dates...???? Pin
Luc Pattyn15-May-09 16:57
sitebuilderLuc Pattyn15-May-09 16:57 
QuestionTableAdapter not inserting new row Pin
Shato15-May-09 16:35
Shato15-May-09 16:35 
Confused | :confused: I am having a problem with Tableadaperts. I am trying to insert a new record into the database using the Tableadapert.insert.

I have commented out // [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
and put a break point to see how the method runs every thing looks fine no exceptions. I get a return value of the record but the database table remains empty.

What am I doing wrong? The tableadaper is supposed to directly interact with the database?

private void button1_Click(object sender, EventArgs e)
{
try {

int val = 0;
tbUsersTableAdapter ta = new tbUsersTableAdapter();
val = ta.Insert("other1", "other");
//val retuns 1
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
AnswerRe: TableAdapter not inserting new row Pin
Mycroft Holmes15-May-09 17:11
professionalMycroft Holmes15-May-09 17:11 
QuestionHow to code for import pdf to database with c# Pin
nomsod15-May-09 15:53
nomsod15-May-09 15:53 
QuestionCopying files needed for a program installed with a VS Setup and Deployment project Pin
choo_chu15-May-09 14:06
choo_chu15-May-09 14:06 
QuestionPointers Ideas and examples please Pin
Bryden.Murdoch15-May-09 13:21
Bryden.Murdoch15-May-09 13:21 
AnswerRe: Pointers Ideas and examples please Pin
Mycroft Holmes15-May-09 13:46
professionalMycroft Holmes15-May-09 13:46 
GeneralRe: Pointers Ideas and examples please Pin
Bryden.Murdoch15-May-09 14:03
Bryden.Murdoch15-May-09 14:03 
GeneralRe: Pointers Ideas and examples please Pin
Mycroft Holmes15-May-09 17:06
professionalMycroft Holmes15-May-09 17:06 
Question[Message Deleted] Pin
sjmclean15-May-09 12:47
sjmclean15-May-09 12:47 
QuestionRe: IP in Text Box Pin
harold aptroot15-May-09 12:57
harold aptroot15-May-09 12:57 
Questiondataset Simple sort. Pin
udikantz15-May-09 12:13
udikantz15-May-09 12:13 
QuestionCan i use web space in C# project? Pin
abhishek2915-May-09 9:26
abhishek2915-May-09 9:26 
AnswerRe: Can i use web space in C# project? Pin
DaveyM6915-May-09 9:59
professionalDaveyM6915-May-09 9:59 
AnswerRe: Can i use web space in C# project? Pin
EliottA15-May-09 11:46
EliottA15-May-09 11:46 
GeneralRe: Can i use web space in C# project? Pin
abhishek2926-May-09 9:08
abhishek2926-May-09 9:08 
GeneralRe: Can i use web space in C# project? Pin
EliottA26-May-09 9:20
EliottA26-May-09 9:20 
GeneralRe: Can i use web space in C# project? Pin
abhishek2926-May-09 17:55
abhishek2926-May-09 17:55 
QuestionMDI parent form maximize problem Pin
atifamin200215-May-09 9:15
atifamin200215-May-09 9:15 

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.