Informational video 👍🏻👍🏻 But You forget to write return ; Statement in If(!modelstate.isvalid) { Tempdata["errormsg"]=......... Return; } In [HttpPost] create action method.
you said that you already explained how to create views manually step by step in previous view but i havent got it it there is no reference or address for the video and no numbering there although the video is great is easy to understand thanks
Hi, I'm getting the same message "No Employees available at this moment" even-though I'm able to add data's via Create button or be it in the backend. How to resolve it ? Why the data's are not displayed n the employee Index ?
Thanks for yiur valuable feedback. [] not mandatory. But if we have multiple schemas, better to use schema and performance wise also good to use schema. 🙏 pls correct me if I am wrong.
@@CodeWithGopi "Data Source=DESKTOP-XXXXXXX;Initial Catalog=CRUDWithADONet;Integrated Security=True;Encrypt=True;Trust Server Certificate=True", this is my default connection string. It still didn't work out for me.
i was following along and I notice your sqlreader has no parameters how did you do that it did not work for me at all I had to do this using(SqlDataReader dr = _command.ExecuteReader()) { whil(dr.Read()) { Employee employee = new Employee(); .... employeeList.Add(employee); } } _connection.Close();
While trying to execute the Insert procedure, i got the following error: Msg 208, Level 16, State 6, Procedure usp_Insert_Time, Line 2 [Batch Start Line 26] Invalid object name 'DBO.usp_Insert_Time'. Can someone help me?
Hi sir..... can you please provide in previous videos like CrudwithCodeFirst and CascdingDDL project videos sir............. please sir I have based on the project one task will be there sir ............ please sir can you provide as soon as possible sir......... still I am waiting your videos links sir........ and How can I contact sir
After I did the "Read Data" part, when I started it it gives this error. Can you help ? InvalidOperationException: The view 'Index' was not found. The following locations were searched: /Views/Home/Index.cshtml /Views/Shared/Index.cshtml
I am getting this error "InvalidOperationException: The view 'Edit' was not found. The following locations were searched: /Views/Employee/Edit.cshtml /Views/Shared/Edit.cshtml" while clicking the edit option. Please suggest
Informational video 👍🏻👍🏻
But You forget to write return ;
Statement in
If(!modelstate.isvalid)
{
Tempdata["errormsg"]=.........
Return;
}
In [HttpPost] create action method.
Thanks for the update
Great! Thank you for the explanation
Thanks for your valuable feedback and support
Thank you for your feedback and support! If you're able, please consider supporting my channel by becoming a member or using Super Thanks.
you said that you already explained how to create views manually step by step in previous view but i havent got it it there is no reference or address for the video and no numbering there although the video is great is easy to understand thanks
Your teaching way is ingenious ❤❤❤
Thanks for your valuable feedback
There is no link which explain view creation. If there any, plz share it.
Thank you
Thank you sir thanks a lot , one of best tutorial
Thanks for your valuable feedback and support 👍
May I know why do we need to use try and catch in usp_insert-employeee as there was no condition?
hey anyone has the code that he used in the initially to create the employee table
Link available in the description
What is no lock in sql
Hi, I'm getting the same message "No Employees available at this moment" even-though I'm able to add data's via Create button or be it in the backend. How to resolve it ? Why the data's are not displayed n the employee Index ?
Hi, debug and check whether the data is coming from the DB
@@CodeWithGopi Yeah, got it. Thanks. return View(employees); missed to include employees while returning the view!!
sir kindly reply me where the link of create employe when i click create employee it is showing error. this localhost can't be found
Pls Check the Index
getting edit id 0.how to fix it
Where can I download the script to create the employee table, there is a piece missing that I can't see on the right side please
Will share the script link.
@@CodeWithGopi yes, please. Thank you
i have also the same dought
Is there any SQL code at the beginning? The WITH line is finished ON... what else?
Same doubt
I also same doubt
Same doubt
yes i have also the same dought
You can just use the stored procedure name in the CommandText, you can remove the square brackets ("[", "]") and the "[dbo]". Happy coding :D
Thanks for yiur valuable feedback. [] not mandatory. But if we have multiple schemas, better to use schema and performance wise also good to use schema. 🙏 pls correct me if I am wrong.
How can ı get this project's source codes ? I can't find it on your Github profile.
We are providing the source code for members only. If possible you can join as a member.
Thanks for taking a membership and your support. Please 🙏 share your email address and will share the source code.
I guess you forgot the send to me source codes :)@@CodeWithGopi
??@@CodeWithGopi
Hi Gopi, I'm getting error when I'm trying to delete the records. Please kindly help me on this !
What is the error
@@CodeWithGopi Hey , Thanks for the reply ! issue got resolved. Basically error was model binding in DeleteConfirmed method.
Hi, I'm getting an "Error : Model data is invalid" while trying to update the data. How to resolve it ??
@CodeWithGopi Any updates/ suggestions ?
Hi, I'm getting an Error : Keyword not supported: 'trust server certificate' while running the application!! How to resolve it ??
Please try this and let me know if you have any issues ua-cam.com/video/MOldkUAkfcg/v-deo.html
@@CodeWithGopi "Data Source=DESKTOP-XXXXXXX;Initial Catalog=CRUDWithADONet;Integrated Security=True;Encrypt=True;Trust Server Certificate=True", this is my default connection string. It still didn't work out for me.
I tried this "Trust Server Certificate=True changed to TrustServerCertificate=True", by removing the space in between, it works now.
Which nuget packet's are installed for this crud opreation?
i was following along and I notice your sqlreader has no parameters how did you do that it did not work for me at all I had to do this
using(SqlDataReader dr = _command.ExecuteReader())
{
whil(dr.Read())
{
Employee employee = new Employee();
....
employeeList.Add(employee);
}
}
_connection.Close();
Thank you had the same issue!!
where can i get the script added for view
Kindly post it sir it will be helpful
sir for beginners the stored procedure is tough,try to make it simple next time
Thanks for your valuable feedback and support.
I'm totally agree with you
Thanks Gopi, Nice, Please share the code for this video
While trying to execute the Insert procedure, i got the following error:
Msg 208, Level 16, State 6, Procedure usp_Insert_Time, Line 2 [Batch Start Line 26]
Invalid object name 'DBO.usp_Insert_Time'.
Can someone help me?
make sure u have changed Master database into ur database name while executing
Sp is not available in selected db
Where i can get the query
Hi sir..... can you please provide in previous videos like CrudwithCodeFirst and CascdingDDL project videos sir............. please sir I have based on the project one task will be there sir ............ please sir can you provide as soon as possible sir......... still I am waiting your videos links sir........ and How can I contact sir
previous videos will not be there sir
Louder!
Sure. Will improve on this
try to speak a bit loude
Sure thanks for your valuable feedback and support 👍
After I did the "Read Data" part, when I started it it gives this error. Can you help ?
InvalidOperationException: The view 'Index' was not found. The following locations were searched:
/Views/Home/Index.cshtml
/Views/Shared/Index.cshtml
View not avaliable. Pls check
pls give the source code
why i getting Error: unable to save data
I am getting this error "InvalidOperationException: The view 'Edit' was not found. The following locations were searched: /Views/Employee/Edit.cshtml /Views/Shared/Edit.cshtml" while clicking the edit option. Please suggest
Edit View not available. Please create it and try
@@CodeWithGopi Done..
@@CodeWithGopi thanks
The type name 'models' does not exist in the type 'Employee'