4987 2
how to show custom errors in C# MVC

I would like to show custom errors in my Asp.NET MVC C# application, how can i achieve it?

...
Type
Question
4985 1
how to export data to excel using asp.net boiler plate MVC5?

I want to export data to excel using asp.net boilerplate MVC, How can I achieve it? I want a working demo(if possible)?

thank you very much!

...
Type
Question
4970 3
Access denied when permission of app to my application is denied with Facebook authentication in asp.net core

Hello. 

I have created an app at Facebook developer  is built in asp.net core . I have a client set up to be authorized with that IdentityServer.
Now when i try to access a secure resource on client application, identity server redirects me to my identityserver website. There i try to authenticate via Facebook . After logging in, Facebook  asks for the persmission that my identityserver needs to access . If i allow there, it all works fine .
But the issue arises when i click deny, then Facebook  app redirects to my identity server website with error="access_denied" in querystring and my identityserver website throws exception
regarding that access denied error.

How can I handle that situation given the fact that I do not allow the application to access information at Faceboook? Thanks.

...
Type
Question
4945 1
Return User to login page, if user doesn't "Allow" facebook permissions in ASP.NET Core application

Hi, I have created an app at Facebook developer page and configured that with my Identity server application URL. Identity server4 application is built in asp.net core.

When user enter the website and tries to connect it using his/her Facebook account, then my app created under Facebook developer ask him the permission to allow the app to receive her information like email adress, age, etc, when user cancelled the permission he is redirected to page "Account/Login" I have followed the steps in this link : https://qawithexperts.com/questions/387/access-denied-when-permission-of-app-to-my-application-is-de

...

Type
Question

4941 2
How to bind a dropdownlist to a bootstrap datepicker

Suppose I have a Dropdownlist where the items are coming from database in MVC. Now inside the table from where the Items are coming, there is also a Datetime Field. Those dropdownlist entries are list of employees and entered in a particular date. Now what I want, is, I want to populate that dropdownlist based on another datetimepicker in another view. When I will be selecting a date, the items entered on that day will only be shown in my dropdownlist. How can I do that?

...
Type
Question
4861 1
How to upload file in ASP.NET without using asp file upload control?

I was trying to upload file in asp.net web-forms using File upload control which works fine, considering article example here https://qawithexperts.com/article/asp-net/file-upload-in-aspnet-web-forms-upload-control-example/273

But what if I don't want to use file upload control of web-form, so how can I upload file in asp.net without using the fileupload server control? Basically I would like to use "<input type='file' />"

...
Type
Question
4807 1
How to add, edit & delete data into database using treeview with checkbox in ASP.NET MVC with entity framework.

How to add,Edit and delete data into database using treeview with checkbox in ASP.NET MVC with entity framework.

...
Type
Question
4763 3
Cannot find the check box for enabling SSL in visual studio 2017 (ASP.NET Core project)

Hi, I want to enable SSL for my ASP.NET Core project in Visual studio 2017, but when I'm checking my visual studio project to enable SSL, it looks like this in properties

...

Type
Question
4717 0
Zip-UnZip File in C# (.NET 4.5+ and .NET Core example)
In this article, I have provided working example of how we can zip or unzip using C# with examples in .NET 4.5+ Framework and .NET Core.
Type
Article

Page 24 of 31