Click here to Skip to main content
15,896,154 members

Comments by Xavi Giqwa (Top 14 by date)

Xavi Giqwa 8-Oct-14 8:51am View    
This tutorial series will get you started http://www.asp.net/web-forms/tutorials/aspnet-45/getting-started-with-aspnet-45-web-forms/introduction-and-overview
Xavi Giqwa 23-Sep-14 6:02am View    
I suggest that you use Entity Framework with MVC to make things easy for you.
check this link: http://www.asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-8
Xavi Giqwa 12-Feb-14 3:56am View    
Reason for my vote of 3 \n good article
Xavi Giqwa 31-Jan-14 3:46am View    
you will need to clearly describe your question and show what you have and what you want to do.
Xavi Giqwa 8-Oct-13 3:41am View    
Hi chintransh635
thank you for your reply and help.
i tried you code and so far ive getting this error:
Unable to cast object of type 'System.Collections.Generic.List`1[DataAccess.Product]' to type 'System.Data.DataTable'.

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.InvalidCastException: Unable to cast object of type 'System.Collections.Generic.List`1[DataAccess.Product]' to type 'System.Data.DataTable'.

Source Error:


Line 67: }
Line 68:
Line 69: DataTable dt = (DataTable)Session["dtlist"];
Line 70:
Line 71:

Source File: c:\Users\Admin\Desktop\MeatbyMobileFinal\MeatbyMobile\MeatbyMobile\Butchers\ButcherCatalog.aspx.cs Line: 69

Stack Trace:


[InvalidCastException: Unable to cast object of type 'System.Collections.Generic.List`1[DataAccess.Product]' to type 'System.Data.DataTable'.]
MeatbyMobile.Butchers.ButcherCatalog.Button4_Click(Object sender, EventArgs e) in c:\Users\Admin\Desktop\MeatbyMobileFinal\MeatbyMobile\MeatbyMobile\Butchers\ButcherCatalog.aspx.cs:69
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +9552602
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +103
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +35
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1724
also i want the items in the new gridview to be editable so butchers can save to their catalog