返回首页

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

Vue - How do I make a list of buttons that each open a new window with a different URL?

Javascript: function InitVue() { var vueOptions = { el: '#activeEvents', data: { activeEvents: [] } }; vOPTIONS = new Vue(vueOptions); } and HTML: &...
0
votes
0answers
5 views

Condtionally set ASP.NET session and authentication cookies samesite value based on browsers

I have done the following changes to my web.config and I'm able to server both the authentication and the session cookie with samesite=none and secure. the problem is for browsers such as chrome 51-...
-1
votes
0answers
43 views

Migrate from .NET Core 3.0 to .NET Framework 4.6.1

I've got a MVC project that runs on .NET Core 3.0. It's an API to authenticate payment (Izettle). I've seen many posts / questions here related to this migration but I couldn't find any that would ...
0
votes
0answers
10 views

Toastr notification not working on asp.net web forms

Hi I'm trying to use toastr notifications in my ASP.NET web forms app. I have written following code: Toastr.cs public static class Toastr { public static void ShowToastr(this System....
0
votes
0answers
8 views

Capturing click events in embedded SSRS reports

I'm having trouble trying to implement a request in a .net web application that has an embedded SSRS report on the page. The report's content has a hyperlink in one of the columns that when clicked, ...
0
votes
0answers
11 views

log4net with .NET Framework 4.6.2

I got my new Windows 10 having to install Visual Studio 2019 only with .NET Framework 4.6.2. I also all frameworks available available in the VS Installer including the framework 4.5.2, but cannot ...
0
votes
1answer
9 views

Sending an array of integers to a selectpicker value from AJAX

