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.

0
votes
0answers
11 views

Upload files to amazon s3 bucket assets folder using region mumbai

I am looking for a c# code to upload my files into amazon s3 bucket folder assets. My region is asia pecific mumbai
0
votes
0answers
11 views

Trying to add a parameter to WebActivatorEx.PostApplicationStartMethod

The following code was build using: Asp.net Hangfire AutoMapper C# Entity framework So in my Global.cs file I have the following line at the start: [assembly: WebActivatorEx....
0
votes
0answers
7 views

How to implement notification icon for a website developed using asp.net and angularjs?(Using WCF Service API)

I want to implement a notification icon in my website to show if there is any new notifications. I am using ASP.Net and angular js in front end , wcf web service as API and MS SQL database as back ...
0
votes
0answers
17 views

Upload a pdf file to azure blob using azure function

I am trying to upload a PDF file from postman and trigger the azure function to upload the PDF file into azure blob storage. But when i try to open the PDF file it is always empty. I tried to convert ...
0
votes
0answers
32 views

Error serializing value 'System.String[]' of type 'System.String[].'

This error appears due to this line of code at the aspx page <div class="full-content-note"> <%# Item.FullNoteContents %> </div> because the property FullNoteContents contains ...
-1
votes
0answers
17 views

How to add an image to a website stored on a IIS-Server?

I want to display an image on my website. The image is stored on the host server, inside of a virtual directory. In the virtual directory settings, I see both the physical path, C:\Folder\ImageFolder, ...
0
votes
0answers
9 views

RewriteBase is not supported in IIS

I am converting the rewrite rules from an htaccess file in IIS using the URL Rewriter Module but the following error occurs. This directive was not converted because it is not supported by IIS: ...
0
votes
1answer
32 views

i have 3 textboxes in gridview. When value is entered to first and second textboxes i want automatically write result to third textbox

i have 3 textboxes in gridview. When value is entered to first and second textboxes i want automatically write result to third textbox. this is my gridview: <asp:GridView ID="GridView1" runat="...
-3
votes
1answer
32 views

Cannot get text box value using Jquery on change event After click server side button event?

