skip to Main Content

Asp.net – Keep the page unlocked after ModalPopupExtender displays

I am able to display the modal popup using the following code <asp:scriptmanager id="ScriptManager1" runat="server"> </asp:scriptmanager> <asp:button id="Button1" runat="server" text="Button" /> <cc1:modalpopupextender id="ModalPopupExtender1" runat="server" cancelcontrolid="btnCancel" okcontrolid="btnOkay" targetcontrolid="Button1" popupcontrolid="Panel1" popupdraghandlecontrolid="PopupHeader" drag="true" backgroundcssclass="ModalPopupBG"> </cc1:modalpopupextender> <asp:panel id="Panel1" style="display: none" runat="server"> <div class="HellowWorldPopup"> <div…

VIEW QUESTION

How do I add an API key to a HttpClient in a ASP.NET MVC application?

Assume a HttpClient having been set up to look like the following (as per standard called with a factory): builder.Services.AddControllersWithViews(); builder.Services.AddHttpClient("weather", weather => { weather.BaseAddress = new Uri("http://api.openweathermap.org/data/2.5"); weather.Timeout = TimeSpan.FromSeconds(15); }).SetHandlerLifetime(TimeSpan.FromSeconds(15)); Now when using the HttpClient to call an…

VIEW QUESTION

Asp.net – The value '' is not valid for

I have a Blazor web application which uses System.ComponentModel.DataAnnotations attribute for validation in a registration form. I have a property named NationalCode which is nullable long I did not added [Required] attribute above my NationalCode property But when I want…

VIEW QUESTION
Back To Top
Search