Webpages Chart for .NET 5 – Asp.net
I need to easily build simple charts. My idea was to use the Microsoft chart class to do so (as they have a very good tutorial on the subject). But this causes problems as I build a MVC webapp using…
I need to easily build simple charts. My idea was to use the Microsoft chart class to do so (as they have a very good tutorial on the subject). But this causes problems as I build a MVC webapp using…
I am trying to figure out how I can pass my returned value to the view without any exceptions. I'm having hard time passing my bool value due to it's async to my view model. Controller [HttpGet] [ChildActionOnly] public async…
I have this code running kestrel builder.WebHost.UseKestrel().UseUrls("https://myfirstproj1.asp") .UseIISIntegration(); but I can't access the site through the url I specified. What am I doing wrong?
I have Hash keys like this in my cache - products:P101 products:P211 products:P327 ... Now i want to HSCAN on these cache items using widlcard but it is not working hscan "products:P121" 0 //this works scan 0 match products:* //this…
I want to change the child content of a button after click, but I got some error when I try. This code work but, obviusly, don't render the icon passed: <TelerikButton OnClick="@RevealPassword" Class="pass-btn" Primary="true" ButtonType="ButtonType.Button" Id="btnShowPwd" Title="Show"> @EyeIcon </TelerikButton> @code…
Error message: Undefined symbols for architecture arm64: "std::__1::basic_string<unsigned short, base::string16_internals::string16_char_traits, std::__1::allocator<unsigned short> >::shrink_to_fit()", referenced from: base::UTF8ToUTF16(char const*, unsigned long, std::__1::basic_string<unsigned short, base::string16_internals::string16_char_traits, std::__1::allocator<unsigned short> >*) in libbase.a(utf_string_conversions.o) base::WideToUTF16(wchar_t const*, unsigned long, std::__1::basic_string<unsigned short, base::string16_internals::string16_char_traits, std::__1::allocator<unsigned short> >*) in libbase.a(utf_string_conversions.o) ld:…
I should point out I'm new to .NET... I have the following appsettings.json file: { "Logging": { "LogLevel": { "Default": "Information", "Microsoft": "Warning", "Microsoft.Hosting.Lifetime": "Information" } }, "ConnectionStrings": { "MyContext": "Host=localhost;Database=test;Username=user;Password=''" } } In the MyContext.cs file I want to…
I want to convert this SQL query to Linq in C#: select count(*), FORMAT (CreatedDate, 'MM') as months, FORMAT (CreatedDate, 'yyyy') as year from ProviderPosts group by FORMAT (CreatedDate, 'MM'), FORMAT (CreatedDate, 'yyyy')
I'm working on an ASP.NET application in Visual Studio 2019 using NET 5.0 and attempting to display database entries using a webgrid that i have named 'grid' but am unable to use 'grid.GetHtml'. Whenever I use it I receive the…
On my site I have a page on /Home/Index This is the index page in my HomeController. To reach this page I have the link: <li class="nav-item"> <a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Index">Home</a> </li> I want to add the same…