返回首页

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
1answer
17 views

How to pass HTML textbox data and retrieve edited text from C# code behind?

I am trying to pass the value of a HTML textbox to C# code behind and return the value but I get "Error: SyntaxError: Unexpected end of JSON input". I am new to this and trying to learn how to do it. ...
0
votes
0answers
12 views

Asp.net Core Boilerplate, how to implement multiple dbcontext based on tenant

I am trying to implement a project using asp.net core boilerplate framework. Certain Requirements force me to not use the multiple database approach of abp, but instead i have common tables like users ...
0
votes
0answers
10 views

trying to ensure 'cookies' are set with hhtOnly attribute in IIS

I am trying to ensure 'cookies' are set with hhtOnly attribute in IIS, which from reading hundreds of articles it seems is simple but why does my security scan keep failing. I have added to the ...
0
votes
0answers
30 views

Displaying HTML tags as webpage in asp.net page

I am getting html code in *.aspx.vb page. I want to display this content as HTML or web page, but instead it is getting displayed as html code using response.write() str_ = Server.HtmlEncode(...
0
votes
0answers
44 views

How to post form-data files with C# to an external Api

I have created an API with asp.net core that should accept POST of files and strings, The API works greate with Postman but I'm not sure how to implement the POST action from Postman to my Asp.net ...
0
votes
2answers
55 views

Inner join in C# with lambda

I'm new to LINQ and Lambda. I want to make query that will get me for every studyYear (1,2,3) students who are studying that year. I've done it without Lambda but I really want to know how to do it ...
0
votes
0answers
19 views

EF Core 3: .FromSqlRaw blocks record deletion in a stored procedure

I have a problem with the new Microsoft.EntityFrameworkCore RelationalQueryableExtensions.FromSqlRaw function. I'm using .FromSqlRaw function and a stored procedure (see below). The stored procedure ...
0
votes
2answers
52 views

How do you populate a HTML select box (drop down list) using jQuery from C# code behind

I am trying to populate a drop down on a HTML front end and the C# code behind from a blank ASPX page utilized as a local server using jQuery/AJAX. I am new to this, so please keep that in mind. I ...
0
votes
1answer
44 views

Image.FromFile “File Not Found” when File is there

I have a file stored in a directory within my site. When I attempt to access the file using image.fromfile, an exception is thrown saying that the file is not there. However, when I access the exact ...
0
votes
0answers
35 views

Run migrations from specific project

I have 3 projects in solution. Here is how it's look like My Migrations is under TooSeeWeb.Infrastructure In Startup.cs under TooSeeWeb I have this code services.AddDbContext<...
-2
votes
0answers
11 views

Can't publish ASP.NET MVC site

So I tried publishing my project (It's a blank project) by FTP on a server but it only shows "Index of" and all my files. Tested with all the settings and still the same result. This is what it ...
1
vote
1answer
15 views

ASMX SOAP Web Service creating Complex types instead of simple types

I am creating a SOAP Web Service using C# ASMX. I have one method which has 3 parameters. The generated WSDL created a complex type by default. The Complex type is called HelloWorld. I want to attach ...
0
votes
1answer
26 views

Navbar not collapsing in asp.NET webform

I'm doing an ASP.NET web page which includes a navbar using bootstrap 4. When the screen is small I got the toggle button to appear, but when I click it nothing happens, it looks like it tries to show ...
0
votes
0answers
10 views

With Description in URI ASP.NET handler is not working

I have ashx handler which return text for key, called from apps.sunamo.cz to sunamo.cz. When I use http://sunamo.cz/EnString.ashx?k=Default, everything is OK. But when is requested http://sunamo.cz/...
0
votes
1answer
22 views

How to clear entered date in edge browser when textbox TextMode=“Date”?

In ASPX page I have few text boxes which should accept only values in date format. I added TextMode="Date" property to set this, It is working as expected like entering and removing date in Chrome ...
0
votes
0answers
15 views

Check user web3.eth.accounts[0] value inside asp.net mvc action

How can I make shure inside my MVC action that passed parametr string address is currently equal to js window.web3.eth.acccounts[0] ? public ActionResult myAction( string address) { if(address == //...
0
votes
1answer
17 views

How to move cursor at first character positon using jquery mask plugin?

I have searched a lot and found out same kind of question but not exactly same and didn't find satisfactory answer. So thought, Should ask that more specific. Using Jquery mask plugin, I would like my ...
0
votes
0answers
11 views

How to return a message or value after checking for file with similar hash in Google Drive using ASP.NET

I am trying to compare the hash of the files that are in the Google Drive but I am unsure how to do it. I have a compare hash code block: public static void compareHash(string path) { ...
0
votes
1answer
12 views

Problems binding a radio button group in Razor Pages

I have a bit of trouble using a radio button group in my ASP.NET Core 3.0 Razor page. Essentially, I want to use a radio group instead of a select, but I've no idea how to bind it to my InputModel ...
-2
votes
1answer
72 views

Using IF-Else statement with Eval, unexpected results so far [on hold]

I am modifying an old company website. The website is basic CRUD, has many menu items, each menu item goes to its own page where it populates a gridview based on a table specific to that menu item. ...
0
votes
0answers
34 views

Why MVC puts Home prefix in front of my scripts?

<!DOCTYPE html> <html lang="en"> <head> <title>@ViewData["Title"]</title> <meta name="description" content="Fashion Nova is the top online fashion store for ...
1
vote
1answer
45 views

why do sql procedure retuns 0 rows when called from applciation?

I have this procedure ALTER PROCEDURE [dbo].[ReadEquipments] null, 'Vessel' @Param varchar(30), -- EquipmentNo @EqptType varchar(30) AS BEGIN IF((@Param is not null OR @Param != '...
-2
votes
0answers
15 views

Gridview Itemtemplate not showing

I need to add checkbox on gridview ..but when I click on edit templates ..I don't see any Itemtemplates...it's showing only emptydatatemplate and pagertemplate .. please help me out .
0
votes
1answer
9 views

Localize text using Resources on Asp.Net WebForms in javascript

I have ASP.NET WebForms application c# based. I have ImageButton <asp:ImageButton ID="divSection_btnAdd" runat="server" OnClientClick="return TConfirm(this,'<%$Resources:Resource, Confirm%&...
0
votes
1answer
19 views

Getting error msg as WebResource.axd?d=xxxxxxx Uncaught TypeError: Cannot set property 'value' of undefined

I am working in asp.net and while clicking on a asp.net Button I am getting an error messsage of WebResource.axd?d=xxxxx Uncaught TypeError: Cannot set property 'value' of undefined ...
1
vote
2answers
40 views

Select box binding in blazor

I am trying to bind "CountryId" in the model to the value of a selected item of SelectList in blazor. All of the Country items come in a list like {CountryId, CountryName} object. I do the code like ...
-1
votes
1answer
23 views

redirect to login when session is getting timeout after a ajax call

I have problem with ajax call text, when the session is getting timeout. i need to know How to redirect to Login page when Session is expired in asp core application after a ajax call?
1
vote
2answers
55 views

How to insert properly into a many-to-many relationship?

When inserting data into a many-to-many relationship, should you insert to the join-table or to both original tables? My table models: public DbSet<User> Users { get; set; } public DbSet<...
0
votes
0answers
12 views

how to Maintain Scroll Position inside gridview update panel?

I am using grid view and inside grid view i have two text box. For maintaining scroll position i kept grid view inside update panel for Maintaining scroll position it was working perfectly but after ...
0
votes
1answer
22 views

Highchart Pie Chart not working properly with series

Sample Code JsFiddle Example for below code. Highcharts.chart('container', { chart: { plotBackgroundColor: null, plotBorderWidth: null, plotShadow: false, type: '...
0
votes
3answers
74 views

Ternary operator for 3 conditions

I have using jsReport lib in different enviroments (Windows, OsX and Linux) In Startup.cs I use this code, to launch library services.AddJsReport(new LocalReporting() .UseBinary(...
0
votes
0answers
19 views

Application insight - Sitefinity - Invalid Operation Exception

I’m trying to monitor the performance of my website (a Progress Sitefinity web application) using Application Insights. Sitefinity is installed as azure web site. On Azure Portal I click the button ...
0
votes
0answers
46 views

Does GC.SuppressFinalize cause a memory leak in this code?

I'm looking through some very old code trying to work out the cause of a long term problem causing from what I can best tell is a memory leak on the server. I can't seem to wrap my head round what's ...
0
votes
1answer
52 views

How do I grant users access to specific APIs with IdentityServer4?

I'm building a new security token service (running IdentityServer4 on ASP.NET Core), and need to give users logging in to frontend applications access to certain APIs only. So far, I'm able to have ...
-1
votes
1answer
21 views

ASP.NET and C#: create button that sends keyword to website with search bar

I am new to ASP.NET and C#. In a Web App, I know I can create a button that opens a webpage: private void button1_Click(object sender, EventArgs e) { //Launch browser System.Diagnostics....
0
votes
1answer
31 views

How can I create an instance of controls in a designer.cs file?

I have a bunch of HTMLGenericControls in a designer file and a c# method which populates the body of them. I am trying to create an ajax call to this method but I cannot access any of the controls ...
0
votes
0answers
22 views

ASP.NET MVC bundles not showing scripts in correct order [duplicate]

I am trying to add JQuery library before JQuery Migrate. Why ASP.NET compiler is adding JQuery Migrate before JQuery library? Here's my bundle definition: bundles.Add(new ScriptBundle("~/Frontend/...
0
votes
0answers
21 views

Getting ERR_TOO_MANY_REDIRECTS after SSL installation in IIS

We are currently migrating our site from http to http, so after SSL installation to IIS, we created a redirect rule to redirect from http to http. Because if we not add permanent redirect rule 301 ...
0
votes
0answers
33 views

How to prevent concurrent login issue in asp.net application on different browser

I have run the application using IE. It allows to login the application.After loggedin, I have copied the Url in IE and paste it into (different)chrome browser. It will allow to login. wanted Output: ...
0
votes
0answers
10 views

Ambiguity between 'Resource.ResourceMan' and 'Resource.resourceMan' between 'Resource.resourceCulture' and resource.resourceCulture, etc

I am working on an asp.net mvc project which above all includes a folder called Language which contains a folder called LayoutEmpty in which I have 3 Resource Files: Resource.sq.resx, Resource.resx ...
0
votes
1answer
161 views

Calling a cl in a particular unit eg XXX or YYY using asp.net C#

I want to call a program using QSYS.----- but I want it to execute in a particular unit eg XXX or YYY or TTT but it is not executing Below is the code in ASP.net C# As400CMD = "CALL DEVLSLIB/...
0
votes
0answers
32 views

Puppeteer is crashing after execution

I am making a screenshot of a chart wwith puppeteer and it is working fine, but approximately 30 seconds after execution the server is throwing an exeption without any indication where... I have ...
0
votes
1answer
10 views

I need to add first item (select all) row in RadComboBox

when i use RadComboBoxItem the text doesn't show <Items> <telerik:RadComboBoxItem Value="0" Selected="true" Text="Select All" /> </Items>
-1
votes
0answers
20 views

Google Cloud speech cnvertion failed speech to text

I'm working on the Google Cloud Speech api for converting audio to text.A few months back it's worked fine, but now I'm getting issues with this API. public SyncRecognizeResponse getResponse(...
1
vote
1answer
25 views

resolve error for Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046}

I want to open server excel as a workbook in client machine but i am not able to open it, but with same code it is working perfectly on local machine. My c# code is as under string ...
0
votes
0answers
14 views

How do I setup reverse proxy in local IIS

I have to implement reverse proxy setup in my local system. I have two website and in first website i have content and second website have empty forlder, I have one website example - www.nawaz-data....
0
votes
1answer
15 views

stripe testing working fine on localhost but not working on server , its not dedecting testing amount from card

I have been trying to integrate strip payment gateway system. Everything working perfectly fine on localhost. But when i uploaded to the server it does not work.
-4
votes
1answer
33 views

I am trying to merge three pages to one

This is my first question. I am trying to merge three pages. A register page, a pricing page, and a plans configuration page. The issue I am having is that I can not get all three pages code to work ...
0
votes
0answers
17 views

RDLC shows duplicates records on the scorelist

I was making an rdlc report with groupings. I'm trying to do this. =================== Task Score Task 1 5 Task 2 4 Task 3 3 Task 4 2 1 but ...
0
votes
0answers
25 views

Storing secrets in ASP.NET Core for deploying at a shared hosting [duplicate]

I want to store my secret keys for a non-azure environment. Actually for a shared Asp.Net Core hosting. I have a little idea about storing in appsettings.json & have tried some online resources ...

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