Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [asp.net]

ASP.NET is a Microsoft web application development framework that allows programmers to build dynamic web sites, web applications and web services. It is useful to use this tag in conjunction with the project type tag e.g. [asp.net-mvc], [asp.net-webforms], or [asp.net-web-api]. Do NOT use this tag for questions about ASP.NET Core - use [asp.net-core] instead.

Filter by
Sorted by
Tagged with
0
votes
1answer
20 views

How to use ASP.NET and JSON to call C# Code

I am creating a game that I am using ajax and ASP.net to create a two player game. So I am trying to create a couple of buttons for the player to use to "play" a card if it is their turn. I am ...
0
votes
0answers
20 views

DropDown List on web user control is empty after postback

There is a drop down list on the web user control (.ascx). I am binding the DropDown list control on aspx code behind page. I have tried binding it in Load , PreLoad events but its just empty after ...
0
votes
0answers
18 views

How do you append a select with a asp-item tag helper

I have a functionality where I append a select html when a button is clicked using jQuery. I already have a select which uses a asp-item tag helper to fill it with my corresponding model. The platform ...
0
votes
1answer
26 views

Website in web hosting service and DB in local server [on hold]

I have my webapp (ASP.NET) and database (SQL SERVER) on my own server. I plan on moving the website to a web hosting service like GoDaddy but I need to keep the database on my server. Is there a way ...
0
votes
0answers
5 views

Easy way to protect Soap services to a asmx project

Am a newbie at this topic but have to implement security to SOAP services using oasis ws security. I know that there are different ways to apply security with this, such as tokens or credentials but ...
1
vote
2answers
27 views

how does host differentiate MVC request and Web API request

I'm new to asp.net mvc and web api. I'm reading a book which says: ASP.NET MVC uses: System.Web.HttpRequest and Web API Equivalent is System.Net.Http.HttpRequestMessage and below is a picture that ...
0
votes
0answers
7 views

Cannot Host .NET Core 2.2 InProcess Under Default Web Site in IIS with ISAPI Filters

I have a .NET Core app that I'm getting ready to deploy. It is a bare-bones API that serves data, written in .NET Core 2.2. Our current installable product deploys to IIS server and sets up a number ...
0
votes
1answer
13 views

<AuthorizeView Roles=“…”> using my own roles instead of Active Directory groups?

I know the following razor code works for AD groups. <AuthorizeView Roles="AD_Group1, AD_Group2"> </AuthorizeView> However, I will need to grant the permission from a json file. In the ...
0
votes
0answers
11 views

Does Asp.Net Core 3.0 cache views/output differently than version 2.2?

I started noticing an issue in my development setup earlier today, that I've never seen before. I have an Asp.Net Core application with a default route serving a javascript bundle built with webpack. ...
0
votes
0answers
18 views

How to read configuration settings before initializing a Host in ASP .NET Core?

Before initializing the application Host I need to read some settings from the application's configuration to setup some other things. In ASP .NET Core 2.x to read settings before initializing the ...
1
vote
1answer
9 views

How to specify custom URL parameter names?

In an ASP.NET route, I can use the FromUri attribute to indicate that an argument should be taken from the URL parameters of the request. In the case of a complex object, ASP.NET will conveniently ...
0
votes
0answers
29 views

Condition after an item of radio button is checked

