I was hoping someone could help me sort this out. The solution to this is probably obvious but I can’t seem to figure out what I’m missing… I’m trying to issue a get request from my Javascript code, and the URL contains a Guid. The ASP.NET controller does not get hit/register the request to the API. I’ve tried a couple
Tag: asp.net
Javascript or Jquery validation on textChanged
I need to do the validation for the P.O box on text changed event. If the user types P.O Box in the address text box and also request for expedite shipping by checking a chec box then I need to show the warning message to the user saying that expedite shipping cannot be done to the P.O box address. For
How can I set Date in second TextBox to first TextBox’s day + 1
I have two TextBox in a page. When user pick a date from first TextBox, second TextBox has to be first TextBox’s day +1(previus dates has to be disable). For exemple: User pick 2020-12-29, second minimum date has to be 2020-12-30. Here is the first TextBox with js codes that sets the date to today. I can’t figure it out
How can load file to Kendo PDF Viewer?
I have the following PDF Viewer in my view, How can I update pdf.File(Url.Content(“~/pdf/test.pdf”) based on the selected project. Answer You can load the pdf like so – I can’t test this right now, so there may be some typo’s but this is based on the example located here: https://demos.telerik.com/aspnet-mvc/pdfviewer/api
Multiline textbox value split using javascript in Asp.Net C#
Asp.Net C# Multiline textbox(textbox1) value split after 35 charaters of address & add to textbox(textbox2 – Singleline) again split next 35 charaters & add to textbox(textbox3 – Singleline) again split next 35 charaters & add to textbox(textbox4 – Singleline) again split next 35 charaters & add to textbox(textbox5 – Singleline). Note: While Splitting value after 35 characters make sure if
Access Messages from Message Center
Hi I’m try to display the top 5 messages from the message center on the homepage. But I’m not sure what I’m doing wrong. I try to get the messages from the message view model here is my code. View model MessageViewModel.cs Controller Cshtml Answer To display top 5 records, we should use the “OrderByDescending()” to sort the message, and
FileUpload: Get filenames with JS not working
I want to get filenames and put it in label lbName but this code is not working. I used asp:FileUpload. This is my code: <asp:FileUpload ID=”FileUpload1″ AllowMultiple=”true” runat=”server” Onchange=”upload()”/> <asp:Label ID=”lbName” runat=”server” ForeColor=”Gray” Visible=”True”></asp:Label> and JS code: Answer You could use jQuery and bind a change event to the input type=file. Or if you want to make your javascript work:
How upload image in CKEditor 5 With asp.net core razor Pages
I Have A Razor Page Ineed this Page UPload image to server by CKEditor give me a sample Answer How upload image in CKEditor 5 With asp.net core razor Pages You can refer to the following example to achieve above requirement. JS code Page model class and handler Test Result
jQuery File Tree always uses root folder as selected folder
I am having trouble displaying data using jQuery File Tree plugin. No matter what I use for ‘root’, it always uses ” and displays content of C drive! I am using aspx (with code behind that I am not using) and a master page. I added a breakpoint in venodr’s js file (below) as well as the ‘connector’ script: and
Can’t update iframe’s src in the viewer in ASP.NET
In shared folder of ASP.NET C#, I create a .cshtml which defines a button that can GET data from an API. I would like to generate an url and use it to update an iframe of a viewer. However, the iframe in the viewer, which named SearchingMap.cshtml, doesn’t updated. Why can’t it work? How can I update the iframe of