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

Setting .NET Website on IIS Server in Windows 2016 Environment

ImageI am setting up my web application (working) in the Windows Server 2016 Environment which has the IIS role set up . I tried running my application and it gives me "The page you are requesting ...
0
votes
0answers
6 views

How to run a client side script when PayPal API V2 onApproval is completed

This is my current paypal script <script language="javascript" type="text/javascript"> function populatePayPalButtons() { paypal.Buttons({ createOrder: function(data, actions) { ...
0
votes
0answers
10 views

How to get and equals the the Identity ID and show in a view(input)?

I use Identity's authentication system. I need to obtain and match with the id, since, I need to create a record with the email of the user entered in the system. public ActionResult Create() {...
-1
votes
0answers
24 views

Implementing web based customer care chat in C# [on hold]

Let me start by saying this is my class project. I am not looking for someone to do my homework but looking for guidance to do it proper way. I am starting a project to create customer service chat ...
0
votes
1answer
8 views

How to create new migration on vs code in N-Tier project

I wanna create migration on my N-Tier project on VS Code, but when I select my Data project and run the command, I get a error below. Can you help me? System.MissingMethodException: No parameterless ...
0
votes
0answers
14 views

How to get actual value from stored procedure on Gridview instead of “System.Data.DataSet”?

I have a table called Reviews in my Database and there are ratings for FoodQuality, ServiceRating, AtmosphereRating, & PriceRating. I am binding the data to my Gridview and trying to get the ...
0
votes
0answers
8 views

Can't Access server resource, Authorization Header Sent?

I am not able to access protected resources on web api e.g. [Authorize] using OAuth/OWIN ... What I am able to do: 1. generate bearer token 2. send bearer token (from Axios) 3. I've tried this ...
0
votes
0answers
28 views

How do I reference a Web API in another project?

Many moons ago I wrote a .NET Web API. Now I want to reference it in a new project I'm working on and I can't remember how to do it properly. A quick link to some reference material would be greatly ...
0
votes
0answers
30 views

End Class must be preceded by a matching 'Class' error in my Vb.Net application [on hold]

After doing some coding to one of my Web Forms I noticed that there is something wrong. Each end sub in the page has a squiggly blue line under it and it shows that 'End Class must be proceeded by a ...
-1
votes
0answers
20 views

Is there any way to pass on the object of model to controller but not mix it with other attributes of view?

I am passing an object of model in controller via view, but I have some fields in the view that are not directly related to the model. So the model keeps getting invalidated.
0
votes
0answers
13 views

IIS worker process is getting crashed

Application: ASP.NET, C# Framework: 4.6.2 Authentication mode:- Windows Authentication-Allow. Platform:64-bit Server: Win-2012 IIS:8.5 Is being migrated to Azure platform. In testing phase - automated ...
1
vote
1answer
29 views

An invalid request URI was provided. (No helpful info in the stack trace)

Pulling my hair out here. All was working fine, and then out of the blue, I started to get some errors around Microsoft.Owin.Security. Following some tips on this site, I un-installed that package and ...
0
votes
1answer
6 views

Can't set Telerik RadTextBox (v2013.3.1324.40) border and background color set consistently

I have 3 radtextboxes used in a user control...depending on the state the iputs are enbaled or disabled. During the disabled state I want to style them to look like labels. I can accomplish that for ...
1
vote
1answer
57 views

Input string was not in a correct format. Visual Studio 2017

protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName =="Accept") { int rowIndex = Convert.ToInt32(e.CommandArgument); GridViewRow ...
1
vote
1answer
21 views

OWIN Middleware not able to set http status code

I am running WebAPI with just one Middleware and not able to set response HTTP status code. I am using OnSendingHeaders() and able to add headers and set response body, but status code is not ...
0
votes
0answers
26 views

Passing common data into the _Layout.cshtml in ASP.Net MVC

In an ASP.Net MVC Application, I'm trying to generate a top navigation bar from the database table. I follow the Database first approach. using EntityFramework My scenario as follows : I have 3 ...
1
vote
0answers
31 views

Disappearing of page elements on clicking a button [duplicate]

I'm having a problem of disappearing of all the elements and stuff on the page. I'm using C# and ASP.net When I click on the button, all things, and elements that have been added dynamically in the ...
0
votes
3answers
30 views

The name 'Program' does not exist in the current context in ASP.net core

I'm trying to make a simple test so I can practice. I don't know what I'm doing wrong, but I get The name 'Program' does not exist in the current context [/dir/unitTestTest/unitTestTest.csproj] And ...
1
vote
0answers
16 views

How to call secured azure function from asp.net webforms?

I have written a simple Azure function.. To secure Azure function, I executed steps mentioned in this article. Now from ASP.NET WebForms, I am trying to call my Azure Function API. Following is the ...
0
votes
1answer
30 views

How ASP.NET Session.Timeout Works

What happens if a timeout is set to 20 minutes, and the user clicks on a button at minute 19. Do they get another 20 minutes?
1
vote
1answer
23 views

Access ASHX from URL without .ashx extension

I have a Web handler in an ASP.Net project. I want to access it from the URL. Yes, I can do it like http://mywebsite.com/handler.ashx?id=35157 It works fine. But the problem is, I'm accessing it ...
0
votes
0answers
11 views

Batching to Event Hubs from an ASP .NET Application

I have an array of websites that (asynchronously) send event analytics into an ASP.NET website, which then should send the events into an Azure EventHubs instance. The challenge I'm facing is that ...
0
votes
1answer
7 views

IEntityChangeTracker exception when updating multiple records in for/foreach loop

I have the code: public ActionResult Save([Bind(Include ="ID,Name,Note")] Plan plan) { //1.create Folder and save the plan string path = Server.MapPath("path here"); ...
0
votes
1answer
17 views

Wrapping ASP Form inside Bootstrap Layout

I have built a form in HTML 5 that is in a modal window and wrapped in Bootstrap and the layout is perfect. I have the need to use another modal window, however instead of the form being built in HTML ...
0
votes
3answers
32 views

XDocument C# parse node value inside node

I have an XML document which basically looks like this: <Item> <Seller> <UserID>SomeSeller</UserID> <FeedbackScore>2535</FeedbackScore> </Seller> <...
0
votes
1answer
23 views

User-defined conversion must convert to or from the enclosing type in asp core 2.2

i create this class and it have this constructor : public class ReturnResult : ImplicitReturnResult { public bool Success { get; } public ResultStatus Status { get; } public string ...
-1
votes
1answer
50 views

Call a SQL stored procedure in ASP.NET with an output parameter

I'm attempting to call my sql stored procedure which takes RaceDate as an input and returns Location as an OUTPUT. I'm not sure how to call my code in ASP.NET, this is what I have thus far. DateTime ...
0
votes
1answer
22 views

Asp .NET MVC Hide Row and update DB values

I have a database (SQL Server) with clients and a MVC plataform, and i want a row to be "hidden" on the web platform with validation at a specific value in the "status" column (True / false) in the ...
0
votes
0answers
7 views

Asp ToolkitScriptManager not know element in visual studio 2015

I have tried many solution online but I am unable to fix. First off all i check in bin and it contains the dll as you can see. Here is my front end code <%@ Register Assembly="AjaxControlToolkit" ...
0
votes
0answers
11 views

IIS Recycling issue

I got an issue with IIS and recycle. I explain what we want, and what we did. What We want: we have an ASP.net WebSite, it executes a code in "Application_Start" which loads in memory a lot of data. ...
0
votes
0answers
19 views

Database error when importing an ASP project

I'm trying to import a project that I did with an ex-partner, The home page or the project should return a list of products from the database. the dotnet run command returns no error and the webpage ...
0
votes
0answers
16 views

Application Insight Snapshot Debugger: Snapshots are not being pushed from a .NET Full Framework Site

I created a brand new Web Application, .NET Full Framework 4.7.2, added Application Insights Snapshot Collector but snapshots are not being pushed to the server. I'm not even getting the Don't see ...
-1
votes
0answers
14 views

How can I post data to external URL and get data from it?

I am codding e-commerce site and I need to validate BIN number. Then,I want to post data from my controller to external url (https://www.paytr.com/odeme/api/bin-detail) and It returns me json data. I ...
1
vote
0answers
33 views

Multiple Contexts - Right Way To Use Identity Framework Context And Entity Framework DbContext

I'm learning Identity Framework wonder what is the right way to use it. I have two context - one for Identity Framework and one for my application data (Entity Framework) - call them IdentityContext ...
0
votes
1answer
26 views

Accessing APIs in the same solution

I am developing solution where there are three webapi projcets. Each of them is secured with JWT tokens mechanism. So far webapis had not need to communicate. Finally they will be deployed on azure ...
0
votes
0answers
10 views

Images are not loading on using UrlMapping in web.config

In web.config we have below lines <system.web> <urlMappings enabled="true"> <add url="~/" mappedUrl="~/common/forms/v1/login.aspx" /> </urlMappings> It is ...
0
votes
0answers
20 views

Export data excel in asp .net mvc using OpenXml

I have a requirement for export data to excel using open Xml plug in. And I want to style excel head boarder colour. I tried different method to achieve my requirement. I would like to export my data ...
0
votes
0answers
17 views

How to prevent multiple selections of the same value in a @Html.DropDownListFor in mvc

I want restrict users from selecting already selected values in same dropdown. My Screen looks like this: On each 'Add' click the Service type and Service Location will be added to a partial view. ...
0
votes
1answer
15 views

Authenticate a user by a given password and salt without knowing the encryption method

Story I'm using SQL Server database, and there is a table called aspnet_Membership that it seems like it's generated by ASP.NET. The system's frontend no longer uses ASP.NET but still would like to ...
0
votes
1answer
46 views

C# ASP.NET Core - wrong data type being passed to Partial View?

I'm trying to make a simple chat app to get started with ASP.NET and my partial view seems to be recieving the data type passed to Index.cshtml instead of the data I intended to pass to ...
0
votes
0answers
8 views

Fortify Cross-site scripting: Persistent issue in Response.Binarywrite

In an existing Asp.Net application, we are using Response.BinaryWrite to render image on an aspx page. This is the required functionality, and below is the C# code- 1. byte[] img = getImage(); 2. ...
0
votes
2answers
32 views

UI changes not persisting in ASP.Net application

I have a table that's hidden by default. When clicking the search button, I'm using jQuery to remove the d-none class and show the table. <input type="submit" value="Search" class="btn btn-default"...
4
votes
1answer
52 views

Migrating and Running REST API from C# Console Application to ASP.NET

Requirement: Need to deploy REST API on Hosting Server. So migrated the code from C# Console Application to ASP.NET which was running successfully on localhost with some errors Here is the below ...
-2
votes
0answers
16 views

How can i change the wsdl:port@name attribute in c#?

I build a webservice and I was suppose to set a specified name for the port tag name attribute(different from service@name attribute), but I don't know how. Is it even possible to do this? Here is my ...
0
votes
0answers
18 views

How can I reuse the same Razor Class Library from both asp.net and asp.net core

Razor Class libraries are .net standard compatible and I expect to reuse them (the razor rendering engine) from all the project types/platforms(asp.net MVC 4, asp.net core, console applications). Is ...
0
votes
0answers
28 views

Sending Email is not working in server side but working in local system [duplicate]

Sending Email is not working in server side but working in local system. I tried port 25 and 465 instead of 587. But it doesn't work . MailMessage msg = new MailMessage("from@gmail.com",ToEmail,"...
0
votes
0answers
16 views

SenseNet unknown coloumn id on query [on hold]

SenseNet unknown coloumn id on query. I cannot run project template by SenseNet. So what i must to do. I run the commands and all installed database run VS with Admin. I dunno how to fix this. Thank ...
0
votes
0answers
35 views

How to get the tab name on page load

I am trying to bind a repeater control for each tab on the current page. So on page load, how do I get the tab name for the current tab, so that I can pass the id to the method? I tried this but it ...
1
vote
3answers
31 views

Updating default front-end design of Identity Login Page in .NET core

I am developing a .NET core application with Identity login which provides a Bootstrap form In the /Identity/Account/Login page. I have imported Materialize CSS files in the wwwroot/lib folder and ...
0
votes
1answer
14 views

PageIndexChanging event for GridView not firing

I'm building an ASP.NET web application. I have an .ASPX page where I created a static GridView that I fill (with a SQL Server stored procedure) after the click of a button. I need to implement paging,...

http://mssss.yulina-kosm.ru