Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
1 answer
311 views

DateTime dt = DateTime.Parse(dataReader["Date"].ToString()); I am using this command to read the data from the database but the output dt will be like this /Date(1655788824000)/. Any ...
Jithin's user avatar
  • 1
0 votes
0 answers
116 views

I try to preview image using baguetteBox.run when clicking an image. The problems are, whenever I click image src inside foreach binding. It redirect to new File src page (File: C/(file url) instead ...
whatISboolean's user avatar
0 votes
1 answer
818 views

I'm trying to generate pdf,but after like the 5th page header and footer display http error 400-bad request-request header to long. is there anyway to solve this problem? a response header can look ...
Stefan Fernström's user avatar
0 votes
1 answer
273 views

My code are below @using (Html.BeginForm("PostUsingParameters", "loopW")) { <input type="text" name="num" /><br /> <input type="...
atikom jaengdee's user avatar
0 votes
1 answer
584 views

In my web application, I have added a dropdownlist for the nav bar. There I want to load some data from the database. So in the Home Controller, I have used a view bag option. ViewBag.MyBranch_Id = ...
Dev Beginner 's user avatar
1 vote
2 answers
347 views

I have a WCF client that has been instantiated via its interface on my MVC 4 project controller like this: private readonly ILMS_Service lms_client; public ProductsController(ILMS_Service client) { ...
jdistro07's user avatar
  • 167
0 votes
1 answer
447 views

I have created a session for User Login as: [HttpPost] public ActionResult Index(UserLogin lc) { string mainconn = ConfigurationManager.ConnectionStrings["DBConnection"].ConnectionString;...
NewbieLearner's user avatar
0 votes
1 answer
238 views

When any page on my site built in MVC has 2 trailing dots the page crashes and the user receives a 403 forbidden error. Example: This url will load correctly: https://www.example.com/folder/ When ...
Brian Salta's user avatar
  • 1,574
0 votes
1 answer
783 views

I am using QuickStart UI for Identity Server to login users from multiple mvc clients. The users then have the ability to switch their role based on a dropdown using userManager.AddToRoleAsync(...
Gil León's user avatar
0 votes
1 answer
136 views

I am following a Udemy course. I am getting the error in the title and I also took a screenshot of the error. Unable to create an object of type 'AppDbcontext'. For the different patterns supported at ...
Abdifatah's user avatar
1 vote
0 answers
628 views

Currently using: Serilog 2.11.0 Serilog.Sinks.File 5.0.0 Serilog.Sinks.RollingFile 3.3.0 With the following logger configuration: _logger = new LoggerConfiguration() ....
seanrco's user avatar
  • 1,091
0 votes
2 answers
855 views

For my past Asp.NET MVC projects I have used the Code First approach to create my web applications. Here I got a new one, there is an old system with an already created SQL Server Database. I need to ...
Dev Beginner 's user avatar
1 vote
1 answer
1k views

Currently, events are created on the outlook calendar from my portal now I want to apply colors when I create events using graph API https://graph.microsoft.com/v1.0/me/calendar/events I also follow ...
World News's user avatar
2 votes
2 answers
7k views

Is there Better way to check if a string is empty or null using Null Coalescing operator .When I use empty value to a string instead of null the null Coalescing operator failed to get me the desired ...
jubi's user avatar
  • 645
1 vote
1 answer
784 views

I think my question is a bit off. I read Google Mailbox via MailKit Thanks to this Answer. I want to read a mailbox with a search filter from-date to end-date. E.g I want to read emails for June 2020 ...
Abdul Haseeb's user avatar
0 votes
2 answers
1k views

i need help. I want to update image in Edit page, but just when it is necessary. the problem is whenever i do an edit i have to upload the image again. i want to keep the old image if i do not want to ...
Yassine's user avatar
  • 19
0 votes
1 answer
1k views

I am using IIS and have a webforms website with a C# backend, that I am trying to make more secure. I started to add security headers and upon doing so noticed that a certain page kept receiving a &...
jtslugmaster08's user avatar
2 votes
1 answer
802 views

I am working on an old ASP.NET MVC 4 website running on .NET v4.6.1 that I cannot change and I am calling a web api2 using HttpClient. As you know, the call requires is an async call, however ...
developer9969's user avatar
0 votes
2 answers
507 views

I was following the "Create a secure ASP.NET MVC 5 web app with log in, email confirmation and password reset (C#)" from Microsoft I had a hard time setting up the SendGrid Api since i am ...
Anheru Desu's user avatar
-1 votes
1 answer
147 views

I'm having trouble trying to edit my product. Before it was working but it wasn't saving. Now it's no longer saving, let alone editing. I've tried everything, but I can't succeed. I have 2 models of ...
VICTOR MARCONI SANTOS DE OLIVE's user avatar
0 votes
1 answer
1k views

I've been away from ASP.NET MVC for a while so forgotten some of the basics. I have scoured SO for an answer, but none really seem to apply/work so this may seem like a duplicate question but it's ...
Patrick Hume's user avatar
  • 2,224
0 votes
1 answer
1k views

I have an asp.net 4.8 web application, it is hybrid webforms/mvc. I am moving it from forms authentication to OpenIdconnect authentication using Owin. I have a Startup.cs class with the usual "...
Tom Regan's user avatar
  • 3,871
1 vote
1 answer
714 views

I am trying to display a dropdown list in my View and I am able to generate the list items in the dropdown list and once an item is selected, I am trying to gather the details of the selected item and ...
Ron's user avatar
  • 1,941
0 votes
1 answer
208 views

I'm new to ASP.NET MVC and using C# to create a project. The file structure looks like the image below. Now I am confused about the structure of the project. For each model, I have a controller and a ...
Mazia's user avatar
  • 63
1 vote
2 answers
141 views

I am following Entity framework code first approach. I have following property in one of my models. I want to validate comma separated emails by this regular expression. But it is not working fine. Ex:...
Thishan Dharmakeerthi's user avatar