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
-
1
votes1
answer825
viewsCS0246 error when creating a new Asp.net mvc core application
I have a problem, when creating a new project Asp.net-core in visual studio 2017 appears the following error when compiling: CS0246 The type or namespace name "System" cannot be found(missing a…
-
1
votes2
answers782
viewsHow to make space in the checkboxlist text created dimanically
I’m trying to give a space between the checkboxlist square and the text, but it’s not working, I followed the code. <div class="form-group"> <asp:Label ID="Label2" Text="" runat="server"…
-
1
votes0
answers1111
viewsUnable to load file or Assembly 'Interop.Micropoint_ip_realtime'
I’m with the ERROR below when running the project in Debug(in Release works normally): An unhandled Exception of type 'System.IO.Filenotfoundexception' occurred in Slim.exe Additional information:…
-
1
votes1
answer301
viewsIncreasing the size of a string
It is possible to increase the size of a string in the code? string sIdentComanda = ""; if (objComandaParametro.ComandaParametros[0].IsControlaNrComanda) { sIdentComanda += " Comanda: " + nrComanda;…
-
1
votes1
answer1689
viewsError while running Reportviewer
I put what he asks on the web.config. Web.Config: <system.web> <globalization culture="pt-BR" uiCulture="pt-BR" /> <compilation debug="true" targetFramework="4.5">…
-
1
votes1
answer73
viewsHow to change the value of having a job in Asp.net via javascript?
I need to change the text of a label side by Javascript and then reload the page Follow the code of the label <asp:Label runat="server" ID="ValorMax" Visible="false">10</asp:Label> You…
-
1
votes2
answers291
viewsProblem when performing delegate bind in ninject
I am developing an application with ninject for Ioc and Entity framework, but when I perform the bind with delegate it gives this error: <Message>An error has occurred.</Message>…
-
1
votes0
answers73
viewsCall procedure in the Onclick of <area> in the Image Map in ASP.NET
Good afternoon, I have this code: <img src="../Image/sala.png" USEMAP="#sala" BORDER=0> <area name="window" shape="poly" coords="633,82,631,117,627,145,625,160,644,162,671" href=""…
-
1
votes1
answer409
viewsASP.NET MVC: Automapper and Nhibernate
Good night, I have a problem. I am using nhibernate to connect to my database and also use Automapper to map my Entities to my Viewmodel. But when I select the entity I have several relationships…
-
1
votes1
answer945
viewsHow to control a Radiobuttonlist via code
I am using C# Asp.net web Forms I have two Radiobuttonlist <asp:RadioButtonList ID="rblGrupo" runat="server" AutoPostBack="True" CellPadding="5"…
-
1
votes1
answer301
viewsDocument search screen with paging and search filter with Asp.net
I have the layout of a search screen, it has to show documents from my sqlserver database. To facilitate the search I put filter and as they are very documents it would be interesting to make…
-
1
votes1
answer12835
viewsShow "Wait..." message while the page loads in full - MVC jQuery
I have a view who carries a Datatable.Net, where I need to display a popup with the message "Aguarde...". Popup opens when the page is loaded, but how do I close it? The way I did, Popup doesn’t…
-
1
votes1
answer114
viewsValidation of URL parameters
I would like opinions on an issue, perhaps even simple, just to know more ways to do it. The situation is as follows: NOTE: I use in this example . Net Framework 4.0 with a lot of Javascript, I only…
-
1
votes1
answer439
viewsWhat is the purpose of "ASP.Net" folders?
In the Visual Studio it offers me the option of "Add ASP.NET Folder". What would their purposes be? If possible I would like you to talk at least a little about each one.…
-
1
votes1
answer103
viewsFunction does not work with Usesubmitbehavior="False"
I own that button: <asp:Button ID="Button11" runat="server" Text="Cancelar" CssClass="btn btn-danger btn-block" OnClick="Button11_Click" OnClientClick="javascript:return confirm('Deseja cancelar…
-
1
votes2
answers609
viewsmanipulating Datatables.net data with Json [like manipulating json to display img in the column]
I am mounting a table with the JS framework Datatables I process the data via Server-side through the JSON in the first column I would like to display a photo,the name of this photo comes via JSON.…
-
1
votes1
answer27
viewsProblem with registering jquery
I have an ASP.NET application with the structure Next: ProjetoWeb (raiz projeto) Compartilhado (pasta) |---Scripts (pasta) |----jquery-1.8.0.js Masters (pasta) |----Site.master Cadastros (pasta)…
-
1
votes1
answer221
viewsBlock typing Textbox field with Calendarextender
Good afternoon, I need to block the typing of the date in a field Textbox Asp.net. It can only receive the date selected in the Xtender application to the Textbox. Would someone have some way via…
-
1
votes1
answer857
viewsHow to save the PDF generated by reportviewer to disk at runtime?
I am making a series of reports which I need to generate the PDF and save to the server, for the user to download. I cannot use the mode atatchment and neither inline. Because the user has the…
-
1
votes1
answer357
viewsWhat is "Asp-fallback" for in ASP.NET MVC, Razor Pages?
I see some files like lines similar to this: <script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-2.2.0.min.js" asp-fallback-src="~/lib/jquery/dist/jquery.min.js"…
-
1
votes1
answer318
viewsHow to pick up the percentage of Postgre database storage space via EF Core in Asp.net Core
I need to create in my application a feature that checks in the database (PostGreSQL) the percentage of storage space used to be shown in a graph. I have a generic repository, and I thought I’d…
asp.net entity-framework postgresql asp.net-mvc-5 postgresql-administrationasked 6 years, 6 months ago Master JR 1,853 -
1
votes2
answers2016
viewsSending Model to Controller via Ajax
I have a strongly typed View with a small form and a javascript function with ajax: function emitir () { $.ajax({ type: "POST", traditional: true, url: '@Url.Action("EmissaoRapida", "CND")', data: {…
-
1
votes2
answers141
viewsSelect with Linq set the first characters in Where
How can I define in Linq the same that I define in clausular Where do sql server in the form below .. select * from tb_CentrosCusto cc where cc.Clasificacao like '1.4.1%' In other words, I’m just…
-
1
votes0
answers35
viewsWCF webservice xml output formats
I have a webservice created by WCF that generates the following XML result <?xml version="1.0" encoding="utf-8" ?> - <feed xml:base="http://meudominio.com.br/WebServices/ABC.svc/"…
-
1
votes1
answer29
viewsGetting value inserted in Asp text field. Net
I have a GridView and in one of the columns I have a field textbox where I insert values into them. I would like to know how to get the typed values of the fields, I have already done the following:…
-
1
votes1
answer151
viewsError in Javascript for Chekar Asp:Checkbox
Good morning. I have the following code: HTML: <asp:CheckBox ID="ckPergunta" runat="server" onchange='SelectChoices(this);' /> Javascript: <script type="text/javascript">…
-
1
votes1
answer86
viewsOpen Asp.net web page
I created a program where I have a Vb form and an Asp.net web page. wanted to know how to open the web page by clicking a button that is in the Vb form
-
1
votes1
answer542
viewsTransfer List from one class to another
I want to handle a list in a method of another class and then return the treated list. I would like to know how to transfer this list to the other class. I did it this way: Main class: DataTable…
-
1
votes1
answer268
viewsChange the dynamic menu item in Asp.net, from "mouse Hover" to click
I have a dynamic menu in Asp.net and one of these menu items contains a submenu, but to access this submenu happens a "mouse Hover" event that does not appear in my code. I need to change this event…
-
1
votes1
answer56
viewsUse date Picker in Asp.net
I’m creating an Asp.net (Vb) website with a master page behind it and I can’t get the Picker date to work Can help me or indicate a Picker date even of the nuggets?
-
1
votes1
answer79
viewsReceive date from datapicker
I am creating a site where I have a datapicker using the following website I wanted when I was going to save to fetch the date that was chosen from the datapicker that appears instead of the date of…
-
1
votes1
answer953
viewsList existing folders/subfolders and files in a specific root folder
It is possible via code to list existing folders/files in a specific folder ? Example And play this list on a grid/table on the WEB for the user to know if the folder he wants to create already…
-
1
votes1
answer60
viewsError compiling Class Library + Microsoft.DNX.Packagemanager
I created a Class Library project in Visual Studio 2013 Express using framework 4.5, but when giving a Build in Class Library the following error occurs : ------ Build Started: Project:…
-
1
votes0
answers25
viewsPartial with Javascript
If I create a Partial this way below "given as example": <script> //Codigos C# Meus documentos.. //Codigos Javascript... </script> ... and within this partial contain code c#, this…
-
1
votes1
answer112
viewsJquery dialog not shown
I’m having trouble presenting a window of dialog onscreen. <asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server"> <link rel="stylesheet"…
-
1
votes2
answers577
viewsValidate Field with Avascript
I need to validate some field, forcing the user to provide the data before saving in database, if it does not provide the data, the edge of the control turns red stating that there is something…
-
1
votes1
answer80
viewsProblems with Entada mask removal in Partialviews - Asp.Net Core
I’m having trouble with input masks (bootstrap) on all screens. I found the following interesting: All my Views that are returned in the form of "Partialview", the input masks do not work. For…
-
1
votes0
answers64
viewsGet a value from the column of a Listview Asp c# by clicking on the link a
I want to get and move to another page a value from the listview column. The Listview fields: ID: 01; Name: Daniel; Field: field; <%# Eval("campo").ToString() == "nada consta" ? "nada consta" :…
-
1
votes1
answer355
viewsChecking browser and version with REGEX
I am working on a Vb.net MVC system and need to detect the browser and version. I will only use Chrome, and IE9+. I was wondering if I could simplify the verification structure using Regex. Below…
-
1
votes0
answers120
viewsWhat is the best way to replace a specific Web Api method for MVC architecture?
How best to replace the following method Sys.WebForms.PageRequestManager.getInstance().add_endRequest() Webform for MVC Structure?…
-
1
votes1
answer94
viewsInsert multiple Entity Framework items
I have the following method to add doclient data public void Alterar(CLIENTE Cliente) { using (Entity.DominioEntity db = new Entity.DominioEntity()) { //Alterar/Adicionar Telefone foreach (var item…
-
1
votes1
answer610
viewsFill date Automatically in ASP.NET MVC 5
Hello, all right? I need some help from you, I already searched here on the forum but I was not successful with the results. I have a small application where I control Digital Certificates, my…
-
1
votes0
answers17
viewsSwagger 3.x works with . Net 4.7?
I am trying to create examples of Response and Input by Swagger but I am not succeeding. So far, the most I could was creating the MOCK request entry, the output ones I’m not getting. Follows code:…
-
1
votes1
answer100
viewsValidate field with Customvalidator
I have a field that is filled with an automatic date , this field is validated with customValidator so that the date is not empty, the problem when the field is validated with empty and I click on…
-
1
votes0
answers110
viewsASP.NET MVC - Changing input to dropdown and popular with SQL Server table values
I have a partial view (in this case, one of those Razor Pages) of type "Create" created from a table in SQL Server (which is stored as an entity of a model in my application). @model…
-
1
votes0
answers34
viewsApplication . Net losing reference
Good afternoon. I have a web application developed in c# that uses connection to the Mysql database. I added the reference, the codebehind recognizes the Mysql reference without problems. Only when…
-
1
votes1
answer155
viewsUsing Dynamic Connection String in Asp.Net Webforms and Windows Forms
I’m working on a project with 4 layers (Banco, RegraNegocio, Webforms and Windows Forms). I made the following references: Webforms > Regranegocio > Banco winforms > Regranegocio > Banco…
-
1
votes0
answers563
viewsSet Fixed Port for Projected Web API Asp.net Core C#
I would like to know how to set up a standard fixed port for my Web API application on Asp.net core.
c# asp.net-mvc asp.net asp.net-core asp.net-core-web-apiasked 6 years, 1 month ago Nicola Bogar 123 -
1
votes0
answers224
viewsLayered communication
I have 3 layers , BLL, DAL and the Project. In the DAL layer is the ENTITY (automatically creates the Gets and Sets) and I want to use the Gets and Sets Because when it arrives in the project layer…
-
1
votes1
answer363
viewsHow to add fields dynamically and link them to viewmodel in Asp.Net
I have a 1:N relationship between Person and Contact. In my view, I can list all the contacts of a customer when it is opened. I need to implement the "New Contact" button so that when clicked,…