asp.netcore

  1. B

    Resolved Issue can't mock

    Hello, I have issue with Xunit in .Net core testing. I can't make mocking of my method GetBudgetByUser() it returns 0. I have tried all possible solutions but never found solution and I sit in stuck. [Fact] public async Task GetBudgetsByUser_ReturnsBudgets_WhenBudgetsFound() { // Arrange...
  2. ahmedaziz

    Question Can't make dynamic filter based on Query. Filter on radzen data grid ?

    I work on blazor server side .asp.net core 7 . I face issue I can't return data after filter from list on Radzen data grid First I create radzen data grid on razor page <RadzenDataGrid @ref="myDataGrid" AllowColumnPicking="true" FilterMode="FilterMode.Simple" AllowFiltering="true"...
  3. R

    How to check if the record exists with the same value in the database before insert

    Hello there, In my Blazor Server application, I am inserting a list of data into a database as follows with EF Core 6; public async Task AddStockAsync(List<GameBank> gameBank) { await _oyunPalasContext.GameBanks.AddRangeAsync(gameBank); await _oyunPalasContext.SaveChangesAsync(); } I...
  4. P

    Question Blazor simple demo syntax errors

    Hi colleagues, As cjard has advised me, I'm trying to learn Blazor as web development instead of MVC. I'm following this tutorial, but although I'm copying it literally, I can see a few syntax errors which I can't figure out how to solve in the Page I'm working on. I already added the TodoItem...
  5. ahmedaziz

    Question How to get response details after success login razor page ?

    I work on asp.net razor page Login user name and password . I call Web API validate user name and password . my issue I face it I can't receive data returned after login success JSON data returned from web API after success login username and password { "message": "success"...
  6. ahmedaziz

    when implement session time out i get error on invoke sync method ?

    I working on blazor application server side . i face error when apply session timeout Category: Microsoft.AspNetCore.Components.Server.Circuits.RemoteNavigationManager EventId: 4 SpanId: 7336f0e333159b9e TraceId: 1c34008822a09f63877a1646dd4c58c1 ParentId: 0000000000000000 RequestId...
  7. SaeedP

    Resolved Problem with adding favicon to blazor server

    Hello, I want to insert a link for the site favicon in the layout. C HTML, my link is: <link rel="icon" type="image/x-icon" href="wwwroot/favicon.ico"> but I get this error: But as you can see my favicon is in the wwwroot folder: Do you think what is wrong? regards, Saeed
  8. R

    Weird behavior SaveChangesAsync

    Hello guys, I have this Blazor Server application. I am adding (OnSubmit) records by selecting the game, quantity, and description. The problem is when I add records one after another by clicking the purchase button, the previously added record gets the value of the last added record as you can...
  9. R

    Question Bulk Insert Problem - inserting excel data

    Hi there, In my Blazor Server application, I am trying to insert excel data into a SQL database table. I am getting this error, but couldn't figure out why. Here is the sample excel, I am trying to bulk insert. Here is the table; CREATE TABLE [dbo].[RazerReconciliation]( [PID]...
  10. R

    Question How would you compare an excel with data in the database table?

    Hello friends, I am working on a Blazor Server application. I would like to upload an excel file, consisting of a couple of columns. (ReferenceId-guid, Order Date-datetime, Product Code-string, and Product Description-string) This excel file roughly has 200000 rows of data. I am gonna use...
  11. A

    Question How to save Personal Picture on Database Table aspnetUser on mvc .net core 5 ?

    I working on asp.net core 5 mvc web application , I face issue I can't store Picture User on database table [dbo].[AspNetUsers]. so can you tell me how to store personal picture of user on table [dbo].[AspNetUsers]. I already add new column PictureUser on table [dbo].[AspNetUsers] to store...
  12. R

    Question Dynamic Tab with @key Problem

    Hello friends, I am working on a Blazor Server App, here is the sample data. SET IDENTITY_INSERT [dbo].[OrdersDetail] ON INSERT INTO [dbo].[OrdersDetail] ([Id], [ProductCode], [ProductName], [Quantity], [CostRatio], [UnitCost], [TotalBuyPrice], [TotalSellPrice], [ShippingNumber], [Status]...
  13. SaeedP

    Why I can't see my menu in Blazor?

    Hello, Why I can't see my menu in Blazor? Here is my code: mainLayot: @inherits LayoutComponentBase <PageTitle>BlazorApp1</PageTitle> <div class="page"> <div class="sidebar"> <saeedMenu /> @*<NavMenu/>*@ </div> <main> @*<div class="top-row px-4">...
  14. miladel

    Post ID to Action in modal

    Dear All, I'm almost new to Razor pages and what I need to do is to set a bool value in a database after the user confirms operation on a modal. The table model uses Dapper to query the SQL database. The problem is that, when I click on Close in the table, I can get MotorServiceId in the modal...
  15. sachin Shrestha

    mixing hosting models?

    How To Fix HTTP Error 500.34 - ASP.NET Core does not support mixing hosting models in .Net Core for Smarter Asp Hosting?
  16. S

    Hi, is it possible to make a Blazor application frameless?

    I'm looking to build a toolbar application using Blazor and i was wondering if it would be possible to make the app frameless ( removing the minimize/maximize and close buttons). Can this be done or no? Thanks!
  17. S

    Resolved Hi, ive integrated electron into my asp.netcore application however some of the files are greyed out?

    When integrating electron into my asp.net core application I've noticed that some of the files are greyed out, and whenever I attempt to alter the code in the main.js or index.html file its not saving. Can anyone tell me why this is occurring?
  18. S

    Resolved hook up front end code that was made in electron with backend code made with asp.net core?

    My mentor has asked me to figure out a way to hook up code that was made using electron with another project that was made using asp.net core. This may sound like a stupid question but i was wondering how i would do this? I've never done anything like this before.
  19. sachin Shrestha

    What is Guidline For Vertical Spacing in c# When to do it asp.net actions

    Guidlines for Vertical spacing in c#
  20. S

    Resolved My Visual studio 2019 keeps on crashing when adding a new controller in .net core

    Hi, can anyone think of any possible reason why my visual studio 2019 keeps on crashing? Once i close it down, restart it and attempt to add more attributes to the controller class it freezes and then crashes. This has happened before but I never found the solution to it. Does anyone have an...
Back
Top Bottom