mình làm theo vjdeo và gặp lỗi này mong bạn chỉ giúp
Server Error in '/WebSite1' Application.
Input string was not in a correct format.
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.FormatException: Input string was not in a correct format.
Source Error:
Line 15: }
Line 16: MyDBDataContext db = new MyDBDataContext();
Line 17: int iduser = Convert.ToInt32(Session["Ten"]);
Line 18: LayuserResult user = db.Layuser(iduser).FirstOrDefault();
Line 19:
Source File: d:\ASP.net\WebSite1\doimatkhau.aspx.cs Line: 17
Stack Trace:
[FormatException: Input string was not in a correct format.]
System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer