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.

-1
votes
0answers
12 views

Delete own account ASP.NET

For ASP.NET I want that the user is able to remove he's own account. But can't find on the internet a tutorial or such kind how to do it?
0
votes
0answers
13 views

Remove .g.cs files from solution explorer view

Using core 2.2 Suddenly ever page in my application now has the .g.cs file listed in solution explorer. I have cleaned and built the solution successfully. How can these be idden removed? Why have ...
0
votes
1answer
12 views

Are ASP.NET controller classes instantiated once at startup or every time an endpoint is called?

I'm trying to get a simple client/server application running using ASP.NET and Angular. I've got some functionality working that allows the client to make calls to the server via POST and to have data ...
0
votes
0answers
14 views

How do i parse the key value pair and table data from the amazontextract response?

I am extracting the key value pair and tables using amazontextract using .Net , how do I dynamically extract the data from key value pair and table obtained in the response of analysedocumentrequest?
0
votes
0answers
20 views

How do I prevent a temporary value being assigned when editing a record with EntityFramework?

I've created an Edit page for a record, when saving, I get the following error: The property 'Id' on entity type 'LoadTable' has a temporary value while attempting to change the entity's state to '...
-2
votes
0answers
8 views

Project run okay in Chrome and FireFox but give some styling error in Internet Explorer

A project runs Successfully in Chrome and FireFox but creates some problem in Internet Explore give some Styling problem.
-1
votes
0answers
9 views

How to compiled AdminLTE and ready to use in production for mvc .net framework for visual studio 2017

I already installed AdminLTE_Template_Installer.vsix into my VS 2017, but then how to include it in my project? my project is in .NET Framework MVC. thank u
0
votes
0answers
8 views

Integrating Okta with ASP.NET webforms application

I am trying to connect Okta to ASP.NET web forms application and was successful in doing so but I am unable to fetch user ID i.e. Email ID from the okta. I followed the following link for integrating ...
0
votes
0answers
11 views

Export PdF and Excel OutOfMemoryException

