All Questions
Tagged with jquery asp.net-mvc
21,624
questions
0
votes
1
answer
26
views
jquery validate make one field required if another field is not empty
I'm having some issues with jQuery.validate 1.11 , with .Net 4.8 and MVC 5 with Razor.
I have these two properties in my class:
[StringLength(500, ErrorMessage = "{0} can have a max of {1} ...
0
votes
0
answers
21
views
How to restrict past time selection in jquery-clockpicker.min.js
When I am open the clockpicker at that time past time also show, so i want to disabled the past time based on current time.
If my current time is 4:00 PM so inside the clock picker disabled before 4:...
1
vote
2
answers
48
views
How to append List to FormData in JQuery?
I get model's values from view with this codeblock and this part is OK.
var data = new FormData();
var datas = $(this).serializeArray();
for (var i = 0; i < datas.length; i++) {
data.append(...
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"
...
0
votes
0
answers
30
views
ASP.NET MVC datepicker doesn't show calendar
I'm trying to add datepicker, however when I try to use @html.TextboxFor, the calendar is not popping up. As for EditorFor to input="date" options, they show mm/dd/yyyy format when I need dd/...
0
votes
0
answers
37
views
Can somebody help me out for the following multiple drop-down binding problem?
I want to bind the second drop-down based on first drop-down's selected option.
Also when add second dropdown first selected system should be disabled.
Html for drop-down is as below:
<div ...
0
votes
2
answers
88
views
How to update a table and refresh the partial view
I am using ASP.NET MVC and have a HomeController, model, and view. I am trying to create a search filter, where the user can type in some characters, click submit, and filter a table (in a partial ...
0
votes
1
answer
43
views
Trouble posting contents of file input to controller action using jquery in ASP.Net Core 6.0
I am attempting to post a file to a controller action in order to save it, and have run into two different problems, when using $.post to post the data as shown here:
$("#setting-form").on(&...
0
votes
0
answers
33
views
Select2 does not show my selected data on the screen
I'm stuck on a problem and I was wondering if you could help me.
I have an ASP .NET MVC system, and I have a widget screen with the function of editing a widget.
The call to edit a widget is in a ...
1
vote
0
answers
24
views
How to set ajax success data to Nop Editor textbox in nopcommerce
I am working in nopcommerce 4.60.6. In that I am using one nop-editor textbox.
Here is the view code
<div class="form-group row">
<div class="col-md-3">
<...
0
votes
0
answers
11
views
Design Rationale on why AspNet MVC Project template includes jQuery script at the bottom
In any page that is served to your browser from an Asp Net MVC web application with Razor pages, the page is first built up by razor, on the server side, by taking the _layout.cshtml page and then ...
0
votes
1
answer
60
views
I have inputs types of checkbox and when I perform delete or retrieve methods it works but page is not reload
In my Asp.Net Mvc project, I have checkbox type inputs and I get the Ids of items through them by using jquery and send them controller by using ajax. Methods are working but after work the page is ...
0
votes
0
answers
19
views
How to use Japanese IME on input type decimal input mask jquery
Here is my input mask code which I am initializing in a drawcallback function.
$(".clstxtInputNumber").inputmask({
alias: 'decimal',
groupSeparator: ',',
autoGroup: true,
...
1
vote
2
answers
44
views
remove multiple attribute from chosen select jquery
I have a dropdown with chosen select plugin
@Html.DropDownListFor(x => x.ML.AccountID, Model.Accounts, new { id = "ddl_account", @class = "form-control form-control-sm chosen-select&...
0
votes
0
answers
23
views
OrderID in master detail doesn't work correctly - in ASP.NET MVC
Please help me with this: when I add new data, it will throw an error
SqlException: Violation of PRIMARY KEY constraint 'PK__SaleOrde__C3905BAFABA6B181'. Cannot insert duplicate key in object 'dbo....