All Questions
26,038 questions
-3
votes
0
answers
57
views
Ajax not calling a c# function [closed]
I am trying to call a C# method from my javascript code that when the user presses a button it updates the query variable and gets back a new table for those dates. but my javascript dosnt call the C# ...
1
vote
1
answer
50
views
JavaScript stops working after UpdatePanel is triggered
I’m having an issue with the UpdatePanel and JavaScript. The JavaScript code works perfectly at first, but it stops functioning after the UpdatePanel is triggered.
This is the code :
<script>
...
0
votes
1
answer
71
views
Div not showing after select
For some reason, I can display boxes and all, but everytime I try to display a DIV after a select has been chosen, nothing happens... Please advice.
$(document).ready(function () {
var divs = ...
0
votes
1
answer
57
views
How to hide asp combobox according to selected asp combobox by javascript in asp.net
I have two asp combobox one with the name of cmb_stocktype while second with the name of cmb_tagno. Now, my question is that when I select cmb_stocktype with the value of WithStock then cmb_tagno ...
0
votes
1
answer
80
views
JQuery not working on ASP.NET content page
I have Visual Studio 2022. I initially created a simple ASP.NET web application to test some jQuery. That worked.
I've now got the same code in a working ASP.NET web application and the jQuery is not ...
1
vote
0
answers
51
views
Understanding Disabling Controls JavaSCript vs Code Behind
First time for any web dev, so this might be a really silly question because I don't know something very basic.
This JQuery disables all the input controls in the PanlDL panel:
$('#PanlDL *').attr('...
1
vote
1
answer
45
views
Pass the selected value of a dropdown in to a URL.Action so that a modal form is displayed on a button click
I want to run up a modal form from a button click. The modal form will be depend on what is selected in the dropdown.
my code is -
<div class="row">
<div class="col-md-...
3
votes
1
answer
214
views
EventListener not being removed
I've got some Javascript that works fine on the first load, but isn't working on Postback. After doing some reading, it seems like I need to remove the EventListeners and rebind them. So I've got ...
0
votes
1
answer
63
views
How to make my datatable reload with new data?
I am using ASP.NET MVC for a project and I have a datatable which is working fine when the page loads but when I submit a form for searching it returns the correct response in json but it does not ...
3
votes
1
answer
38
views
How to get the value of selected text in select combobox by javascript in asp.net c#
How to get the value from selected text by select combobox?
Here is the aspx.cs code for bind combobox
service.BindHTMLDropdownList(cmb_labelno, "tbl_StockRunning", "StockTagNo", &...
0
votes
0
answers
33
views
Responsive (hidden) columns are not persisting properly to the DataTable
I've created a test case, which you can view here:
Test case of DataTable responsive columns
In this scenario, I'm facing an issue where the values are not persisting correctly in the DataTable.
For ...
0
votes
0
answers
30
views
When export data to pdf using itextsharp library, I get an empty file downloaded and can't open
I work on ASP.NET I face issue when export grid view have more than 2000 rows it download empty file pdf without data inside.
And when click on file not open and give me file not in correct format or ...
0
votes
0
answers
20
views
How to Close ISWebCombo Dropdown After Selecting a Value with AutoPostback Enabled?
I'm using an ISWebCombo dropdown control in my ASP.NET Web Forms application. The dropdown does not close automatically when I select a value. I need it to close after selection.
<ISWebCombo:...
-1
votes
1
answer
70
views
Filter Data Based on Time
How can i filter the data based on time. using oracle database, asp.net web form and query. oracle database outtime column datatype is date. Pls help
HTML
<!-- Main content -->
<section class=...
0
votes
1
answer
48
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">
...
1
vote
1
answer
40
views
Problem with cascading dropdown in Asp.net core mvc
I m implementing Student Information System. In Student class (Id, Name, CurrentGradeId, CurrentClassroomId and other info). Want to implement cascading dropdown are grade and classroom.
Here Problem!
...
0
votes
1
answer
59
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
0
answers
45
views
How can update the step form view with Ajax in ASP.NET
this is my method to Get Cart:
[HttpGet("/UserPanel/CheckOut")]
public async Task<IActionResult> CheckOut()
{
var text = await _siteService.GetSiteSettingForEdit();
...
1
vote
1
answer
45
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()"&...
0
votes
1
answer
33
views
How can Save several objects from several session in Cart in ASP.NET
I have a step form for my cart (with One view) , my method in controller is : Checkout
step1: I save Items and ... in session
step2. choose address.
step3. I want save delivery time in new session
I ...
0
votes
1
answer
29
views
when call user control from from asp.net page it call only csharp not call jquery or java script function?
I work on asp.net project I face issue when call web user control from asp.net page it calling
success but script JavaScript or jQuery not called
so why scripts not called
only from debug page load ...
0
votes
0
answers
25
views
Jquery error on the ScriptResource.axd file
In my aspx page there is textbox to do search which have onkeyup event.Onkeyp event method is get called but Whenever type text on that textbox, get the below jquery error on the page.
I am not sure ...
0
votes
0
answers
16
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
77
views
asp.net textbox clientside lost focus event in listview control
I have below lines of code in asp:list view control, if user input any value on 2nd text box, on client side lost focus event I need to calculate txtTokensReq * txtQty and display in lblTotalTokens.
&...
0
votes
0
answers
28
views
when export grid view have Arabic data to pdf format using JQUERY it downloaded but error open pdf failed?
I work on asp.net app . I face issue when export grid view with data to pdf .
it downloaded but finally not open file
grid view have Arabic data
when inspect browser to check error I can't found any ...
0
votes
1
answer
73
views
jquery modal and autocomplete not working with button for postback
I have a problem with an asp.net site using masterpage in which I would like to have a jquery modal where user can search and submit text. I would like to get the insert text with an postback for ...
0
votes
0
answers
38
views
How to remove row on client side by jQuery based on key auditor id and budget year?
I work on jQuery with asp.net . I face issue I can't remove row from grid view based on key AUD_RECID and P_BUDGET_YEAR .
AUD_RECID with different P_BUDGET_YEAR so I need key will be both from ...
0
votes
1
answer
64
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
1
answer
138
views
Select2 cause full page refresh instead partial postback
I'm using Select2 on a DropDownList and when I select a value that make a full page refresh.
That's not happening selecting directly without Select2, making a partial postback.
The DropDownList have ...
0
votes
2
answers
57
views
Ajax Returns MasterPage File In Response Instead Of Return From Method From Current Page
Ajax returns masterpage html instead of returns from my method.
Here is my client code:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Page1.aspx.cs" Inherits=...
0
votes
0
answers
24
views
Import data from Excel and show to view through @ViewBag
I tried to import an Excel file to get a specific column data and show it to view, but there is nothing. I ran debug and it does get data, but not showing anything.
my HTML, js:
@using (Html....
0
votes
1
answer
37
views
Show/hide the fields based on the condition in jQuery
how to show/hide the otp->textbox and update->button based the onblur SaveProfileName_Email values change.
Initially, when the page is loaded the txtProfileEmail and txtProfileName should ...
0
votes
1
answer
66
views
Jquery DataTable not working after appending the html code to DataTable using jQuery
I have created a datatable and appending the data to that datatable body , data appending successfully but the datatable not working properly
ex: If I click on the datatable header columns the entire ...
-1
votes
1
answer
46
views
Ajax doesn't work in DataTable using webforms visual basic
For reference, I'm using DataTable 2.0.6
I can't seem to make the DataTable call the function in aspx webforms in visual basic.
This method works:
$.ajax({
type: 'POST',
url: 'Index.aspx/...
0
votes
0
answers
36
views
Popup is not displaying
If the user has made changes in the form and attempts to leave the page, a popup will appear. The popup is functioning correctly for leaving the page. However, when the user tries to switch tabs, the ...
0
votes
0
answers
33
views
Can we parameterize jQuery ajax call for inserting data to database?
This is my simple code for inserting data to database and it's working fine. Table name is AccountMaster
function Insert() {
var Value = {};
Value.Id = $("[id*=hdnId]").val();
...
0
votes
0
answers
27
views
ASP.Net Webform: Server side web method not firing by jquery ajax
I am working with web form where i have button and one input file. when user click on a button then file open dialog will open and user select file. user selected file will be pass to server side ...
0
votes
0
answers
207
views
How to get value from editableSelect() by jquery in asp.net c#
I am trying to get the id of selected list item (html-editableSelect), but in the place of select Id value I am getting undefined alert.
Here is my aspx code
<select id="cmb_year" runat=&...
0
votes
0
answers
78
views
HTML/CSS toggle button read/write state
Looking for a way to have a page with toggle buttons on/off. i'm making a page that will be for me to track when my dogs were/need medication. (have a magnetic whiteboard now, but trying to go with ...
0
votes
0
answers
16
views
Can I get a value from a textbox which is in asp:DataGrid which is inside another asp:DataGrid's TemplateColumn in Javascript?
I have a asp:DataGrid (Assume as Grid A) which has several asp:BoundColumn and asp:TemplateColumn inside..
One of the asp:TemplateColumn has another asp:DataGrid (Assume as Grid B)inside it ,
I want ...
0
votes
2
answers
3k
views
jQuery ajax post request on ASP.NET Core MVC with application/json
I'm trying to make and ajax call using jQuery.ajax and contentType: 'application/json; charset=utf-8'.
I created a new project for ASP.NET Core MVC with .NET 8.
This is the Javascript code:
$('#...
0
votes
0
answers
22
views
How to implement the transfer of parameters to the method using jquery(ajax) and then download the file created in the method to the computer
On the view page, I added a datetimepicker taken from daterangepicker
It passes the start and end date parameters to the ajax script. After that, the script passes this data to a method that generates ...
0
votes
1
answer
45
views
The jquery script function is not triggering in _layout.cshtml page while child page is loaded in ajax
I solicit your valuable input to resolve an issue.
Context: My application is having asp.net core MVC as tech stack. I have put client-side sorting and various functionalities in jquery. To make those ...
0
votes
1
answer
55
views
How to get values in Razor View ASP NET CORE 6
I working on Invoice Function . I create a seletec box to select the product i want to invoice.Here my razor view
IEnumerable<ProductItem> lstProduct = ViewBag.ListProduct as IEnumerable<...
0
votes
0
answers
36
views
How to bind a listview using javascript or jquery
Application used to bind a list view in nav bar from code behind but Im trying to bind it from client side after fetching data using Ajax on page load.
I got the data on client side but not sure how ...
1
vote
1
answer
61
views
Unknown error when trying to pass parameters to the Http Post method using jQuery AJAX
I am trying to implement a product information window in which there is a partial view responsible for displaying the quantity of product in stock. The quantity of the product in stock is represented ...
0
votes
0
answers
40
views
How to simplify : assign the value of multiple dropdownlists from a main dropdownlist selection
Explaination
I have two dropdown_lists, the customers name and the second one, its preferred food.
When a customers makes an order, its preferred food will be shown on the second dropdown_list value (...
2
votes
0
answers
50
views
JQuery Ajax getting response of eval(function(p, a, c, k, e, d) instead of partial view
We have application in ASP.NET MVC 4.5.2 with JQuery 3.3.1 and production we have load balancer and we have 2 nodes of server. We are facing weird behavior when ever we requesting sometime we are ...
0
votes
0
answers
83
views
How to make a jQuery function work for same element in all rows of a foreach loop instead of just the first row?
I'm using ASP.net C# and I have a table for products where I have a function that gets called whenever there is a change in a dropdown list selection.
My function works perfect currently, but only if ...
0
votes
0
answers
37
views
Filtering Data in DataTbale ASP.NET
enter image description here I have a problem with data filtration in the table. I would like the data in the filter list to remain intact for the applied filter and to be updated in the remaining ...