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
0answers
5 views

How i can connect ASP.NET web project that was designed by html toolbox to SQLserver database

I am working on ASP.NET web project and i designed it using html toolbox in visual studio is it right or wrong that i damage ASP.NET toolbox with html toolbox and i want to know how i can connect it ...
1
vote
0answers
10 views

How does.net Core Blazor receive parameters from other pages

How do I receive and use this value。 Learning Blazor. thank you @page "/products/showproduct/{Id}" @inject CmsProductService cmsProductService @code { [Parameter] public string Id { get; ...
0
votes
1answer
13 views

How to convert it to string

My code is getting all the data in my table employee to list, Is it possible to convert it to string? If possible how to convert it to string. Thanks :) public ActionResult Index() { ...
0
votes
0answers
7 views

How to call Eval in asp.net javascript to access variables in code behind in real time

In my code behind I have a public property that is bound to a session variable. How should I control the flow of my document.ready() function based on the value of that property? Please note that ...
0
votes
1answer
12 views

How to serve compiled web service on IIS?

I was given just a folder with an .asmx and previously compiled /bin folder with DLLs. I'm trying to run this web service on my local machine but I'm getting an error. So far I did the following: ...
0
votes
1answer
24 views

The constraint reference 'string' could not be resolved to a type. (netcoreapp3.0)

I have got an error. This is my Startup class. public void ConfigureServices(IServiceCollection services) { services.AddControllers(); } public void Configure(IApplicationBuilder app) { app....
0
votes
0answers
14 views

ASP.NET DataList returns empty with LinkButton in modal popup

So I have a DataList that needs to display a dynamic list of items, with an option for users to remove an item from the list. I have this in a modal popup. Whenever I go to display the popup, the area ...
0
votes
0answers
14 views

ASP.NET .NET 4.5 Application crashes in IIS periodically and I can't figure out the cause

I have a .net 4.5 ASP.NET WebAPI application. Deployed in IIS using 1 worker on an 8gig VM with 4 CPUs. I made changes to it recently (upgraded ServiceStack.Interfaces, ServiceStack.Common, ...
0
votes
0answers
17 views

How to load correctly my css asp.net Visual Basic

Yesterday I was working on my collage project , everything was running smooth so I decided to upload it to github where my partner could acces it.Today I opened the local repo and suddenly my css wasn'...
0
votes
0answers
8 views

How to connect an internal mdf table in ASP.Net

In my ASP.Net application, I have a simple dropdown (Note: this is not an ASP element). <select id="events" name="Events" style="height: 25px;"></select> I was previously populating ...
0
votes
0answers
22 views

Group Repeater content to display parent and children

I have been searching for awhile now, and I have hit a dead end and decided to post here. I have a single table, from which I build a url to open a file. However, I need to nest the links with their ...
-4
votes
0answers
29 views

Como poder crear carpetas en base a los archivos que importe un multifile import y exportar dicho archivo a la carpeta correspondiente en ASP.NET [closed]

Mi consulta apunta a generar un bucle que en base al archivo que se vaya importando en un multifile import pueda generar la carpeta con el nombre de archivo y dejar el archivo en la carpeta creada mas ...
0
votes
2answers
25 views

How to fix the position of a panel

I'm using Asp.net and I have a panel in my master page, I want this panel to be fixed at top of that page. Currently, the code in the page looks like so: <asp:Panel ID="Panel1" runat="server" ...
0
votes
1answer
26 views

Create an aspx page (with content) after pressing a button. ASP.NET C#

Good Morning/Afternoon/Evening. I need to know if it's possible to create a new aspx with content after pressing a button, i managed to create a aspx page after pressing a button but i don't know how ...
0
votes
0answers
24 views

What ASP .NET connection pool managers are available [closed]

We are scaling our back ends (the server code) and running into an issue with the ASP.Net database connection pool management. The issue is each back end is creating its own connection pool per client ...
-1
votes
0answers
10 views

How does React read/write ASP.Net Session state data from back-end code?

I work in a classic ASP.Net & MVC ASP.Net environment. We are looking into implementing React as our front end component to integrate with our backend. We deal a lot with data in the session ...
0
votes
1answer
16 views

Getting error in Asp.net core when implementing TodoList service

I'm following on some tutorial which creates TodoList and uses multiple layer structure to handle different business logic. When I copy code from the book it shows me an error when I fire dotnet run ...
0
votes
0answers
21 views

System.Diagnostics.Process.Start causes error “No application is associated with the specified file for this operation” when deployed

I am new to c# and have created a web form using ASP.NET 4.7.2 and Visual Studio 2019. One of my buttons links to a url using: System.Diagnostics.Process.Start("www.google.com", "_blank"); However, ...
1
vote
0answers
11 views

Launch new web page with System.Diagnostics.Process.Start using the same browser

I am new to c# and have created a web form using ASP.NET 4.7.2. One of my buttons links to a url, but when I am in debug mode and click on that, the new tab is opened in Microsoft Edge, which is the ...
-1
votes
0answers
7 views

How to localize entities labels in asp.net

I want to know how to correctly localize labeling in entities. this works : ViewData["AppName"] = Resources.Common.AppName; those don't work: ViewData["LabelOrders"] = CustomersOrders.Models....
0
votes
1answer
33 views

find current Controller name and action name when user send a request to server

i create a attribute for authorize user . for authorize user i need Controller name and Action name when use send a request to them . for example : this is my action : [HttpPost] [...
0
votes
0answers
18 views

Entity Framework 6.3 Slow Startup

I have a project in ASP.NET (no ASP.NET Core, no ASP.NET MWC) based on .NET Framework 4.5 and now upgraded at Entity Framework 6.3. I noticed that the startup time is over 1 minute. The project have ...
0
votes
1answer
33 views

Allowed Values of field in ASP.NET

Is there any data annotation for the allowed values in ASP.NET MVC Core? Since there is no enum in SQL server I am not able to migrate my class with enum field in it to the database. I want to give ...
0
votes
0answers
18 views

Reading a path from another project in the same server and directory

I have two projects running on the server: Project1 Project2 Urls to my catalogues C:\inetpub\wwwroot\Project1\Folder1\ C:\inetpub\wwwroot\Project2\wwwroot\Folder1\ Project1 - Web Aplication in ...
0
votes
0answers
14 views

Use Visual Studio AppCenter within a ASP.NET core web service?

I wanted to use the Visual Studio AppCenter in my ASP.NET core web service but it seems like it is not supported. When calling AppCenter.Start("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx", typeof(Analytics)...
1
vote
0answers
28 views

ASP.Net MVC Client (.net framework 4.6.2) does not get redirected to after logout

I have a Identity Server 4 implementation in .Net core 3. And I also created 3 clients: Angular, .Net Core MVC (.Net Core 3.0) and .Net framework MVC (.Net framework 4.6.2). The Angular and .Net Core ...
-1
votes
0answers
14 views

Object reference not set to an instance of object aspx page [duplicate]

Label total_space = ((Label)(FormView1.FindControl("total_spaceLabel"))); Label use_space = ((Label)(FormView1.FindControl("used_spaceLabel"))); Label free_space = ((Label)(FormView1.FindControl("...
-1
votes
2answers
31 views

Compiler Error prevents me from Adding Product into Database Asp.net C#

Hello im building a Webshop website and when i press the Submit button to add a new product to the database gives this error, how to change the code so that it doesn't give this error. Here is the ...
0
votes
0answers
11 views

How to block user from uploading .exe (virus or executables, but allow other such as excel, img,pdf) in .aspx [duplicate]

I just noticed that form allow upload any exe file. Is there a way to patch IT? Currently the form allows any format to be uploaded. Which is bad, user can upload missions exe files that can ...
1
vote
0answers
28 views

ASP.NET MVC5 routing/rendering slow

I am facing a rendering/routing performance issue with the following scenario: There's 2x2 Windows Server 2012 machines (2 machines in a testing environment, 2 in production). The web app runs fine ...
0
votes
1answer
34 views

Chart.js - Getting data from database using sql server and asp.net mvc5

I displayed and styled the chart.js and am also using mock data in the array, I just can't get my head around how to populate the data in the chart.js using MVC 5. I have tried lots of different ...
0
votes
0answers
31 views

How to read data from Dynamically created textbox?

I've some label and textbox created dynamically. After user click "Save" button, i need to read all label and textbox in my Panel (panelFields) and get label.text and textbox.text to save it. ...
-1
votes
0answers
11 views

Full Calendar drag and drop for ASP.NET Web forms

I've been trying to use this URL https://fullcalendar.io/docs/external-dragging-demo for drag and drop for aspx but as it uses npm for type script which i cannot run. As i don't require typescript to ...
1
vote
1answer
46 views

Issue deleting ASP.NET Identity in MVC Web Application

So after looking around for guides and tutorials of how can I delete ASP Users, I found the following code to be pretty neat: [HttpPost] [ValidateAntiForgeryToken] public async Task<...
0
votes
1answer
28 views

Necessity of redirection page in PKCE code flow (IdentityServer4)

Working on project using PKCE code flow with IdentityServer4. I found this peace of code in IS4 examples: [HttpPost] [ValidateAntiForgeryToken] public async Task<IActionResult> Login(...
-1
votes
0answers
11 views

How to remove data from cloud in skybiometry [closed]

How to remove data from the cloud in skybiometry because i am using same image for checking the data it gives me an error of INVALID_ARGUMENTS_VALUE - image for specified pid not found so please guide ...
-3
votes
0answers
16 views

Crystal report does not work on mobile browser [closed]

I have website display report and it's work perfectly but when tried to open it using mobile browsers nothing display.
-5
votes
1answer
49 views

how to retring the data from the database and display on webpage using ajax? [closed]

I m performing crud operation using ajax. I m inserting data in the database but I want to get the data and that data update and delete run time but my getdata method does not work?? Emploee.aspx.cs ...
-2
votes
0answers
23 views

Best way to clear the session [closed]

Which is the best way to kill the session: by using session.Clear(), session.Abandon(), session.RemoveAll() or session.Remove("variable")?
0
votes
1answer
47 views

Javascript joining table cells ASP.NET MVC

We're working on a website which has a page that displays a schedule with different schedule items in them, all these items have certain values attributed to them and they're all original/unique. The ...
0
votes
0answers
29 views

Multiple apis from different providers on the same page [closed]

I have a ASP.net 1 page that queries an API provider which works as expected but I want to add APIs from other providers on the same page. How can I achieve this in VB.NET? I have tried: Dim doc As ...
0
votes
1answer
59 views

what actualy new() do with generic method in c# [duplicate]

i was refactoring some code and found method that doing some cashe behavior regardless, i found at the end of method new() my question is what this new do and the most important what are the pros and ...
2
votes
1answer
44 views

Download zip file from webapp

The user of my webapp should be able to download a zip-file with more than 10MB. I have the following code in my controller: [HttpPost] public IActionResult Download(){ Response.Clear(); ...
0
votes
0answers
17 views

Socket Exception on Azure Web app while connecting to Solr API. But Work fine locally

I am trying to connect to Solr, which runs on a VM, from Azure web app against the IP address 13.xx.xxx.xxx:60 to make a post-call which will push multiple documents to Solr. When I try to make the ...
0
votes
0answers
18 views

How do I properly implement Stripe to my ASP.NET MVC application

So far I've managed to setup the Stripe library to the point where I can create test subscriptions but I'm still facing a few issues. For instance, if it returns incomplete in my controller over at ...
2
votes
0answers
41 views

How to pass data over an API web function

I want to build web API with throttle: [ThrottleFilter(RequestLimit: 2, TimeoutInSeconds: 6,ThrottleGroup:"//This one")] [HttpGet] [Route("~/api/allow-more")] public HttpResponseMessage HelloWorld2(...
0
votes
0answers
13 views

Sending WindowsIndentity to a WebService

I'm trying to send a WindowsIdentity to a Web service, but I have a compilation error I don't understand. Here is a minimal reproducible example: The folowing method is on the web service: ...
0
votes
1answer
35 views

asp.net Gridview does not display

I try to bind my list of objects to my datasource. But as I switched from autogeneratecolums to boundfields, the whole grid is not displayed anymore. Is there something I miss to let this work proper? ...
0
votes
0answers
23 views

I can't connect my ASP .NET app from Docker-container to my computer host database with “host.docker.internal:some-port”

I lost amount of time trying to connect my app container with my database Azure Cosmos DB Emulator. I am using loggers object to know where my app break, and I found that the problem is in the ...
0
votes
0answers
19 views

History tracking for DB entries by overriding SaveChangesAsync()

public override async Task<int> SaveChangesAsync(bool acceptAllChangesOnSuccess, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var ...