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
19 views

Html button not firing code in behind event

I am trying to get a simple form to post to my sql database, but nothing is happening when i click on it. I have tried runat="Server, onclick, onserverclick tags but nothing is happening. I am new to ...
0
votes
1answer
35 views

How do I properly handle a large background task in ASP.net Core 3?

This is a ASP.net Core 3 MVC application. I am trying to extract an XML from a zipped file. I then need to parse that XML document and turn it into entities based on the the internal data. These XML ...
0
votes
1answer
26 views

Problem with extension method with asp.net web form page code behind

i am creating an extension method to check null datarow with c#, i am trying to use the extension method in my asp.net web form code behind but giving me that the method IsEmpty doesnot in the ...
-1
votes
0answers
14 views

How do I change VS19 path to IIS Express?

How do I change default path of Visual Studio 19 for IIS Express? I'm getting error : "An error occurred launching IIS Express. Unable to launch configured Visual Studio Development Web Server. ...
0
votes
1answer
35 views

ConnectionStrings not working when I publish solution

When I publish my project I get this error: System.Data.SqlClient.SqlException (0x80131904): Login failed for user 'serverusername'. at System.Data.SqlClient.SqlInternalConnectionTds..ctor(...
0
votes
2answers
27 views

C# retry logic While loop [duplicate]

I'm having a little trouble finishing up my retry logic code. However, I can't figure the missing part. How do I catch and log when it fails and make it retry again with a timer. Heres my code. ...
0
votes
0answers
12 views

IIS URL Rewriting with Routing for Subdomains and Optional Parameters in ASP.Net 4.5 Webforms

I am trying to combine IIS URL Rewriting with routing in an ASP.Net 4.5 webforms site for subdomains and sub-directories. I am trying to combine URL Rewriting in IIS with Routing in ASP.Net 4.5 for a ...
0
votes
0answers
9 views

How to fix “Set DOTNET_USER_SECRETS_FALLBACK_DIR” error when using docker compose?

I am using docker-compose to run my asp.net api application. When I use the command "docker-compose up" I receive the error: Could not determine an appropriate location for storing user secrets. Set ...
-4
votes
0answers
35 views

How to use string.Format to create an incremental value? [on hold]

How can I do with string.format the following: I have a string 000001 and I want to increase 000002 and so on with that format. Also, when it goes past 10, 000012 is set, I think you can do Format....
1
vote
1answer
44 views

Creating nested JSON with data from SQLDataReader

I am new to .NET and trying to achieve what shape-json does in the Node world. Copied from the shape-json npm page: Given the following array of objects: var input = [ {pid: 1, contributor: '...
0
votes
2answers
15 views

Modifying Eval(“data”) as it populates to the gridview

I'm tasked with changing an older website and adding functionality of a third party API. For this API to work, some data from the database must be modified based on certain conditions. The code is as ...
0
votes
0answers
33 views

How to pass accents characters to REST APIs in post methods

I need to pass my request body to a post method of Web API and in request body have some special characters like ã Below is the request body : { "query": "den", "city": "São Paulo", "country"...
0
votes
0answers
17 views

Compilation Error: C:\Users\mhomes\AppData\Local\Temp\8\Temporary ASP.NET Files\ Line: 90

I have researched this and found a bunch of random suggestions for fixing the problem. Anyone have a solid solution or explanation on how to fix this issue? I get it on every page I try to load except ...
0
votes
1answer
12 views

Adding server side code in single page application

I have a single page application, in .net 4 but created from empty web application (Application web ASP.NET .NET Framework -> empty project). I want to add a simple value to the index.html from server ...
-1
votes
0answers
14 views

Page tracking views with JavaScript or Asp.net C#

I am looking for any way to run a page tracking as StackOverflow does with its questions, is there anyway, plugin or method which I can use? I am not sure if I am in the right place to ask this. ...
0
votes
0answers
29 views

I'm new using Knockout js, I try to show a list and I get the following error

Uncaught ReferenceError: Unable to process binding "foreach: function(){return lista }" ----------Codigo---------------- $(function () { ko.applyBindings(modelView); modelView.viewCourses(); ...
0
votes
0answers
15 views

AuthorizeWebFormAttribute will not fired when refresh the page (.NET webform)

I have some problem with authorization for a webform: I have this on the namespace level of the webform [AuthorizeWebForm("admin")] and a class public class AuthorizeWebFormAttribute : System....
0
votes
0answers
24 views

Object reference not set to an instance of an object : Upon calling controller B's method that has session , from controller A

I noticed that if I have a session variable inside a method in a Controller , say Controller B and I call it from controller A. I get the following error: System.NullReferenceException: 'Object ...
0
votes
0answers
30 views

ASP.NET (C#) How to set/update input value of dynamically/runtime generated inputs?

I hope someone has an idea: Short version: In ASP.NET (C#), how can I set/update a input value of a input element, which was created on runtime (via C# or JS)? Long version: I use a MasterPage Site ...
-1
votes
0answers
13 views

What tool can I use to digitally sign a pdf locally in the browser then save it back to the server using ASP.NET MVC? [on hold]

I am working on a project for users to digitally sign a pdf document. The process I am trying to accomplish is as follows: User navigates to a web application (ASP.NET MVC). A pdf is pulled from a ...
0
votes
1answer
20 views

Allowed downgrade from v4.8 to v4.5.1

I have net v4.8 (Visual Studio 2019 and Win10). I'm unsure if I am allowed downgrade from v4.8 to v4.5.1?
0
votes
1answer
18 views

How to return image without downloading Azure Blob Storage

I have some images in blob storage and I want to get this image through url publica. However when passing the url in the browser the image is downloaded and not opened. For example: https://account....
0
votes
1answer
25 views

How to create toggle switches with unique ID within for each?

I have a table that has it's body generated through a foreach statement. I want to add a toggle per row; however, I do not know how to dynamically generate unique Id's or if it's possible. If there is ...
0
votes
0answers
11 views

Why do my html pages load but not my cshtml pages?

I'm trying to host my web application in service fabric, but my pages won't load. I've determined it has something to do with my razor initialization. When I place an html file in the views folder, ...
0
votes
0answers
14 views

Can I use up-to-date NuGet packages on a Plesk ASP.NET site?

Update: I "solved" this problem by manually setting Newtonsoft.Json to 6.0.8 and WebGrease to 1.3.0. Whatever the issue is, it seems to dislike requests for newer versions. I'm not happy with this and ...
-1
votes
0answers
7 views

How to client side registration in asp.net core mvc?

I implementing a simple login and registration in client side. In asp.net core mvc applying the coding first approach but how to register a user and inserted a record in database?? Startup.Cs ...
0
votes
3answers
35 views

What to return for strongly typed result including errors in a HttpGet? ActionResult<T> where T is FileContentResult doesn't work

I'm trying to return an image and in some cases error codes. At first I tried to return Task<FileContentResult>, which works when I have something to return. But if I want to e.g. return ...
-3
votes
0answers
63 views

Splitting a list with duplicates into multiple list with fixed length with no duplicates in C# [on hold]

I would like to split a list with duplicates into multiple list with fixed length with no duplicates. For Example: From: ['a', 'a', 'b', 'b', 'c', 'c', 'd', 'e'] To: ['a', 'b', 'c', 'd'] ['a', 'b', ...
0
votes
1answer
29 views

Generating ZIP files in azure blob storage

What is the best method to zip large files present in AZ blob storage and download them to the user in an archive file (zip/rar) does using azure batch can help ? currently we implement this functions ...
1
vote
2answers
45 views

Get Data From two Lists conditionally using LINQ Entity Framework

I have two Lists: using (DBEntities context = new DBEntities()) { var userInfoList = context.UsersInfoes.ToList(); var membersList = context.Members.ToList(); } These two list are ...
-5
votes
0answers
25 views

Whats the fastest way to convert a .net Desktop application into a web application? [on hold]

I have checked the web and know that there is no automatic way to convert a .net Desktop application into a web one. However, even with manual methods, can somebody inform the fastest way to achieve ...
0
votes
0answers
16 views

Can anyone help point me in the direction of some code examples for MSAL token serialisation in full .net [on hold]

I am trying to find a good example of a MSAL token serialisation using dot net framework with EF6? I have been searching for a long time and all the examples that MS seam to provide are using .net ...
-1
votes
0answers
16 views

Create DOCX file with support for RTL (hebrew, arabic) using C# .NET

In the last several weeks i have figured that DOCX (XCEED) component does not support Hebrew really good, if i write something in Hebrew (Or Arabic) and need dot or colon at the end of the line, they ...
0
votes
0answers
22 views

Edit specific columns of DetailsView using DataSource

I have employee details of each employee. When user selects edit profile, detailsview shows all his details. Now I want to be able to edit only specific columns like Mobile,Email and Address. I have ...
0
votes
0answers
10 views

How to add Telerik RadMultiColumnComboBox Column collection from codebehind.?

I have a simple RadMultiColumnComboBox in my aspx page with tag <telerik:RadMultiColumnComboBox ID="RadMultiColumnComboBox1" RenderMode="Lightweight" runat="server" Filter="StartsWith" ...
0
votes
1answer
37 views

C# Web API Nested JSON from Stored Procedure in MSSQL

Overview: I'm building an API using ASP.NET Web API 2. I'm building Stored Procedures in SQL and linking these in the API to serve data. I know that SQL can return JSON using FOR JSON AUTO, for ...
0
votes
0answers
10 views

Accessing masterpage label from contentpage button in asp.net [duplicate]

I want to access a "label" in the master page by clicking a "button" in the content page...when IAM trying to write a code in button click event in content page , the id of "label" in masterpage is ...
0
votes
1answer
13 views

Title :post data as application/x-www-form-urlencoded in asp.net core

I'm building an API for my project and I want to encode and Post the parameters in the URL (not as Json) to other server. I used to use WebRequest in standard .Net versions but now I'm using Asp.Net ...
-1
votes
0answers
25 views

How to find asp:repeater items based on TextBox Text

I am fetching asp:repeater data based on a dropdown selected item from the database. Like this: Now whenever I start to type "username" in text box the asp:repeater items should start to update. The ...
1
vote
0answers
18 views

Access is denied when start/stop Windows Service with ASP

I wrote an ASP.NET Web Application that shows all installed services for our product. My application can retrieve the state of service (running, stopped,...). Additionally, my application should be ...
1
vote
1answer
30 views

inheritance error while using polymorphic object creation

I have a FootWearItem class and a CartItem class, both of which inherit from ProductItem class. I also have a ShoppingCart class which holds a list containing CartItems. I am testing the classes out ...
1
vote
0answers
33 views

Why is this MySQL insert query not working?

I have the following MySQL query which I am trying to execute in ASP.NET: INSERT INTO LUIPPS (IPPID, IPPNAME, IPPEMAIL) VALUES ('2', 'AC DC', '[email protected],[email protected],[email protected]') I am ...
-1
votes
0answers
18 views

ASP.Net Web API identity user creation is not working when hosted on server

I have created a asp.net web api using single user authentication (option) I wanted to register an user by calling the http://localhost:51467/api/Account/Register and passing the required paramters ...
-1
votes
0answers
18 views

Retrieve user accounts information (to check if the account is admin) on remote computers

We have a domain where users frequently added and deleted. Have to verify if the user is a part of Local admin in all the machines within the domain/environment. Say example, in a domain/environment ...
-1
votes
1answer
14 views

Complete installation of web aplication with data base and IIS

I have web form aplication in asp.net and i have to create (has to be easy to install)complex instalator, witch will install IIS server, deploy the app to it create a local database and sets ...
0
votes
1answer
45 views

Cannot implicitly convert type 'System.Web.Http.Results.BadRequestErrorMessageResult' to 'System.Net.Http.HttpResponseMessage'

I have created a webapi get method to return images with a blob storage URL. But I need to handle exceptions as well, how should I do it in this case? I get an error in the last line of the catch [...
0
votes
0answers
28 views

Owl Carousel not working with ASP.NET Blazor

I have been trying to make this owl carousel work. I am not getting any error but the carousel if not loading. I tried the solution I found on StackOverflow for Bootstrap carousel but it did not work ...
0
votes
0answers
8 views

iCal recurrence pattern not working Outlook 2016

I am developing application with ASP.Net and sending iCal.ics file in Outlook 2016. I am also using recurrence pattern. It appears to be working with all options(Daily, Weekly,Monthly and Yearly) but ...
0
votes
1answer
13 views

Datatable generate diffrent column wiht original columns

I'm using datatable v1.10.13 and asp.net web app. I'm trying to load data with ajax, but I have a problem in one of my forms, when I generate data that not match in columns and I get an error as ...
-1
votes
0answers
8 views

HTML5 tags remove by Rich Text Box in UmbracoCMS

How to fix, HTML5 tags automatically remove by Rich Text Box in UmbracoCMS. Can anyone help me? Thanks in advance.