|
Post by Admin on Oct 8, 2014 19:26:41 GMT
Continuation about Entity Framework
Learn all about updating and deleting data using Entity Framework
|
|
|
Post by Ayed on Oct 10, 2014 2:41:56 GMT
thanks so much for these helpful tutorials, Can you upload a full copy source code (that involves all lessons), Thanks again.
|
|
|
Post by afshar on Oct 10, 2014 7:00:25 GMT
Thanks
|
|
|
Post by George on Oct 14, 2014 13:57:22 GMT
Thanks a lot Michiel! I allready learned a lot from you. Can't wait for the next lesson.
(Maybe you can also explain in a future lesson how to make an inventory-count of items, where the database is modified when an item is purchased. For example there are 100 brakedisks, there are 4 bought and the inventory is modified to 96 items in stock. I'm trying to figure it out, but no luck so far;))
Thanks again for your great lessons.
|
|
|
Post by mak on Oct 29, 2014 21:01:38 GMT
thank you for wonderful tutorials......your tutorial helped me a lot ..please upload the next part as soon as possible.......once again thanks a lot.
|
|
|
Post by milke on Nov 2, 2014 2:58:28 GMT
Thank you for your wonderful Tutorials ....waiting for your next lesson
|
|
|
Post by redbeans on Nov 8, 2014 10:04:34 GMT
Hi Michiel i am encountering an error in this tutorial whenever i click edit in the management page this exception shows up:
ManageProducts.aspx.cs
private void FillPage(int id)
{
//Get selected product from DB
ProductModel productModel = new ProductModel();
Product product = productModel.GetProduct(id); } Message=Object reference not set to an instance of an object. Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 32:
Line 33: //Fill Textboxes
Line 34: txtDescription.Text = product.Description;
Line 35: txtName.Text = product.Name;
Line 36: txtPrice.Text = product.Price.ToString();
please reply tnx
|
|
|
Post by thekidd24 on Jan 21, 2015 18:02:31 GMT
Having trouble with error Error 1 The name 'typeId' does not exist in the current context \App_Code\Models\ProductModel.cs
|
|
|
Post by thekidd24 on Jan 21, 2015 19:05:59 GMT
Located the error. Thanks
|
|
|
Post by thekidd24 on Jan 21, 2015 22:14:03 GMT
I cannot get any products to show and when I did the edit page it never redirects. I am lost. I can add producst they show on the management page but never show on the index page and I cant get to redirect to edit them either....
|
|
|
Post by 6orazd on Feb 16, 2015 19:04:06 GMT
Hello Michael, Thank you for the really good tutorials. I have the same problem that redbeans mentioned: when i click the edit link t get this massage: "Object reference not set to an instance of an object." I got through the code and it is exactly the same as your code. Can someone tell me, what am i doing wrong?
|
|
|
Post by joe on Feb 19, 2015 17:11:30 GMT
Hey Whenever I click the edit button I get the same error as redbeans. please you could help me out if know what's wrong.
Source error:
Rad 31: Rad 32: //Fill Textboxes Rad 33: txtDescription.Text = product.Description; (This one is marked as red) Rad 34: txtName.Text = product.Name; Rad 35: txtPrice.Text = product.Price.ToString();
|
|
|
Post by ben on Feb 28, 2015 22:57:55 GMT
Michiel, could you please help me and the others out? I have the same problem as redbeans, and I don't know what to do about this error.
|
|
|
Post by Abel on Mar 3, 2015 6:53:39 GMT
Having trouble with error Error 1 The name 'typeId' does not exist in the current context \App_Code\Models\ProductModel.cs having trouble with the same error please help
|
|
|
Post by Sanjay on Feb 14, 2016 3:25:49 GMT
ManageProducts.aspx.cs
private void FillPage(int id)
{
//Get selected product from DB
ProductModel productModel = new ProductModel();
Product product = productModel.GetProduct(id); } Message=Object reference not set to an instance of an object. Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 32:
Line 33: //Fill Textboxes
Line 34: txtDescription.Text = product.Description;
Line 35: txtName.Text = product.Name;
Line 36: txtPrice.Text = product.Price.ToString();
|
|