Most voted "asp.net" questions
ASP.NET is a web application framework developed by Microsoft to allow programmers to build dynamic websites and web applications. Use the tag for traditional web forms, the classic template that provides the illusion of "stateful" pages. Do not use this tag for the style using the standard Model-View-Controller; use [Asp.net-mvc].
Learn more…1,881 questions
Sort by count of
-
2
votes2
answers1783
viewsX.PagedList.Mvc with Core and Bootstrap 4.0
How to use the X.PagedList.Mvc with Core and Bootstrap 4.0, and thus create a full automatic pagination.
-
2
votes2
answers219
viewsRelative path to txt in ASP
Good afternoon, I am generating a file with Asp net the function saved in the hard drive if I put the path, however this file will be saved in a server and I’m having difficulty to put the relative…
-
2
votes1
answer339
viewsIntegration of Web Service Information
I’m having a little trouble making a Web Service. I have a database Mysql simple to register people. I already have my methods for performing operations CRUD ready in a classe . that were used in an…
-
2
votes1
answer62
viewsAsp.Net Core does not support System.Data.Entity.Spatial.Dbgeography?
Follows the project’s created property Asp.Net: public System.Data.Entity.Spatial.DbGeography Geo { get; set; } How can I do this in design Asp.Net Core 2.2 ?…
-
2
votes2
answers356
viewsException with timestamp in the database
I want to enter the time and date separately in the database, which have the fields timestamp and data, respectively. And I have the following code to add the fields:…
-
2
votes1
answer82
viewsWhat is the build flow of the . NET framework?
I’m starting my walk on .NET. I’m programming in ASP.net but I can’t understand how an Asp.net project turns into html + javascript. I suppose there’s a compilation process behind it. Apart from…
-
2
votes0
answers227
viewsUpdate a Repeater after inserting a new row in the Table?
Good morning, you guys! I have a table that is populated with a Repeater. This table has a filter, which is programmed all via javascript from a ready Layout. After adding a new value to the table…
-
2
votes1
answer1216
viewsNon-static Method error requires a destination. '
I have a little problem and I need your help to help me solve it. How the error is occurring: Basically it is occurring, when I click on a button to open a modal to bring the information I want…
-
2
votes1
answer133
viewsError in create Asp.net
Unable to decrypt anti-counterfeiting token. If this application is hosted by a Web Farm or cluster, ensure that all the computers run the same version of ASP.NET Web Pages and that the…
-
2
votes3
answers104
viewsChange project c# . Net 4.6 to . Net4.5
Would have some way to change the summer of . Net used in my project to an earlier version ? In my project is with . NET 4.6 and would like to return to the version . NET 4.5 without having to redo…
-
2
votes1
answer923
viewsGenerate dynamic HTML with ASP.NET
Good people, I have a project, and I need to generate a card with dynamic HTML, pulling from an sql server. The case is as follows, I have an html CARD, all stylized. Which in this case is the code…
-
2
votes1
answer85
viewsChange default pages created by MVC in Visual Studio C#
When I create the controller and use MVC 5 Controller with views, using Entity Framework, the Index, Create, Edit, Delete and Details are created automatically with a default setting, and I have to…
-
2
votes1
answer98
viewsASP.NET C# Listview Itemcommand is not working
Man ItemCommand of ListView does not work. Can anyone point me out if there is something missing or errors in the code? <!-- Primeira Coluna --> <div id="firstCollumn"> </div>…
-
2
votes1
answer130
viewsProblem with Bundle on the server
Good morning, I was implementing the use of Bundle in my ASP.NET MVC project, in the development environment worked perfectly. But when I go up on the server it does not work. I went to debug in the…
-
2
votes1
answer163
viewsJSP for developers . NET
I’m a developer . NET who needs to understand a bug that occurs in a JSP application. (I don’t need to compile or fix, just understand how it is using the database and etc.) I already have Eclipse,…
-
2
votes1
answer815
viewsDynamic Image Gallery ASP.Net C#
I have the following Code, It loads the photos into that placeholder. ID="phFotos"> public partial class ImovelDetalhe : System.Web.UI.Page { private ImovelBo _imovelBo; protected void…
-
2
votes0
answers341
viewsHow to return the value of an ID when selecting an auto complete record
Good afternoon. Reformulating my doubt. As said I am making a sales site in Asp.net. I tried to create a search engine, like Google and Facebook, that will filter the results. I found that Asp.net…
-
2
votes0
answers603
viewsLoad progress bar as import C#
How to make progress bar load as excel file import is in progress ? My code so far: ASPX: <asp:FileUpload ID="FileUpload" runat="server" Style="margin-top: 4px" /><br /> <div…
-
2
votes1
answer154
viewsJSON conversions
I’m a beginner in C# and ASP.NET, and I’m having doubts about JSON and dictionaries I have a serialized Dictionary that was stored in the database with: var json = new…
-
2
votes1
answer100
viewsPre-filled model returns null in Httppost
I’m building a page in the ASP.NET project where I have a model that contains 2 lists, which I fill one initially at get and then direct to the View where I fill another list, but when receiving…
-
2
votes2
answers7845
viewsHow to resolve "Could not create SSL/TLS Secure Channel." error?
In my project, I need to communicate with a Webservice and send data to it. However when I do the envelopment and sent, it shows the following error: "Could not create SSL/TLS Secure Channel.".…
-
2
votes1
answer507
viewsredirecting C#/javascript pages
I am with a question a little bit silly ( I think ), I have to make a filter for customer and need to do urgent, so I gave a "quick" solution to my problem, created a controler that does customer…
-
2
votes1
answer531
viewsHow to save Image to a specific folder?
I have the following code: protected void btnSalvarDestaque_Click(object sender, EventArgs e) { if (fuFotos.HasFile) { string strname = fuFotos.FileName;…
-
2
votes1
answer157
viewsCommunicate ASP.NET with Windows Forms
The problem is the following, I work with SAT-CFE and the communication with this is done via USB which makes it impossible for my web system to do direct communication with it. What I did, I…
-
2
votes1
answer138
viewsMany Relationship for Many ASP.NET Entity Framework
I am having difficulties to make the relationship between my tables using EF. When creating an Order, I need to list the data recorded in other tables, such as Equipment, Tasks and Person, as I try…
-
2
votes0
answers184
viewsSearch Gridview Asp.net data
I have a GridView called grvListaFuncionario which is populated by data from my database. I am facing a problem when searching the data on it. private void Pesquisar() { DataTable table = new…
-
2
votes1
answer82
viewsToken Provider Asp.Net Webapi
in the company we work we do authentication and authorization via Bearer Token in an Asp.net webapi app, but I keep some information about user permissions with Claims... and this makes Token look…
-
2
votes1
answer835
viewsUpload images to Asp net core 1.0
Oh guys I’m having a doubt I’m new in the . net, I learned in a course in Asp net mvc 5 so I would need to take that upload code and turn to Asp net core if you can help I am grateful. [HttpPost]…
-
2
votes2
answers1105
viewsExcessive line breaking while creating file . txt C#?
I’m trying to generate a file .txt from a code list recovered from the database. However, when the file is generated, line breaks come out in excessive number, as shown below: The code is as below,…
-
2
votes1
answer255
viewsAsp.Net Razor with Json
I have a question and I have researched several sites but I did not get the answer. I develop systems in .Net with C# in MVC standard and use the on-screen presentation in the traditional View with…
-
2
votes1
answer33
viewsSqldatareader Incompatible Databindtable does not implement Ienumerable
I have a problem showing the data of a column on sqlserver, to insert as x and y in my Chart in Asp.net. The problem is this, it seems the method (DataBindTable) is waiting for IEnumerable but my…
-
2
votes2
answers121
viewsError compiling project with VB 6. Pass to . Net
I am not a developer in VB. I took a project for 5 days, through a consulting, but it should be all in SQL Server. Well, it turns out, that some changes on screen should be made. I opened VB 6…
-
2
votes0
answers89
viewsHow to set language according to file . resx
I am aware of the existence of this question: Internationalization using ASP.Net MVC but I’m having some questions. I have these language files (I’ll have more in the future): The system in question…
-
2
votes2
answers5321
viewsCalling an asynchronous and synchronous method
I have a synchronous method, in it I call another method of another controller which would have to be executed asynchronous. I call this other method this way: Task.Run(() =>…
-
2
votes1
answer41
viewsRegex in Javascript and C# for text validation
In an application Asp.Net WebForms, have a TextBox which I need to validate if it contains any excerpts where there are < followed by any character except blank space. For example: Nesse texto…
-
2
votes0
answers83
viewsDropdownlist with Modal
good afternoon. I have a screen with a grid made in webforms, and when clicking the existing button on the grid, a modal is displayed with the information of the corresponding record. In this modal…
asp.netasked 7 years, 3 months ago Paulo H. da Silva 21 -
2
votes1
answer330
viewsOpen Asp.net project/solution that are coming from another machine
I have a project that was created on a machine and I have to give maintenance on it. I copied the project to my current machine and when I try to open Solution/project I get the following message…
-
2
votes1
answer55
viewsC# - Use form data in IF
I am trying to recover data from the form and need to use them in an IF. protected void btnSubmit_Click(object sender, EventArgs e) { try { if (txtLocalizacao.Text != "") { conn.Open(); SqlCommand…
-
2
votes1
answer676
viewsIncorrect mime for XLS files
I am doing a migration of a particular system written in ASP.NET (site) and in a certain part of that system there is a place where you upload a file XLS. There is a check against the mime type of…
-
2
votes2
answers165
viewsCan’t find Parameter passed to the Insert command
I am developing a web application in ASP.NET and I want to insert data in a table in the database, but when specifying the parameter shows the following error in the…
-
2
votes1
answer83
viewsModeling - Model
I’m having trouble creating my models. Let’s imagine that I have 4 different types of products (Here as A,B,C and D) public class Produto { public int ProdutoId { get; set; } public TipoProduto…
-
2
votes0
answers122
viewsKeep Tab Selected after Postback
I’m trying to keep the tab selected, after the postback, I’m trying to do it this way: <script type="text/javascript"> $(function () { $("#myTabs").tabs({ activate: function () { var…
-
2
votes2
answers356
viewsASP.Net - Browse Radiobuttonlist?
I have several RadioButtonList in a form, in the event of submitting the form I want to go through them and get the selected value. I tried that: protected void btnEnviarQuestionario_Click(object…
-
2
votes0
answers71
viewsConfigure Route ASP.NET Webforms
Good afternoon, I have an ASP.NET application in Webforms (still) working normally, the client asked to include the date in the route of a new page, I created the route so: routes.MapPageRoute(…
-
2
votes1
answer169
viewsProblems with the excel connection string
I have the following code snippet that connects to Excel, but returns the error: string sFileXLSX = ConfigurationManager.AppSettings["ExportPerformanceEntrega"]; string strConnXLSX =…
-
2
votes1
answer721
viewsHow to join two tables using auxiliary table and LINQ
I have the tables People and Representatives, where in my application the person may or may not have representative(s). public class Conta { int PessoaID; string Nome; String Documento; } public…
-
2
votes0
answers36
viewsFile (.PDF) for Ajax/Webmethod Webforms
I wonder how do I get the information from a pdf file (Binary, name, size) public class Arqs: IHttpHandler { Funcoes f = new Funcoes(); public void ProcessRequest(HttpContext context) { try {…
-
2
votes1
answer1077
viewsCalling functions from a controller in the _Layout.cshtml view of ASP.NET MVC5
I have a menu being loaded into a controller Action. I’ve already set the view for this action in _Viewstart to be the default for my project. But this view isn’t pulling any comtroller information.…
-
2
votes2
answers812
viewsbut this Dictionary requires a model item of type 'System.Collections.Generic.Ienumerable`1[Webapplication4.Models.modelExemplo]
I can not carry out enumerate, I switched to another reception of information in the View but I do not know how to correct, I checked other forms in Stackoverflow but I did not understand. Model:…
-
2
votes1
answer891
viewsCan I edit Identity’s Aspnetusers table?
Galera I have a project that has a table of USUARIOS. And now we’re migrating to AspNet.Identity which already has a table but called AspNetUser and with your own fields. And my table USUARIOS have…