I am trying to export asp.net repeater (Html table) as PDF,Excel using itextsharp ,when the number of rows in the table is less than 20000 it works fine but larger number causes an error (System....
0
votes
0answers
18 views

My Grid doesn't return any data when I type anything in my search bar

So I am trying to Join two tables and search using one search box so that whatever i type into it, it will display whatever criteria fits. But when I run the code and try to type something in it, ...
0
votes
0answers
17 views

WebForms, Angular 7, WebAPI, and IdentityServer 3

I have a website (developed by a third party but I have the source) that uses WebForms and currently authenticates with Forms. I've built an Angular 7 application that is launched from a page in this ...
-1
votes
0answers
18 views

Some bootstrap classes not working after publish asp.net web on IIS locally

I'm developing a web page on ASP.NET Web Forms. When I run it on visual studio, it works fine, but I published my page on IIS locally and the bootstrap class "form-control" is not working. I noticed ...
-1
votes
0answers
12 views

asp.net web form application architecture [on hold]

i made an asp.net web forms application recently and i used aspx.cs and aspx.designer.cs files with SQL server for database. what is the architecture of the application in my case. is it 3 tier or 2 ...
0
votes
0answers
24 views

How to fix 'Unauthorized Error 401', even when logged in?

I'm creating this webpage in Angular with .NET as my backend. Everything was working just fine, but today (all of a sudden) I'm getting Unauthorized errors (401). When I remove my authorization, I'm ...
0
votes
0answers
18 views

Create custom permission level

I'm trying to organize a Document Library in Sharepoint Online in a way that the users cannot upload anything outside a determined folder structure, so they can only upload on the lowest level, ...
0
votes
0answers
9 views

Remove and change quantity in Shoppinf cart Gridview in c# ASP

Not really good in asp. I'm trying out stored procedures. However, with some commands, I can't remove the items from the grid view, or change the quantities. I don't have errors but every time I ...
0
votes
1answer
24 views

How can I validate the value from bool in the view?

In my Controller I have a bool value isInList. List<int> listManager = new List<int>() { 123,3231 }; bool isInList = listManager.Contains(newint); In my view i want to show some data ...
-3
votes
0answers
28 views

Save images into database and to display it [duplicate]

i am doing shopping cart website and want display the images on my website so user can choose and i use SQL server visual studio with asp.net but i really do not know. i want to be able just to save ...
0
votes
1answer
14 views

.val() func returns undefined but no copied id

I'm trying to create a basic calculator using asp.net and jquery. I get to the JQuery function by clicking my Calculate button. I want to use myInt to do other things based on what value I get out of ...
0
votes
2answers
35 views

Cannot get the element in jQuery

I know it is very simple but I didn't get it right. Would someone help me. I need to get the hidden field value but it looks like I didn't get the element. The function is run because the alert box ...
-2
votes
0answers
34 views

What is the block code for MD5 SHA 512 in C#?Where I put it in my website [on hold]

I dont know where I put and used hash function in my web site I want to apply MD5 SHA 512 on my website but I dont know how I can use it ? and where I put in my web site ? what is the code ? any ...
-2
votes
0answers
17 views

How to make 'URL Routering for Ecommerce' [on hold]

I wanna make an structure of my site (testecommerce.com) with this example www.testecommerce.com (the index page, no problem with this) www.testecommerce.com/category1 (must go to the list of ...
0
votes
0answers
13 views

writing xUnit test for asp.net core MVC web application not WEB API application

Need to write the xUnit.net code to test my mvc web application controller actions with return type view (Not the Web API service application.), when I search in the web (google, bing) found only web ...
0
votes
1answer
22 views

Copying a file from one location into a folder in Solutions Explorer using asp.net

I am working on an asp.net project using c# and I need to copy a file from an arbitrary location which is determined by the file upload dialog box. I need to make an exact copy of the file in a ...
-2
votes
3answers
51 views

SqlDataReader only returning first row value why?

I need to return all values in column Test but somehow is only returning the first row value... I tried to add dr2.NextResult(); to the code but it didnt help SqlCommand command = conn....
0
votes
0answers
51 views

Unable to cast object of type 'System.DBNull' to type 'System.Int32' ASP.NET

I'm trying to learn how to develop an API with ASP.NET. Everything is going well until I try to get connect 2 tables between a foreign key. So I read this document to understand how to work with ...
0
votes
0answers
14 views

Microsoft.Reporting rdlc version change causing report to be invisible

We just updated our .rdlc reporting service from version 9.0.0.0 to 15.0.0.0, all the reports worked just fine but the report with 2 pages when I try to pull up it just shows nothing, not even the ...
0
votes
0answers
16 views

Hangfire recurring job says it runs successfully, but the method is never actually called

I have a recurring job set to run every 5 minutes. In the Hangfire dashboard, it says it runs successfully, however the method attached to the job doesn't get fired, and the action it is supposed to ...
0
votes
3answers
32 views

How could an ASP.NET application enforce HTTPS on a per-API basis?

I have a curiosity question re: HTTP and HTTPS and ASP.NET applications. Consider a scenario where a service accepts both HTTP and HTTPS requests for APIs in the same basepath - for instance: http://...
-1
votes
1answer
29 views

javascript function on event

I'm trying to write a web page that include a list that add an item when the something happen in the server side. I have a function with the information in my controller, but I don't understand how to ...
1
vote
1answer
19 views

HttpModule Filter_OnTransformString causes some static files to fail (ie css, js

I have an HttpModule to analysis and monitoring of web sites. In this HttpModule, it makes use of a response filter to to modify response body and insert a fragment of code to load javascript code ...
0
votes
1answer
14 views

ASP.NET Boilerplate Authentication via LDAP over SSL (LDAPS)

I am unable to confirm whether ASP.NET Boilerplate supports authentication using Active Directory's LDAP over SSL protocol. The documentation states that LDAP protocol is supported but there is no ...
0
votes
0answers
11 views

How to fix 'Authentication to host for user using method 'mysql_native_password' failed with message: Reading from the stream has failed.' in .NET

I've created a custom windows service that spools up new jobs (processes, not threads) based on a queue in a mysql table. The 'jobs' are database-intensive applications as well as the service (I'll ...
0
votes
0answers
22 views

How to update field without javascript or without any javascript form

c# wpf has ability to update data with binding, but how to achieve such thing in asp net or asp net core without using any type of javascript very simple example needed I type text in input field and ...
0
votes
0answers
9 views

Can't enable anonymous authentication to Umbraco reserved path

I'm setting up my first site running on shared IIS hosting using Umbraco CMS. I am trying to take advantage of the ReservedPaths setting to have a folder that is not managed by Umbraco. To start, I ...
0
votes
0answers
16 views

Is there a way to, when pressing Enter key, save the data directly on database using slickgrid?

Im trying the slickgrid plugin ! I can red, edit and add data on the db when I press the "save" button. However, I was trying to do the same as excel, where you press the Enter key and it updates on ...
0
votes
1answer
25 views

Getting Response of Type cors on web api .net core

I'm just trying to return a url to a client i already did all configuration of cors policy but the only return i recieve is of type cors, without any signal of the url that i want to return, the ...
-5
votes
1answer
49 views

Count records and select most used - SQL Server & C# [on hold]

I want to create a pie chart with the most common records of my table column. For example: SELECT ERROR FROM MACHINEHISTORY; I want to get something like: ERROR43 = 5 Times ERROR27 = 3 Times ...
0
votes
0answers
13 views

IIS Rewrite Subfolder to New Root Folder

We have a reverse proxy in front of our application and it is having trouble with protected url's vs unprotected (long story that they cannot solve). They've asked us if we can do the following: I ...
0
votes
0answers
31 views

contact form error: failure sending email. I just need to know if my script is bad, I dont think so [duplicate]

I created a contact form. I just need to get the user data from the form and send it to my own email address. I placed my outlook login in the vb code but I keep getting the failure sending email ...
0
votes
0answers
14 views

Execute webpage in another folder from Console Application

I am adding to a console application and I need to export html & reports as pdfs. This functionality has already been created but for the website version (behind a log in). Is there anyway I can ...
0
votes
0answers
26 views

Unable to setup route to invoke controller method

I'm unable to setup a route to my controller method. I always get the following error in the browser: <Error> <Message> No HTTP resource was found that matches the request URI 'http://...
0
votes
0answers
8 views

how to pass session value from ajax tab panel to another tab panel

how to pass session value from ajax tab panel to another tab panel Session["_accessUserID"] = txt_emp_id.Text; //store session from textbox if (Session["_accessUserID"] == null) { Session["...
0
votes
0answers
8 views

How can I check the Trust level of 3rd party apps in an asp.net project

I've been trying to deploy my mvc5 project. However I was getting an error telling me that SecurityException thrown on deployment after I made some search on the net I've found some articles ...
0
votes
2answers
19 views

Get selected value from asp SharePoint DropDownList of custom class type

I am writing a SharePoint app. There I have page with drop down list. I have a handler for SelectedIndexChanged. I want to get the selected value but as CustomObject and the only option I see is ...
-1
votes
0answers
10 views

Asp.net Application not working on on 2016 server with SSL certificate but i will run on 2003 server with no SSL certificate

When we are deploying our asp.net application on 2016 server with SSL certificate, it will run default page only but whenever click on other link it gives Object reference not set to an instance of an ...
0
votes
0answers
16 views

How to get data (like values in table) from website after it runs JavaScript (when that table loads with js) in c#?

I need to get a value from table, which is visible after JavaScript. My program needs to login to this website (SOLVED) and then it needs to get data from table https://imgur.com/a/uCYXK18 "data ...
0
votes
0answers
27 views

Deploying ASPNet core on IIS not working at all

I have published an ASP.NET Core application on IIS that won't work. I followed these steps/tutorial: https://stackify.com/how-to-deploy-asp-net-core-to-iis/ and http://resolved-error.com/a/646386/...
1
vote
0answers
18 views

Why does using a share mapped in a static method fail?

I've run into a strange phenomenon. I managed to solve it, but still I'm wondering about the reason as its counterintuitive for me. In short: In a page load method I used a static method from another ...
0
votes
0answers
11 views

PDF/TIFF Document Text Detection gcsDestinationBucketName

I'm working on Pdf to text file conversion using google cloud vision api. I got an initial code help through there side, image to text conversion working fine with json key which i got through ...

http://mssss.yulina-kosm.ru