Questions




Answers
4
How to validate jQuery form validation on button click?

I am using jQuery validation plugin in my form, but I am not able to show validation errors on button click using the above plugin, in my form.

Here is my code

...
Read More
Answers
1
No parameterless constructor defined for this object.

Hi, i am getting this issue while running a page in MVC, it was working fine previously, but i now i am getting the error as below

...
Read More
Answers
2
how to loop on JSON result & show it to user using jquery?

I am getting JSON result from my C# MVC controller into front end using Ajax call

...
Read More
Answers
3
Format of the initialization string does not conform to specification starting at index 120.

I have uploaded a new website on server, but when i try to run it on web-browser i am getting this error

Format of the initialization string does not conform to specification starting at index 120.

What is the cause of issue & how to resolve it? I didn't got this error before

...

Read More
Answers
1
The model backing the 'bwavenueDbContext' context has changed since the database was created. Consider using Code First Migrations to update the database

I am getting this error when trying to work on Code First migration with Entity Framework

The model backing the 'bwavenueDbContext' context has changed since the database was created. Consider using Code First Migrations to update the database

here is the error image

...

Read More
Answers
2
how to reload partial view in pop-up modal when opening it?

Hi, I wanted to clear the validation errors if I clicked the Create Button.

Because if I click the Close Button or The Black Shadow(Accidentally close the modal) behinds the Modal within the state of "Errors" in validation, if I click the create button again, the errors will still show, which should be removed as I am clicking back "Create" button.

Please check this link below as reference, the only thing I wanted to do is everytime i click Create Button, the partial view must clear all errors even it was from the previous transaction because sometimes I accidentally drop the modal. Thanks in Advance.

https://qawithexperts.com/article/asp.net/validate-pop-up-modal-using-ajaxbeginform-in-c-mvc/52  ...(Make this as reference)

...
Read More
Answers
2
how to convert UTC DateTime to local datetime in C#?

I want method which returns the string datetime in target locale format by taking the UTC DateTime and UTC DateTime offset in c#, here is the example code

 

...
Read More
Answers
1
Can we use email or string as a primary key in database table?

Can we use email/string as a primary key in database table? and can pass in method of Asp.Net.

 

...
Read More
Answers
2
How to save Product Order details with User Id?

I have a user table & I want whenever a user orders a product, its order should be saved in order table with user primary key, so what relationship I have to add in user and order table. please let me know

Suppose, this is my ActionMethod

public ActionResult Create( Student student)
{

if (ModelState.IsValid)
{
db.Students.Add(student);
db.SaveChanges();
return RedirectToAction("Index");
}

return View(student);
}

 Database Relationship image

 ...

Read More

Page 47 of 54