Click here to Skip to main content
15,867,453 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# database error Pin
Matt U.28-Sep-12 6:59
Matt U.28-Sep-12 6:59 
AnswerRe: C# database error Pin
Emmanuel Medina28-Sep-12 9:40
professionalEmmanuel Medina28-Sep-12 9:40 
QuestionImage compression Pin
hardiksince198728-Sep-12 6:13
hardiksince198728-Sep-12 6:13 
AnswerRe: Image compression Pin
Ravi Bhavnani28-Sep-12 6:15
professionalRavi Bhavnani28-Sep-12 6:15 
AnswerRe: Image compression Pin
Abhinav S28-Sep-12 17:00
Abhinav S28-Sep-12 17:00 
Questiongeneric queue synchronisation Pin
Ramu katturi28-Sep-12 3:18
Ramu katturi28-Sep-12 3:18 
AnswerRe: generic queue synchronisation Pin
Dave Kreskowiak28-Sep-12 3:58
mveDave Kreskowiak28-Sep-12 3:58 
Questionupdate in LINQ to SQL is not working for C#.Net? Pin
Jineesh TR27-Sep-12 23:26
professionalJineesh TR27-Sep-12 23:26 
I am using LINQ in my project. I have tried using update query. But this is not working for me.
Please any body help me. Did I need to change any settings of my database? or for the datacontext?

My code is as follows:
here dc is the datacontext, getinteger() is an extension method, ucItem is a custom control,
Common is a class

if (clsTblAsset.AssetId == 0)
{
clsTblAsset.StockId = ucItem._Id.getInteger();
clsTblAsset.RefId = 0;
clsTblAsset.RefModule = "S";
clsTblAsset.AssetEntryDate = DateTime.Now.Date.getDateTime();
clsTblAsset.LoginId = ClsParameters.LogInId;
Common.dc.TblAssets.InsertOnSubmit(clsTblAsset);
}
Common.dc.SubmitChanges();


Can any body help me now please..




Regards,
Jineesh
AnswerRe: update in LINQ to SQL is not working for C#.Net? Pin
J4amieC28-Sep-12 0:09
J4amieC28-Sep-12 0:09 
GeneralRe: update in LINQ to SQL is not working for C#.Net? Pin
Jineesh TR28-Sep-12 0:18
professionalJineesh TR28-Sep-12 0:18 
GeneralRe: update in LINQ to SQL is not working for C#.Net? Pin
Dave Kreskowiak28-Sep-12 1:22
mveDave Kreskowiak28-Sep-12 1:22 
GeneralRe: update in LINQ to SQL is not working for C#.Net? Pin
Jineesh TR30-Sep-12 19:44
professionalJineesh TR30-Sep-12 19:44 
GeneralRe: update in LINQ to SQL is not working for C#.Net? Pin
Dave Kreskowiak1-Oct-12 2:05
mveDave Kreskowiak1-Oct-12 2:05 
GeneralRe: update in LINQ to SQL is not working for C#.Net? Pin
anglesen11202-Oct-12 18:23
anglesen11202-Oct-12 18:23 
AnswerRe: update in LINQ to SQL is not working for C#.Net? Pin
Emmanuel Medina28-Sep-12 9:48
professionalEmmanuel Medina28-Sep-12 9:48 
GeneralRe: update in LINQ to SQL is not working for C#.Net? Pin
Jineesh TR30-Sep-12 19:41
professionalJineesh TR30-Sep-12 19:41 
Questionupload a song into database... Pin
sri apple27-Sep-12 21:37
sri apple27-Sep-12 21:37 
AnswerRe: upload a song into database... Pin
Smart Arab27-Sep-12 22:13
Smart Arab27-Sep-12 22:13 
AnswerRe: upload a song into database... Pin
Abhinav S27-Sep-12 22:25
Abhinav S27-Sep-12 22:25 
QuestionRead Emails Pin
Kevin Marois27-Sep-12 12:59
professionalKevin Marois27-Sep-12 12:59 
AnswerRe: Read Emails Pin
Sarath C27-Sep-12 20:22
Sarath C27-Sep-12 20:22 
AnswerRe: Read Emails Pin
Ravi Bhavnani28-Sep-12 6:12
professionalRavi Bhavnani28-Sep-12 6:12 
QuestionC# problem passing mine value Pin
classy_dog27-Sep-12 12:13
classy_dog27-Sep-12 12:13 
AnswerRe: C# problem passing mine value Pin
Dave Kreskowiak27-Sep-12 13:35
mveDave Kreskowiak27-Sep-12 13:35 
QuestionC# format date Pin
classy_dog27-Sep-12 6:45
classy_dog27-Sep-12 6:45 

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.