I get the textbox value using Jquery onchange event and i assigned the value to Hiddenfield like the following code.. $(document).ready(function () { $("#txtSearchZip").change(function () ...
0
votes
0answers
20 views

Request Client IP address and MAC Address

I am using following code to get Client IP address: protected string GetIPAddress() { System.Web.HttpContext context = System.Web.HttpContext.Current; ...
0
votes
0answers
21 views

How to Run Asp.Net application inside simple console application?

I’m writing a large console app, in one moment has appeared requirement to make simple web interface (Login In, design(some front end scripts), file uploading). What I want is make my ASP.Net project ...
0
votes
0answers
21 views

Show PMS Colors in reports

I am absolutely new to programming. I have products in a product table and PMS colors with Hex codes. When I list a product I would like to not only show the name of the color but show the color as a ...
0
votes
0answers
19 views

UseExceptionHandler save context and redirect to controller

I am just curios to know how this below piece of code works. app.UseExceptionHandler("/Home/Error"); public class HomeController : Controller { public IActionResult Error() { // Im able ...
0
votes
0answers
24 views

Cannot read property 'writeHead' of undefined

I have successfully hosted an local .NET server with the url: http://localhost:65349/. Now I want to change the "localhost" to my IP Address such that the Web is still running,however, the 400 HTTP ...
1
vote
1answer
12 views

Resize image on server without download

I have images present on server in asp.net. I want to create their thumbnails by just copying, resizing, renaming and at last saving them on server itself. For compression I have the code but how can ...
0
votes
0answers
30 views

Navigate local folder on server using browser. Somewhat like using file://

I need to create a webservice where you can browse a specific folder (and subfolders) on a drive on the server that runs the service. It needs to be much like browsing a local file using file:// My ...
1
vote
1answer
46 views

Can i cast list to class after filtering on selected string?

I have a list of a class called PlantAndPath (list1) which contains a group of objects of type PlantAndPath with a Plantname and a Path to the specific plant. Then i have another list of strings (...
0
votes
0answers
5 views

Soap Basic realm=“1C:Enterprise 8.3”'.' error

I am trying to integrate a sopa service to my .net project here is their document information. Connect to booking service: http://xxxx/ws/Prices/?wsdl Login: xx Pass: xx I added http://xxxx/ws/...
-2
votes
1answer
16 views

How to Use PostAsync and ReadAsStringAsync in Asp.Net Console Application at the time of request and response for other server?

I create a one Web Service to get token to another server. Another server is created on Node. I use the username and password for credential and grant-type is client_credentials and get token for the ...
-6
votes
0answers
30 views

If we directly close the asp.net application then which event occurs in Global.asax [on hold]

If we directly close the asp.net application then which event occurs in Global.asax Global.asax problem in Asp.net with c# <%@ Application Language="C#" %> <script runat="server"> ...
0
votes
0answers
15 views

how can we create PFX with Microsoft CA on window server? [on hold]

Currently, I am creating pfx with Microsoft CA by creating the request on mmc, but it is totally manual. It is similar with this reference: https://knowledge.digicert.com/solution/SO29005.html I ...
0
votes
0answers
20 views

How to get enum value cast to int (or recognize string value) in .aspx webform

I have a bit of jquery code to hide/show some stuff depending on dropdown value made of enum values. This is how dropdown gets populated: public IList<SelectListItem> DataTypes => new List&...
0
votes
0answers
13 views

Why does SerializeTicket() return token with all scopes that resource allows for client

Using AspNet 4.6.2 to generate access tokens, using any Auth flow (have tried Code Flow, Implicit Flow, Client Credentials Flow), using the AuthenticationTokenCreateContext class from Microsoft.Owin....
0
votes
0answers
17 views

How to disable time in ajax time selector

Please suggest how to hide time slot in ajax TimeSelector. I want to set the time between 9:00 pm to 6:00 am I am already tired by setting EndTime and StartTime to the TimeSelector Here is my time ...
2
votes
1answer
29 views

Asp.net generates a wrong SQL request when GridView.AllowPaging=“true”

Here's the essential code <asp:SqlDataSource runat="server" ID="StuffDataSource" SelectCommand="select employeeID,lastName, firstName, titleOfCourtesy, birthDate, hireDate, address, city, ...
1
vote
1answer
19 views

How to prepare a console application that pushes and pops into a redis queue?

I need to prepare a console application with 3 buttons, one that adds elements to a Redis queue, one that pops elements out of it and one that displays elements in the queue. I am new to C# and Redis. ...
-1
votes
0answers
18 views

Asp.Net Login API for third party websites like (Facebook, Google, Twitter) [on hold]

Have a good day! I am facing problem to create a login api for third party domains / websites, like google/facebook/twitter are providing to login from their platform. I am using Microsoft Asp.Net ...
0
votes
0answers
19 views

Latest Chrome version 75.0.3770.80 update affecting ASP.Net Page Post Back Functionalities

We have asp.net web page. Its normal page with button click event. It was working fine till the latest Google Chrome version 75.0.3770.80 started giving error. When I click the button the page does ...
1
vote
2answers
60 views

“How to Prevent multiple events C#?”

I have textbox control with auto postback = "true" in update panel and there is save button with access key of "Alt + s" when i change something into textbox and without losing focus if user has ...
0
votes
0answers
14 views

Its not Display all detail in get token to Call Simple Web Service in asp.net Console Application?

First I create a simple code for token Request. class for token access class AccessToken { public string access_token { get; set; } public string token_type { get; set; } public long ...
0
votes
0answers
14 views

How to configure SSL in asp.net Core Application with a custom certificate?

i have a hosting packet which includes SSL in it and i'm hosting my own .core 2.2 applciation on that hosting package. I didn't see any article about how to set up that ssl to my .NET core ...
0
votes
1answer
23 views

Azure DevOps how to build project with references to another project in another solution

This is the structure of the first Solution called A: A.Web A.Data A.ClassLibrary A references Solution B which is more like a Class Library. If I am to publish Solution B, I just copy the folder ...
0
votes
0answers
11 views

How is the default event by Enter key defined in HTML Form?

Here is a form inside a dialog box with 2 options to choose before submission. The second option is combined with two TextBox for specifying time. This dialog box is hidden by default, but appears ...
0
votes
1answer
23 views

getting values from two dynamic textboxes in different Panels

I have two dynamic textboxes in different Panels. When I click the button save it saves multiple records on the system. for example: I have two textbox on each panel. On the Panel 1 lets say it has (a,...
1
vote
0answers
18 views

How to add server click for tag <tr> in list view

I have a listview (asp.net webform), I want to add server click function when click on item row of the listview, I tried SelectedIndexChanged but not work, How can I archive it? Private Sub ...
0
votes
0answers
30 views

Displaying employee schedule [on hold]

We currently display our employee schedule in an excel spreadsheet which is about 30 columns with approximately 200 rows. We would like to display on a monitor in a central location. I tried to just ...
0
votes
0answers
16 views

Debugging Code First EFCore SaveChanges with SqlLite: EntityState always Detached

I've worked with EF before so I may be approaching this in the wrong way, but I'm currently stumped. No matter what I do, EntityState will always report as detached and no save will occur. ...
1
vote
1answer
36 views

GetResponse not coming back using HttpWebRequest

Using form contenttype, I am getting stuck at this line: var webresponse = (HttpWebResponse)webrequest.GetResponse(); For the url, you can use any value. Here is the full code: public bool test() ...
0
votes
0answers
18 views

How to show an article's writer in View?

I am trying to build a blog site using Asp.Net MVC. There are a lot of models, but I simplified them in my question. My article model as follow Article class: public class Article { public int ...
0
votes
0answers
8 views

How do I resolve this missing crystal reports assembly?

I inherited a project for a colleague who left and it looks to be some older asp.net code. I installed the Microsoft Report Viewer and the SAP Crystal Reports for Visual Studio and I am still stuck on ...
-1
votes
1answer
21 views

How do you display database data in a form-control dropdown menu?

<div class="form-group" style="padding-top: 15px;"> <label for="emp-ID">&nbsp;&nbsp;Select Group:</label> <select id="select-grp" class="form-control" name="select-...
-2
votes
0answers
18 views

Adding 1 hr to the time when converted [duplicate]

In the code below, I pass a date in string format and expect to convert it to DateTime? format. While I do so, +1 hr is added to it. I want to retain the actual value that I passed , but in DateTime? ...
0
votes
2answers
31 views

How to Dynamically Add Edit/Delete Buttons for each row in a HTML table

I have a SQL table that I'm using to populate a table, and I want to add 'Delete' and 'Edit' Buttons to the row. I have an input textbox corresponding to a column in my sql table, "PartNo". I ...
1
vote
0answers
13 views

How can I get the IP of a client device connected through terminal services?

Problem I need to get the client IP of a user connected through RDP/TS from an ASP site. Sample data The server hosting the site is at 10.1.0.1. The user's machine is connected to a terminal ...
0
votes
0answers
7 views

How To: Display Data from AlaSQL Excel File Import within HTML/ASP Page

I am in the process of working on an internal website that will need to pull data exclusively from static XLSX spreadsheets (updated through automation daily). On this site, I the data will need to be ...
0
votes
0answers
11 views

Batch editing and post back problem in dynamic radgrid

I want to Batch Edit my dynamic RadGridView. Dynamic RadGridView : I have created gridview in PageInit as oppose to defining in markup. The drawback of it is that it creates the gridview on every ...
0
votes
0answers
3 views

ASP .NET Session Cookie Issues in SAML Single Sign-on

I am working on a web project (IIS) targeting .NET 4.0. I am attempting to connect to a third-party using SAML for single sign-on. My product is set up in two iframes - top for the menus, bottom for ...
0
votes
0answers
12 views

Dotnet core React SPA Static Content

I am currently using the dotnet core react Spa solution, I have a need to store and host static content like images and pdf files. How do I host static content in the dotnet core react SPA solution? ...
0
votes
0answers
25 views

.NET Core On-Premises Active Directory Authentication is Missing

I don't have much experience setting up ADFS authentication in the .NET stack so forgive my ignorance if I am missing the obvious: Using Visual Studio 2019, If I go to create a new ASP.NET Web ...
-4
votes
0answers
10 views

How to not include in UI without deleting it in the database?

For Example in this example (https://www.c-sharpcorner.com/UploadFile/rohatash/how-to-display-sql-table-data-in-listbox-in-Asp-Net/ ) what should i do or code for (4 (naresh)(india)(bombay) 7(Martin)(...