how to display ID from sql table in Message box using c# LINQ to SQL.
-
Saturday, June 23, 2012 8:54 AMi have to display ID from data base using c# ,how can i do it????? i am using LINQ to Sql.
New born in developing
- Moved by Naomi NMicrosoft Community Contributor Monday, June 25, 2012 2:06 PM Hopefully a better answer here (From:Transact-SQL)
All Replies
-
Saturday, June 23, 2012 9:31 AM
Hi There
Thanks for your posting. Please have a look on this thread that might help you
http://www.codeproject.com/Articles/26657/Simple-LINQ-to-SQL-in-C
http://www.c-sharpcorner.com/uploadfile/mahesh/dbindlinq07022007080049am/dbindlinq.aspx
Many Thanks
Syed Qazafi Anjum
- Edited by Syed Qazafi AnjumMicrosoft Community Contributor Saturday, June 23, 2012 9:40 AM
- Edited by Syed Qazafi AnjumMicrosoft Community Contributor Saturday, June 23, 2012 9:40 AM
-
Saturday, June 23, 2012 11:28 AMbrother, i am confused , i dint use LINQ before , i couldnt do it...i want to display only ID when ever the data is insert in new column,.
New born in developing
-
Monday, June 25, 2012 5:44 AMCan you post the structure of your table and your current code? I also think you may get better answer from the LINQ forum, let me know if you want your thread to be moved.
For every expert, there is an equal and opposite expert. - Becker's Law
My blog -
Monday, June 25, 2012 7:28 AM
move any where , i just want the solution , i am alone in this office as a developer. help me as a friend,. PatID_NO is not inserting in database its not converting, saving null value in database..
My Table,stored procedure,and code..
Patient nvarchar(50)
E_TO nvarchar(50)
R_type int
User_id uniqueidentifier
ReportType nvarchar(50)
Patient_no int
Patient_ID_NO int
idcount int
New born in developing
-
Monday, June 25, 2012 7:31 AM
Hi,
Post your c# code with Sql Query which your are using
PS.Shakeer Hussain
-
Monday, June 25, 2012 7:35 AMi am unabble to post my code here ,, its showing unexpected error
New born in developing
-
Monday, June 25, 2012 7:36 AM
http://www.codeproject.com/Questions/407030/LINQ-to-sql-one-column-is-not-inserting
i have my code in this link ,,
New born in developing
-
Tuesday, June 26, 2012 8:00 AM
one issue has ben solved the column which is giving trouble while inserting is noe inserting the data
i changed the column datatype to numeric(18,0)
and convert like this decimal PatID = decimal.Parse(PatID_NO.Text); it work fine ..
New born in developing
- Proposed As Answer by Naomi NMicrosoft Community Contributor Tuesday, June 26, 2012 2:43 PM
- Marked As Answer by Mohammed Abdul Muqeet Wednesday, June 27, 2012 7:35 AM
- Unmarked As Answer by Mohammed Abdul Muqeet Wednesday, June 27, 2012 7:36 AM
- Marked As Answer by Mohammed Abdul Muqeet Saturday, July 07, 2012 6:31 AM
-
Friday, July 06, 2012 9:51 AMModerator
Hi Mohammed,
I have noticed that you posted another thread with the same issue, please check that thread to see if issue could be resolved by the replies.
Best Regards,
Tony Xiao [MSFT]
MSDN Community Support | Feedback to us
-
Saturday, July 07, 2012 6:32 AMthere are different issue for one page ,,.. but both the issues has been resolved...
New born in developing

