skip to Main Content

Label return zero value – Asp.net

I have the following code in ASP.NET but when run the code it returns me 0 value in label lblassest.Text. can anyone tell me where is the problem? C# Code : if (reader.Read()) { decimal price; decimal.TryParse(lblcurrentbtc.Text, out price); decimal…

VIEW QUESTION

Configure all options derived from base option class or interface .NET Core – Asp.net

I have code with variables in appsettings.json file so I register all options in IServiceCollection via configure method: public static void Configure(IServiceCollection services, IConfiguration configuration, bool useHangfire = true) { services .Configure<AuthSettings>(configuration.GetSection(AuthSettings.SectionName)) .Configure<CacheSettings>(configuration.GetSection(CacheSettings.SectionName)) ..... and so on I would like…

VIEW QUESTION
Back To Top
Search