Upon a model popup, I need a selectpicker dropdown to be pre-populated with values. I have tested that this method works by manually entering some IDs, like so: $("#listPhones").selectpicker('val', [...
0
votes
0answers
9 views

how to add success key in web api json array C# web api 2

[Route("api/GetMenuBykidnew")] [HttpGet] public IHttpActionResult GetMenuBykidnew(int kid, string Username) { ApiBusiness ApiBus = new ApiBusiness(); var ...
0
votes
2answers
23 views

Pass data from view to controller using ajax in ASP.NET MVC

I'm very new to ASP.NET MVC and web development (I work mainly with c# and desktop development) and I have a big problem: I try to pass data from my view to the controller, but everything I try ends ...
0
votes
1answer
19 views

Dropdown List selected value display only one using Asp.net

i have load the DropDownList successfully. all student numbers i have loaded when i select the student no relavent student name should diplay on the below textbox. but now if select any number only ...
0
votes
2answers
41 views

saving multiple arrays to database asp.net

I am an intern and i don't get the guidance i need at my internship so i'm asking it here. string sql; sql = "INSERT INTO Uzk.Talen (Kantoor, Taal, Spreken, Lezen, Schrijven, ...
0
votes
0answers
20 views

How to delete outlook appoinment in ASP.NET C#

im trying to delete or cancel an appoinment that has been already created, with the following code: string lugarReunion = lugar; string asuntoReunion = "Reunión de Falla " + codigo; ...
0
votes
1answer
19 views

unit testing the commandhandler depended on Interface

I am not much comfortable to write unit test. So sorry for asking basic questions. Here is commandhandler ICalculateAge CalculateAge { get; set; } public UpdateAgeCommandHandler(ICalculateAge ...
0
votes
1answer
31 views

@Html.EditorFor targeting wrong property

I am having razor view where i do edit my data. Classes i do have are like this: public class A { public string Value1 { get; set; } public int Value2 { get; set; } public A() { ...
0
votes
0answers
7 views

Registering a user from outside the Identity area while logged in ASP.NET Core

I would like to be able to create a user while I am logged into an admin account. I have tried re using the code from the register page in the Identity area but error after error gets thrown up and I ...
0
votes
0answers
57 views

The incoming request has too many parameters. The server supports a maximum of 2100 parameters.?

The incoming request has too many parameters. The server supports a maximum of 2100 parameters. Reduce the number of parameters and resend the request. code: query = query.Where(x => !rejected....
0
votes
0answers
12 views

Dataset file (.xsd) not portable to VS 2019

I have an old Visual Basic project which uses Datasets in the AppCode folder of a website. It is possible to open all files with VS .NET 2015 version, but when I try to open the dataset designer file ...
0
votes
0answers
13 views

The entity type 'tbl_DoctorEducationDetails' requires a primary key to be defined. when call login controller

enter code here #Controller public ActionResult DoctorLogin(tbl_DoctorPersonalDetail admin) { var key = GetKey(); admin.str_Password = EncryptString(key, admin.str_Password); ...
0
votes
0answers
10 views

Slient POS Printing on Localhost IIS in ASP.Net

I had created POS Web Application in asp.net C#. Slient Printing works well when run on .Net IIS Express. If i set it on Windows 7 IIS printing not working. IIS-->Application Pool-->Identity=...
0
votes
1answer
17 views

Disable all controls inside a ModelPoPup extender by hitting the Edit Button asp.net webforms

I have a model PoPuP with list of disabled controls and i've an edit button on the footer of this modelPoPuP when i clicked to it(edit button) i want to enable all controls(TextBoxes, DropDownList...) ...
0
votes
0answers
23 views

Decrypt connectionstring in web.cofig file

I am trying to migrate a .net application from one server to another server. Unfortunately I don't have the source code for this application but have the compiled/published version. All I intend to do ...
-1
votes
0answers
48 views

How to do an explicit cast for IEnumerable

I am going to keep this simple. I am returning an IEnumerable<T> in my generic class. I just have some troubles on how to do the cast. This is to read an excel spreadsheet into a list of objects....
0
votes
0answers
22 views

Unable to send file value to controller in asp.net mvc with js

I have a little problem here. I am unable to send the content of a file input to the controller via js, I'm using 'croppie' plugin to re-scale the picture size before submission. Before using this js ...
-1
votes
0answers
10 views

Asp.net - checkboxlist update on dropdown selected index change without entire post back of the page

I need accomplish , on change of drop down values, the checkbox list should get updated with its binding method. I want to avoid entire page post back. As I do not have much knowledge on update panel, ...
0
votes
0answers
9 views

How to maximize and minimize a div having Crystal report viewer

i have a div in which i popped my crystal report viewer but i want to maximized and minimized a div here is my code : <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server"> <div id="...
0
votes
4answers
52 views

How to combine a two variable to a single variable in asp.net mvc?

Model public partial class IndustryLandingHeader :EntityModel { [TextField] public virtual string Headline { get; set; } [TextField] public virtual string Type { get; set; } [...
0
votes
0answers
11 views

asp.net application on azure (403 Forbidden Microsoft-Azure-Application-Gateway/v2)

i'm running an application on azure and for unknown reason i'm running into : 403 Forbidden error while trying to call my web api as shown in picture bellow I checked many things like Ip ...
0
votes
0answers
19 views

Json serializer reference handling asp.net

When fetching data from a database, we have a lot of recursive and circular references. To handle this we configure the (default) json serializer to give the objects ids and refs, e.g.. { "$id":...
0
votes
0answers
25 views

Import CSV File to PostgreSQL database with ASP.NET MVC

I have one of the tables in the database which is the student table. This table has 4 columns namely student id, student name, add time, update time. I want to import values from the table through ...
0
votes
1answer
47 views

Function works with double quotes but not with single quotes

I'm developing a page using webforms and I have a problem with my aspx.cs page. I have a treeview with values, that are supposed to work as a filter for gridview (sqlServer database). I save checked ...
0
votes
1answer
19 views

Why erased code (OnClick event) is still running?

This little html code (my first html) ask an integer between 1 and 20 and makes a multiplication table. The multiTable is put in an aspx.cs file together. I got a plus task to change mainheader color ...
-1
votes
0answers
20 views

Prevalence between styles in master page, nested master page and child page

I found this link with a similar question but I not fully understand the explanation. I know than a style defined in child page overrides one in master page, but why the style defined in nested ...
0
votes
0answers
20 views

Trace Method Not Implemented exception in Nlog TraceWriter

I am working on a ASP .NET project with NLog based TraceWriter (NLogTraceWriter). Logging was working fine until i added configuration to sync logs to Elastic Search. Currently I am getting following ...
0
votes
1answer
25 views

use return mediator in Mock in xunit

I need to create a Unit Test with XUnit and I use the mediator in my project. I have problem with Mock in this test. this is my test : [Theory, MemberData(nameof(SubscribeDataSource....
-2
votes
1answer
37 views

IMemoryCache - Singleton or Dependency injection

public class CacheController { private IMemoryCache _memoryCache; public CacheController(IMemoryCache memoryCache) { this._memoryCache = memoryCache; } public string ...
0
votes
0answers
27 views

How do I download a file from a calendar event?

I want to download a file from a calendar event in web forms but it is not working. events: [ { title: 'All Day Event', start: new Date(y, m, 1) }, { title: '...
0
votes
1answer
19 views

Scaffold the login/register UI for the customized the ApplicationUser model?

(Environment: Visual Studio 2019 v16.4.3) I create a new "ASP.NET Core Web Application" with the following options ASP.Net Core 3.1 Angular Authentication of Individual User Account (with "Store ...
0
votes
0answers
11 views

ASP.Net MVC web application, Login Failure when using Chrome and success When I Use IE

I have created a new web application and created a role and a user in startup.cs using VS2019. When I use Internet Explorer my login attempt is successful, when I use Chrome it fails. Sometimes with ...
0
votes
3answers
39 views

Date function not work after host application on server in ASP.Net C#

I am trying to change date base on selected date. I have two Textbox as Start Date and End Date. Base on Start Date i want to add one year in Start Date and display it as End Date. It is working fine ...
0
votes
0answers
29 views

How do I get the access token from a blazor (server-side) web app?

After implementing openidconnect, where does blazor store the access token? how to retrieve it? How to add OpenIdConnect via IdentityServer4 to ASP.NET Core ServerSide Blazor web app? http://docs....
0
votes
3answers
12 views

IIS-based Web Service

I have created an ASP.NET Web Application in Visual Studio Community 2019. I am trying to deploy a web service in IIS but I keep getting the 404 Not Found error. The application pool in the IIS ...
0
votes
0answers
6 views

Why asp.net solution is referring to old dll while debugging using w3wp.exe?

I have an old ASP.NET application for which I use VS 2013 to run and debug. The solution has four projects namely: Database service, SAP service, Business Service and Background tasks. To debug a ...
0
votes
2answers
59 views

How to join 2 data tables

DataTable1 LoginId LoginName SCount 1 Mohit 20 3 Riya 25 DataTable2 LoginId LoginName ECount 2 Smita 11 3 Riya 13 I want to show result like this ...
-1
votes
1answer
20 views

Migrate .NET Framework 4.x projects to .NET Core 3.1 [closed]

I have some projects in .NET Framework 4.x version now I want to migrate newer version like .NET Core 3.1 or 3.2 What will be steps for to do this
1
vote
1answer
33 views

Why am I not receiving token on backend?

I'm trying to separate the backend from the frontend of a web app I'm building, both the back and the frontend are written using asp.net core 2.2 (i know I could have used another framework for the ...
0
votes
0answers
9 views

aspxauth cookie getting stripped in iframe

We have an asp.net MVC website (4.0.20710.0), using the asp.net membership provider that displays health and wellness videos. One feature we have provided to our clients is an iframe version of our ...
0
votes
0answers
10 views

Moving from Visual Studio 2017 to Visual Studio 2019. Web Application loses “My Project” and “Reference Nodes” in solution explorer

We are moving our development environments from Visual Studio 2017 to 2019. When I open a web application that we have been working with in Visual Studio 2017 in Visual Studio 2019, the application ...
-9
votes
0answers
40 views

Techniques or checking FTP server vulnerabilities? [closed]

I'm trying to beef up security on my system and check activity to find exploits on open or unprotected ports. It is possible to find a website's username and password in plaintext in any file after ...
0
votes
0answers
5 views

How to return Exception using FileContentResult Type in .Net Core 3

How to return Exception using FileContentResult Type in .Net Core 3? I sent request from my web service using Axios, where i define responseType to arraybuffer. How i can read exception message?
0
votes
1answer
15 views

Where are located Application Insights Telemetry logs in Azure Portal

I have this class: public class TelemetryHelper : ITelemetryHelper { private TelemetryClient TelemetryClient { get; set; } public TelemetryHelper() { TelemetryConfiguration ...

返回首页
杏彩计划 杏彩官网 杏彩APP 杏彩走势图 杏彩下载 杏彩官方 杏彩网站 杏彩怎么玩 杏彩官方 杏彩靠谱吗 杏彩代理 杏彩骗局 杏彩投注 杏彩倍率 杏彩开奖 杏彩漏洞