5514 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

 ...

Type
Question
2978 1
Keep Pop up Modal Opened after saving data in Ajax.BeginForm

Hi, I wanted to stay open pop-up modal (this modal is partial view) after successfully inserting data in database, I am using Ajax.BeginForm to save data with PartialView

I want to stay it open so I can insert new data without clicking the create button again and i dont want to redirect it to Index View. Please see the image below of my code, Thanks...

 

...

Type
Question
6617 2
How to do server validation in bootstrap pop-up modal?

I am using partial in pop-up modal, and I wanted to do a server validation but I want the modal will stay, is it possible without reloading?

I am using "Ajax.BeginForm". Thanks

...
Type
Question
3942 1
how to export data to excel using asp.net boiler plate MVC5?

I want to export data to excel using asp.net boilerplate MVC, How can I achieve it? I want a working demo(if possible)?

thank you very much!

...
Type
Question
7973 1
How to calculate distance between two geolocation?

I am calculating distance between two Latitude and long
one is the current location of the user and another from the database, I want here if the lat-long distance is between 4km then show data

how can I do it using C#?

...
Type
Question

3527 1
How to send value from model in view to javascript file?

In asp.net MVC, How can I send value from model in view to javascript file? 

...
Type
Question
6316 2
Difference in Html.Partial vs Html.RenderPartial & Html.Action vs Html.RenderAction?

I would like to know difference between

  1. HTML.Partial and HTML.RenderPartial
  2. Html.Action and Html.RenderAction

in asp.net MVC, when we should use which HTML helper method?

Thanks

...
Type
Question
3109 1
Need boiler plate ebook or demo

I want ebook or demo of asp.net boilerplate but do not paste home page(https://aspnetboilerplate.com/) of boilerplate.

thank you very much!!

...
Type
Question
3211 1
how can i simplify url in .NET MVC?

How can I simplify the url to http://localhost:51675/Prescriptions/Create/12 instead of http://localhost:51675/Prescriptions/Create?AssessmentID=12.
currently i am using this code

...
Type
Question
11332 2
disable browser back-forward button after logout in MVC

how can I disable browser back-forward button after logging out from asp.net MVC C# web application, I have tried this javascript code

...
Type
Question

Page 30 of 31