Skip to main content

All Questions

Tagged with
3 votes
2 answers
32k views

Kendo UI add DropDownList into Grid (MVC)

I'm Binding to a Grid class (UserId,FirstName,LastName,Choice). Does anybody know how to put this code in a column (Choice) in a Kendo Grid in MVC 4: @(Html.Kendo().DropDownList() .Name("...
0 votes
0 answers
37 views

Passing two parameters (IFormFile and a string) with JSON to C#

Versions: ASP.NET and Web Tools - 17.10.341.11210 C# Tools - 4.10.0-3.24312.19+ JQuery - 3.3.1.js JS - 2.8.3.js I'm trying to pass an IFormFile and a string from a JSON file select and a string input. ...
0 votes
1 answer
44 views

Display the all the details of Resident after clicking the view button using ASP.NET Core

Manage.cshtml <table class="display table" id="ManageResident" style="width:100%"> <thead> <tr> <th>Resident ID</th> ...
0 votes
1 answer
37 views

How to change from readonly to not readonly of input in ASP.NET Core

MODAL <div class="modal fade" id="residentModal" tabindex="-1" role="dialog" aria-labelledby="residentModalLabel" aria-hidden="true"> ...
2 votes
1 answer
30 views

Manage concurrent users per single subscription

I am implementing a functionality in which user can take one subscription &** maximum 10 account can be created per single subscription but only 3 concurrent users are allowed**. I am using ...
0 votes
1 answer
34 views

Adding a RequiredFieldValidator causes the 'jquery' is not a valid script name. The name must end in '.js' error

I have a problem inside an asp net application where I get the 'jquery' is not a valid script name. The name must end in '.js' error when I try to add an asp:RequiredFieldValidator element inside an ...
0 votes
2 answers
53 views

Problem in sending data to the controller through Ajax in ASP.NET MVC

I use this foreach: foreach (var item2 in RItem.GetChildItems(item.ID_Ca)) { <div id="@idc" class="accordion-collapse collapse" aria-labelledby="headingTwo2" ...
2 votes
4 answers
23k views

How to Implement Autocomplete Textbox in MVC

I am facing a problem in autocompleting the textbox vith hardcoded data, my json "Search" method does not fire i have been search a lot of code implement it into my project but did not get any success ...
0 votes
2 answers
10k views

How to call Action on Button click from JQuery

With ASP.NET MVC, I want to call action of controller on Button Click from JQuery. Controller: public class HomeController : Controller { // // GET: /Home/ public ...
0 votes
1 answer
70 views

FileContentResult return - 2 different controller methods, different result

I am using ASP.NET Core and ClosedXML to generate an Excel export. Export Method 1 Here is the controller method that DOES return an .xlsx file to the browser. The method gets called from a .cshtml ...
1 vote
1 answer
39 views

How to prevent a clear data upon clicking new add address using button in ASP.Net Core

@model Registration @{ ViewData["Title"] = "Register Page - Step Two"; } <button type="button" class="btn btn-primary" onclick="addAddress()"&...
1 vote
2 answers
9k views

Insert data to database using AJAX (ASP.NET MVC )

I have table with Question1 - Question10 Here is table syntax CREATE TABLE [dbo].[QuestionBlocks] ( [Block_ID] INT IDENTITY (1, 1) NOT NULL, [Question1] NVARCHAR (MAX) NULL, [...
0 votes
0 answers
15 views

How to transfer method to Next in JQUERY Form

This is my script, I want to send a method to next Button in step form when user want to go from form 3 to form 4: (function ($) { "use strict" var form = $("#step-form-...
0 votes
0 answers
46 views

Why is the selected value not retained?

I have an MVC application where a user can add and delete to their schedule. Each time they do, it refreshes so the previously selected dropdown goes back to the first option. How do I get it to ...
-1 votes
2 answers
41 views

JQuery .append(): Add <strong> inside <p>

I'm trying to render this dynamically using jQuery .append() : <div class="alert alert-danger alert-dismissible" role="alert"> <button type="button" ...

15 30 50 per page
1
2 3 4 5
1197