I have a user control that contains a confirm button extender and a modal popup extender. It looks like: The user control gets a dropdownlist. When changing the dropdownlist selection, the button onclick event should run. In the user control aspx.cs there is the follow code: Use the user control in aspx looks like: and in aspx.cs: This is working
Tag: c#
Url.Action cant find controller method which returns RedirectToAction
I have a javascript funtion that will called a controller method if the condition satisfied. In SilentLogout method, it returns RedirectToAction method. For this SilentLogout method, there is no view associated with it. The codes work well except it cannot find the the SilentLogout. Just fyi, there are other methods in this controller which returns view and it all works
C# load cshtml into modal with JQuery
I want to load the content from one page into a modal on another page on the click of a button, but it is also loading in the content from the __Layout page. I have tried calling a controller using: However, I cannot get it to load in solely what is in the MyPage.cshtml file. What am I doing wrong?
Reading same textbox value each time from jquery popup
I have JQuery Popup whchi has a textbox. JQuery Popup trigger on OnClick event of a Checkbox. HTML My effort is to receive textbox value in server side C# Code and display it using an other jquery popup Server Side Code C# Problem My server side code can receive JQuery popup textbox value but every time i get the same
Is it possible to calculate a Bing Maps Route in C#, and then pass it to a Map in Javascript using MvC?
I am developing a Web Based Navigation app using Bing Maps and ASP MvC, and I found as well as being able to create a route in the view using JavaScript, it is possible to create a route in the C# controller using the Bing Maps Rest Toolkit, and then pass it over. However, I have been unable to find
POST and GET methods on the same button
I am currently learning asp.net core 3 and I can’t find any help regarding this issue that I have. I have a form that submits a value with a POST request. But I want the same button to have a GET request that populates another field with a .ajax / xmlhttprequest. But I want the POST method to be executed
Javascript Send Schedule Date From Local Timezone to Server Time
I am in Hawaii. From Angular, I want to send Pacific Standard Time (PST) to C# Net Core API. It will save it in database and save in Pacific Standard Time. (I didn’t create the architecture, just noting). The whole Angular Application date/times are written in reference of PST. Example goal is to Schedule Date at 4:30PM PST We learned
Export to PDF error using Dot Net Report Builder
I am using the MVC version of the Dot Net Report Builder. I am able to configure dotnetreport and run a test report, but if I click on Export to PDF I get a javascript error – unexpected token export. Looking at the javascript console error it seems to be originating from bootstrap/popper. Answer Thanks for pointing this out, this
Call a C# non static method from a static method in Blazor invoked by Javascript DotNet.invokeMethodAsync
I understand we can change a C# property value in Blazor from JavaScript by invoking the method DotNet.invokeMethodAsync. I have the below working but in this method I want to also call a non static method. JS File: Razor page: I am trying to run a non static method in a static method (IN BLAZOR APPLICATION). How can I call
How to disable high contrast mode for UWP application
Recently, some users of our application started complaining that it was not rendering properly. They sent in videos showing that all the colors were off and that video in the app was being hidden. After a great deal of troubleshooting the issue, we finally figured out that these users had put their machines into high-contrast display mode, and our application