Blazor - how to apply attribute to parent element from a component
I have the following cshtml page:@inheritsBlazorLayoutComponent<NavMenuToggleComponent></NavMenuToggleComponent><div class="main"><div class="top-row px-4"><a...
View ArticleHow to use same form or page for insert and update . it edit but cannot insert ?
problemHow to use same form or page for insert and update . it edit but cannot insert ?I have component name employees used for edit record i need to use it for insert but cannot do that .it load data...
View ArticleUploading asp.net core 2.1 site to 1&1 shared hosting (windows hosting)
I have recently been playing around with asp.net core. I have built a site and have uploaded all the project files to my hosting account via FTP using FileZilla. When I then try to access the site I...
View ArticleUserPrincipal has no way to set 'PhysicalDeliveryOfficeName' attribute
I am using UserPrincipal to create a new user in AD, however I cannot set the 'office' field. This is an application using asp.net core 2.2I believe it should be called 'PhysicalDeliveryOfficeName',...
View ArticleHelp with authentication
HiI am looking to move over to .net core with EF core and angualr, and I am looking to implement authentication.My current MVC project uses identity.I have watch the pluralsight tutorials and read a...
View ArticleCulture cookie does not change the culture in browsers other than Firefox
Hi,Thanks to Sherry Chen's help in this thread I've managed to get my page changing culture based on the cookie the user has set. At least I thought so as I checked this only in Firefox browser. Having...
View ArticleASP.NET Core - softwares required
Hi,I have a windows server 2016.What are the software and version required to work with ASP.NET Core ? what version of Visual studio , edition and framework is required to be installed on the server ?...
View ArticleStore data in masterdb as string or id of detail table?
Hi all,Here is the situation,Lets say I need to store State and Country data in a DB.As you know I can store it as String as is, like (California /USA) or I can store it as States's Table ID and...
View ArticleHow should I keep UserId (in a hidden input or as session value)
Hi all,In a SPA I need to use UserID to save related data.I use <input id="UserId" hidden value="@Model.Id" /> this technique to get it.But what about havving a session and keep the UserId...
View ArticleGenerate a success/failure message in Razor page
I want to return a razor page after a POST with a success popup (or maybe layout message, but I think a popup would be better). I am getting confused as many solutions I have found are designed to work...
View ArticleExport Database Data In Excel File
hi i was building web application that connect to Database and this is my code [HttpPost] public IActionResult Index(int AccountID,DateTime StartDate, DateTime EndDate,string ReportNO) { var UserName =...
View ArticleHow to stop form resending data on refresh
Hi all,How can I stop form resending data on refresh?
View ArticleInjecting services indiviually help
HiI have a lot of services which i need to inject, I don't want to have to go through them individually, is there a better way to add them in bulk?(eg in my MVC5project i do something...
View ArticleAre this function written correct on web API or not ?
ProblemAre this function written correct on web API or not ?I write function return scalar value as string but i dont know are this correct or not ?this function get data of label text control from...
View ArticleMoving over to angular, model validation in the UI
HiI am moving over to angular , from mvc 5, and I have notice that very few of the examples use model binding on the UI for error messages, and unobtrusive validation.Is model binding still considered...
View Articlesecond page not reached on IIS
On IIS Express my application calls from a table like this <td><a href="/PageX?nata=@Html.DisplayFor(modelItem => item.theKey)" class="btn btn-info" and so forth ....But when I published...
View ArticleClient Validation Error With Input Fields Containing Currency Values
I'm developing a web app using Asp.Net Core 2.1 and Code First.I've got a bunch of properties of type decimal and decorated them with the following attribute: [DisplayFormat(DataFormatString =...
View ArticleDeploying ASP.NET Core 2.2 onto an IIS Server - Debugging and advice.
I deployed my test website onto a local IIS server by publishing it to a folder and making sure I had 'Windows Authentication' selected.The page loads but my Authorisation policies are not working and...
View ArticleDotnet Core calling a soap service issue
I have a dotnet core 2.0 app which makes some calls out to some 3rd party soap services. The web references have been added to the project using a wsdl and connected services. Everything works fine but...
View ArticleAngular, in memory HTTP
Hello everybody,Is this the correct forum for a question about Angular ?I am going through https://angular.io/tutorial/toh-pt6 (the HTTP section of the tutorial) and at a moment they say to introduce...
View Article