Suppose I have web form(asp. Net - c#), and I have to fill some fields, then there is a radio button in which if I check one of its items, the next fields should be filled directly by the same content ...
0
votes
0answers
15 views

How To Get Access and Refresh Token Using Google Api Key instead of Google OAuth

I'm getting access token and refresh token for Google Youtube data api using "OAuth", for this i made a call to google API with my credentials and google returned an authorization code and that code ...
1
vote
3answers
30 views

Is there a general Logging service on Azure?

Maybe SO isn't the right place for this question. If there is a better platform, please let me know and I will post it there. Within a single product/domain, we have multiple Azure-hosted ...
0
votes
3answers
56 views

foreach loop to check if the object ids already exists

In C#, I have one foreach loop. foreach (businfo ibusinfo in lclbbusinfo) { ibusinfo.Updateperson(); } lclbbusinfo -> contains the column member_id and other releavnt columns updateperson() - > ...
0
votes
1answer
16 views

Why does Internet Explorer debugger identify javascript file as text/html when in the code and in iis the type is set as application/javascript?

When setting X-Content-Type-Options to "nosniff", all the javascript files on my website are blocked due to "mime type mismatch". In my code, I have many javascript files which are used in aspx files....
0
votes
1answer
9 views

ADFS SSO - Multiple claims aware application able to redirect to one another

I have an ADFS server authenticating two sites - SiteA and SiteB , both sites working fine when accessed from the browser , but when I try to access SiteB from SiteA or vice versa , I get the ...
0
votes
0answers
14 views

ReportViewer encoding filename when export file, and rename the filename in Firefox

I appreciate your cooperation. I have an error exporting excel files with ReportViewer 11 in aspx VB.NET I'm using ReportViewer to generate reports and present them on an aspx pag, and with the ...
0
votes
0answers
9 views

How to Approve more than one request using nintex workflow using Custom C#

we develop custom web part to display my tasks using Nintex Workflow my tasks appear in list view using C# we want to add checkbox field in list view to check in tasks that i want to approve the ...
-1
votes
1answer
24 views

Should EF entites contains additional fields? [on hold]

I'm using EntityFramework as my DAL, where I have for example entity: public class UserEntity { public int WorkingDays {get;set;} } I'm getting this entity in my services layer by repository, ...
-2
votes
0answers
26 views

C# bitmap.save() not working if deployed in IIS

hi I following this tutorial to take page screenshot and save it into folder. it works fine if I run the web app via VS, but when I deployed it to IIS it doesn't work. here is the code snippet ...
2
votes
0answers
70 views

How to use a .NET Framework controller from a .NET Core project

We have some old controllers in .NET Framework project (4.5.2) and would like to reference them from a .NET Core application (3.0). Is there a way to do this? Referencing controllers from another ....
1
vote
0answers
15 views

SqlDbType does not contain definition for XML issue in .net framework 1.1

When I use below code in my project it gives me error mentioned above. I am using .net framework 1.1. It is working in .net framework 1.1? I searched on google and it's says it supports 1.1 but not ...
0
votes
0answers
22 views

File Uploaded Despite Having Code to Eliminate Same Files ASP.NET

I have a code that accepts file upload, download, delete to the Google Drive. Basically, if it is a same file, then the user is alerted that it is the same file. If it is a new file, it will be ...
0
votes
1answer
17 views

Unable to resolve service for type [DBcontext] while attempting to activate page model

I am currently programming an Asp.Net Project for my A-Level Computing. I'm trying to access my Database Context (UserGameKeyContext) so that I can update it by adding a new record. However, when I ...
0
votes
0answers
26 views

Passing a raw image through ASP.Net Web API

I am having an issue wrapping my head around this one, I have read multiple posts here and I am still utterly confused. What I am needing to do is pass an actual image through a web api I am building ...
2
votes
1answer
21 views

The “Csc” task failed unexpectedly Could not load type System.ValueTuple 3 from assembly mscorlib Version=4.0.0.0,

While building the project in MS Visual studio 2017, it comes up with above error, i tried with restore NuGet packages, and the visuals studio shows this error, please help to resolve it "The "Csc" ...
-2
votes
0answers
31 views

Insert Data from 1 Table to Another based on certain condition

I am maintaining a database of employee leaves. Every employee has 24 Annual Leaves for one year and that employee can avail all or some within a year. If an employee avails less than or equal to 12 ...
0
votes
0answers
30 views

Select query with variable column name not showing data in Grid view for second time

I am making a school lesson plan where on selecting any month, student can see the chapter to be taught in that month. I have 12 columns for 12 months. I am trying to fill data from SQL Server into ...
0
votes
1answer
11 views

Can I share same application files between multiple applications where only web.config is different?

I have multiple applications on the same server where only some sections of web config are different. Since everything else is the same; is it possible to map somehow the aspx and other files and to ...
0
votes
0answers
18 views

Allow API to be used by external applications

I have a Angular 8 + Asp.Core application and added JWT authentication on existing user database I want to share one Api controller for outside access (PHP site),but not to all controllers. How to ...
0
votes
0answers
10 views

Button postback not working in ASP.NET update panel

I have hosted my site on IIS 8.2 I'm trying to submit a form which is in asp:UpdatePanel but my submit button is not working. I'm getting the following javascript error in chrome's debugger console. ...
-1
votes
0answers
23 views

Needs to clear server side sessions in asp.net IIS

In pen testing I received bug where I'm clearing session on client side not on server side. I'm clearing all sessions and cookies using FormsAuthentication. SignOut() Session. Clear() Session. ...
-2
votes
0answers
30 views

How to host my web application in dynamic public ip address

is it possible to host my web application in dynamic ip address over the internet? if yes means how? I have one dedicated windows server. i know, host my web application over the internet is possible ...
-1
votes
1answer
48 views

How do I use DISTINCT inside a MVC view?

I want to list the incoming data once but not work how should I do? public PartialViewResult searchList() { var model = db.search.Distinct().OrderBy(x => x.date).ToList(); ...
0
votes
1answer
16 views

Route to more then one homecontroller

i will explain the scenario: 1º I have in the controller folder like this: -Controller(Main Folder) -HomeController(Main Controller) -HomeBasic1Controller -HomeBasic2Controller -...
0
votes
0answers
11 views

Action on click of confirmation box( ok or cancel) that has been displayed post selection change of radio button in asp.net gridview

I have a asp.net grid view in which i have created a radio button column with three items added(Accept/Reject/ignore).Radiobutton/textbox/dropdowns are created from class say Gridview class file ...
1
vote
1answer
31 views

Update Link Button Not Firing

I am working on building a web application. I am running into the issue of the Update link button not firing. I have tested the connection to my database and the insert statement (although the link ...
2
votes
0answers
50 views

iisexpress.exe: Access violation reading location when calling native code DLL in web app only

I'm calling native code dll (delphi) procedure(parameterless) from asp.net app and getting 'Access violation reading location' exception from iisexpress.exe for that [name].dll. Code works perfectly ...
1
vote
1answer
14 views

Trying to search Active Directory using Ambiguous Name Resolution but it never returns anything

Unable to get it to return any results. Compiles fine and does not error when it is run, but the results are always empty. I have got this working if I restrict it to something like DisplayName or ...
2
votes
2answers
27 views

How to handle Session on each request Asp.net mvc

I have an web application running in mobile application(WebView).When user open the app, mobile app sends me the language info of the telephone through the request. Since the language value comes only ...
1
vote
1answer
41 views

content placeholders pages not showing inside master page

I'a currently working on C# aspx.net project, and all of a sudden the pages that should load inside master page are not shown, it's like "hidden", only master page is showing, i didn't do nothing ...
-1
votes
0answers
9 views

calling SOAP API + WSDL with static website in asp.net

The project I'm holding is asp.net website with static content [aspx files] SOAP WSDL to the web services is provided and it's built with java and I have added a service to the project using "Add ...
-1
votes
0answers
38 views

How do I access the second tuple item from a Key/Value pair dictionary?

I have a Key/value dictionary item in C#. One of the Keys from the dictionary contains a tuple: Item1 and Item2. I want to put only Item2 into a new variable. This is what the dictionary object looks ...
-2
votes
0answers
14 views

How can I add an average to a label from an listview column?

I want to add an average to label named lblAVG the avg must be the rated results from the first column in my ListView1. More data can be added to the listview so it must constantly return the right ...
0
votes
0answers
37 views

Access SignalR Performance Counters in C# .NET Core

I have trouble accessing the SignalR Performance Counters; How can I access the performance counters for SignalR in .NET Core using C#? I've sucessfully installed them via signalr.exe ipc But I ...
2
votes
1answer
14 views

nhibernate, Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect)

When inserting new information, an error occurs. When updating existing information, no problem occurs. There is also no problem when putting the same information into the db without using the code. ...
1
vote
0answers
29 views

Implementing fine-graded permissions in ASP.NET Core 3

I'd like to provide fine-grained permissions for my new ASP.NET Core 3 app. There will be a lot of areas in the application (a couple at start, but every new feature will go with another area to ...
-1
votes
0answers
30 views

How can I store asp.net Identity to Redis using asp.net 4.5

I want store asp.net Identity to Redis using asp.net 4.5 keep entityframework, Microsoft.Identity. Thanks
0
votes
0answers
34 views

SMTP Email Works locally but not on Devops

I have a ASP.Net core project with an Account Controller to handle logins and account functionality for user profiles. In this controller I have a function to handle an email if a user forgets their ...