|
Post by Aaron on Mar 18, 2016 19:34:38 GMT
plz help
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1061: 'ASP.pages_management_management_aspx' does not contain a definition for 'grdProducts_SelectedIndexChanged' and no extension method 'grdProducts_SelectedIndexChanged' accepting a first argument of type 'ASP.pages_management_management_aspx' could be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 6: <asp:LinkButton ID="LinkButton1" runat="server" CssClass="button" PostBackUrl="~/Pages/Management/ManagementProduct.aspx">Add New Product</asp:LinkButton> Line 7: <br /> Line 8: <asp:GridView ID="grdProducts" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="ID" DataSourceID="sdsProducts" OnSelectedIndexChanged="grdProducts_SelectedIndexChanged" Width="100%"> Line 9: <Columns> Line 10: <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
|
|
|
Post by Rajju on Jul 17, 2016 9:58:18 GMT
Plzz Resolve
Error 1 'ASP.pages_management_management_aspx' does not contain a definition for 'grdProducts_SelectedIndexChanged' and no extension method 'grdProducts_SelectedIndexChanged' accepting a first argument of type 'ASP.pages_management_management_aspx' could be found (are you missing a using directive or an assembly reference?)
Error 2 'ASP.pages_management_management_aspx' does not contain a definition for 'grdProducts_SelectedIndexChanged' and no extension method 'grdProducts_SelectedIndexChanged' accepting a first argument of type 'ASP.pages_management_management_aspx' could be found (are you missing a using directive or an assembly reference?)
|
|
|
Post by jurecro on Jul 29, 2016 9:49:46 GMT
Hi there Michiel!
I have been following your tutorials and came to a problem. My tables are
Product: -ProductId (PK) -Name -Price -Description -Quantity -ProviderId (FK)
Provider: -ProviderId(PK) -Name -PostId
I was strugling with CASCADE deleting but I managed to make it work somehow. Now my question is what query do I have to write for UPDATING Product table with FK value ProviderId in GridView Control.
I was trying with all kinds of Inner Joins and things but I can't delete update provider in the same time when updating Name od the product for example. Is there any way the problem could be the same Column names in 2 tables (Provider.Name and Product.Name)?
Thank you!
|
|
|
Post by masoud on Aug 19, 2016 10:11:38 GMT
Hi, Thanks a lot for very very useful videos;
I have question: in cms grid view can we change the "Edit" or "Delete" Title to another or my own title ?
if yes please how? if no again please tell me a way to handle this
thanks again.
|
|
|
Post by Afridi on Aug 20, 2016 12:23:28 GMT
Hi Sir. Michiel Wouters, Hope you will fine and everything will be better, also I pray may Allah bless you ever, ever and ever God give strong health and shower blessings on you. Sir Kindly I have searched everwhere for the complete Database of WebShop, if you would like, so kindly please share the complete database used in WebShop. I am very very thankful of you and always praying for you and will be. Regards Afridi
|
|
|
Post by shahidafridi on Aug 20, 2016 12:39:26 GMT
Hi Sir. Michiel Wouters, Hope you will fine and everything will be better, also I pray may Allah bless you ever, ever and ever God give strong health and shower blessings on you. Sir Kindly I have searched everwhere for the complete Database of WebShop, if you would like, so kindly please share the complete database used in WebShop. I downloaded the database from a link given by you, but in that database there is no any table named "Cart", i think that was incomplete database. So, kindly please share Complete Database. I am very very thankful of you and always praying for you and will be. Best Regards Shahid Afridi
|
|
|
Post by Sahel on Oct 11, 2016 18:02:17 GMT
Dear sir Please help me to know what is the problem during convert this value to duble it showing error product.Price = Convert.ToDouble(txtPrice.Text);
|
|
|
Post by Bogdan on Dec 27, 2016 13:45:54 GMT
No errors. But when i want to edit an item and it redirects me in the ManageProducts.aspx?id= when i click submit it refreshes the page and restore the text before the edit. and no edits are made in the table. Please Help.
|
|
|
Post by nebiadi on Mar 22, 2017 19:28:27 GMT
Hello to all, again thank you very much for all of These tuts. But currently i also do work on this Database for evening School but i also have same issues like People in this Forum. The issue i think will be based on using Visual Studio 2013 Professional. But i think there should be a solution for this issue.
Thanks soo much Michiel or to someone who can help and resolve the issue.
Zeile 57: Zeile 58: //Fill Textboxes Zeile 59: txtDescription.Text = product.Description; Zeile 60: txtName.Text = product.Name; Zeile 61: txtPrice.Text = product.Price.ToString();
|
|
|
Post by Iven on Oct 28, 2018 9:18:01 GMT
Hi, Have you been able to solve this issue, i am having same.
please help
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();
|
|
|
Post by Georgi on Dec 25, 2018 21:16:24 GMT
I get an error on the: "GridView row = grdProducts.Rows[e.NewEditIndex];". The error says : "Error CS0029 Cannot implicitly convert type 'System.Web.UI.WebControls.GridViewRow' to 'System.Web.UI.WebControls.GridView'". Help please !
|
|
|
Post by Georgi on Dec 25, 2018 21:18:17 GMT
I get an error on the: "GridView row = grdProducts.Rows[e.NewEditIndex];". The error says : "Error CS0029 Cannot implicitly convert type 'System.Web.UI.WebControls.GridViewRow' to 'System.Web.UI.WebControls.GridView'". Help please !
|
|
|
Post by Peter on Dec 25, 2018 21:19:23 GMT
I get the same error as Georgi. I tried adding a different directory but it doesn't help !!!
|
|
|
Post by Sally on Apr 13, 2022 4:50:49 GMT
Continuation about Entity Framework Learn all about updating and deleting data using Entity Framework product.Price = Convert.ToDouble(txtPrice.Text); This code in webshop tutorial 3 is not working in Visual studio 2019. I keep getting an error message. "Cannot covert Double to int" Thanks Sally
|
|