Questions tagged [asp.net-mvc-ajax]
118 questions
0
votes
1 answer
The required anti-forgery form field __RequestVerificationToken is not present
Could you please help me to solve this issue? I'm implementing sign in form without form or html.beginform because I'm calling the controller /API through Ajax call and based on the status message / success, I want to redirect to some page as per…
![](../../users/profiles/2010114.webp)
user2010114
- 1
- 1
- 6
0
votes
1 answer
Prevent page to navigate via MVC Ajax actionlink
I am using asp.net (model view controller) razor view Ajax action link to navigate through pages in my website. My requirement is i will have to restrict the user and populates some popups before navigating to different page and leaving to the…
![](../../users/profiles/3369120.webp)
user3369120
- 63
- 1
- 11
0
votes
1 answer
How to create label text using html helper from Model in ASP.Net MVC 5 (Razor View)
I am trying to create a label text using html helper from my model RoomAvailabilitySummary
View Design:
@model IEnumerable
@using(Ajax.BeginForm("RoomsAvail", new AjaxOptions
…
![](../../users/profiles/1463735.webp)
Arjun
- 403
- 2
- 8
- 22
0
votes
1 answer
Ajax.RouteLink gives a 404
I have this link
@Ajax.RouteLink("Bid", RouteNames.Ajax.BidOnLot,
new
{
lotId = Model.Lot.Id,
bidAmount = Model.NextBidAmountForUser
},
new AjaxOptions
{
…
![](../../users/profiles/991788.webp)
Sachin Kainth
- 41,237
- 78
- 185
- 289
0
votes
0 answers
call controller with plain javascript
how can I use pure javascript rather than jquery or any external library to call a controller in MVC
controller
public class SomeController : Controller
{
public ActionResult SomeMethod(string key, string value)
{
return this.Json(new…
![](../../users/profiles/862226.webp)
user862226
- 129
- 2
- 7
0
votes
0 answers
How to update multiple fields in a form in the OnSuccess Callback function of MVC Ajax
I am using MVC Ajax in my ASP.net MVC 2.0 web application.
I am using Ajax.BeginForm() and passing an ajax request to update values in database.
The Controller Action method for the ajax request is fired and i am returning multiple data values in…
![](../../users/profiles/2587505.webp)
Sai Avinash
- 4,523
- 16
- 50
- 93
0
votes
0 answers
unable to update Label.HiddenFor() content after the ajax request
In my Asp.net MVC 2.0 web Application. I am using an Ajax form . After the Sucessful Ajax ,
I am mentioning update target ID to update content of page with out completely refreshing it.
In my View:
<% using (Ajax.BeginForm("AjaxAdd", "Home", new…
![](../../users/profiles/2587505.webp)
Sai Avinash
- 4,523
- 16
- 50
- 93
0
votes
1 answer
Empty input didn't return added values
I have problem with my ajax-search. When I adding to my model some data, I go to my Index view, where I use my ajax-search. And then I erase text from input and submit form, Index view did not show added data. How to fix that??
It's my…
![](../../users/profiles/2529827.webp)
As Lk
- 19
- 1
- 3
0
votes
2 answers
How to pass hidden field value from one view to another in asp.net mvc
I have parsed the json string and displayed it in the form of table and against each record I placed a "Edit" button. My code is :
for (var i = 0 ; i < data.Homes.length ; i++) {
results += "