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
-
0
votes2
answers386
viewsCall function by passing field
I have a function, that when clicking on the dropdownlist, it checks and changes the mask of a field: function HideTextBox(ddlId) { var ControlName = document.getElementById(ddlId.id); if…
-
0
votes1
answer121
viewsValidate a Textbox array in Javascript?
Hello my doubt is the following, I have a js function like this: function testeCampos(elemento) { //Recebe lista de campos para valida��o var camposArray = new Array(); camposArray = elemento;…
-
0
votes1
answer28
viewsHow to remove the automatically generated gridview table from Asp: Templatefield?
How to remove the automatically generated gridview table from Asp: Templatefield? I’m using a gridview like this <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false">…
-
0
votes0
answers50
viewsWrong binding in <select> ASP.NET MVC <option>
When I give a post in the form for the Controller, the Binding in asp-for="VehiclePlate" picks up the value of option of select (@vehicle.Category). However, I want to catch the text of option of…
-
0
votes1
answer27
viewsSave the form so that when returning an error it does not erase the inputs
I’m making a registration system, when the data is correct he saves in the bank in a good, when it gives error it returns where it is wrong but it erases everything that has been filled or is not…
-
0
votes0
answers380
viewsThere has been a violation of the referential integrity restriction
I am getting this error every time I try to update an object in my SQL database via Entityframework, the error is as follows: A reference integrity constraint violation occurred: Property values…
-
0
votes1
answer327
viewsHow to Recover Data from Input to Codebehind ASP.net
My question is the following: I have my HTML code and I am validating the fields with Javascript, but I would like to call the function and pass the value in Codebehind. Example String name =…
-
0
votes1
answer74
viewsI can’t open my grid view link
I made the following code <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" DataKeyNames="ID_PTD" DataSourceID="SqlDataSource1" EmptyDataText="There are…
-
0
votes1
answer133
viewsAsp . Empty Net Dropdownlist After Form Submit
I own a dropdownlist which is dynamically filled after two textboxes have been filled in. When I do form Ubmit the dropdownlist is empty, even if dynamically filled. Dropdownlist…
-
0
votes1
answer311
viewsHow to format a field with ASP.NET Webforms C#
I need to format Textbox <asp:TextBox runat="server" id="txtValor" MaxLength="20"></asp:TextBox and I’m having a lot of difficulty, first this grid is open in a modal, I mean, when I create…
-
0
votes0
answers90
viewsSignalr Cannot read Property 'Myhub' of Undefined
Good afternoon, I am trying to apply the Signalr library on a Master page site in Webforms . aspx, but I am having error reading the Hub file. I can’t get the site to see such a file. I’ve run on a…
-
0
votes0
answers145
viewsWebsite slowness when using Signalr for notifications
Good morning, I’m developing a website to run in local intranet format on IIS. With technologies asp.net ADO in format WebForms, I’m using the library SignalR to monitor a simple table on SQL Server…
-
0
votes1
answer443
viewsUsing SQL Query with Asp MVC5
how do I execute an SQL query with ASP MVC5 + Entity? Example, I need to use "Count" in a table called "templates" am dev php and am learning now Asp.net framework mvc 5 and have no idea how to do…
-
0
votes1
answer105
viewsHow to avoid having to refer to the RU?
Hello, everyone. I basically have a data access layer with EF6 and a presentation layer (Asp.Net Webapi). I am unable to make it work without the presentation layer referring to EF. Does anyone know…
-
0
votes0
answers55
viewsHow to write from the popup to the parent page?
I am in doubt in the following situation, I am returning a PDF to the popup (Page son). I would like to close this Popup and Write(pdfDoc) on the parent page) //A propriedade ContentType especifica…
-
0
votes0
answers32
viewsIt is possible to create a pager in a view-Component?( Asp.net MVC View-Component)
I have a view with a view-Component What a list of news stories. I want to make a pagination of this news within this view-componet. Paging should be inside the view-Component, as do for this html…
-
0
votes0
answers51
viewsApply . css styles before displaying page
I don’t have much experience in web programming. On the website I’m creating was having a problem with the graphical formatting of . css not be soon applied and create weird effects when showing the…
-
0
votes1
answer137
viewsCannot serialize Member * because it is an interface
Staff bumped into above error while trying to create a webservice and I’m having a hard time interpreting and treating him. Detailing what I did: Within a project InpartSaude.WebApi.Api in one of my…
-
0
votes1
answer506
viewsWebservice REST with authentication [ID, CPF, User, Password]
Hello, I’ve been searching the web for a while but I can’t find clear answers.. I want to implement a webservice Rest, with tokens and etc for security, and the webservice consists of only GET for…
-
0
votes1
answer678
viewsProblems referencing Javascript and css files - Asp.net Core
I’m trying to adapt a layout model that I found on the net, in my Asp.net core, but I’m not being able to make it work.... I created a Content folder at the root of the project and within it I have…
-
0
votes1
answer174
viewsGet Textbox value inside the Repeater with Javascript Event Onchange
Good afternoon, I’m not getting past the value of a TextBox asp.net created within a Repeater as a parameter for a function javascript event onchange. I need to pass two parameters the first is one…
-
0
votes2
answers53
viewsAttach dropdowlist item and a li Asp.net mvc
I have a view with dropDowlist that contains data that comes from the database and just below put a buttom that when I click will attach the selected dropdownlist item in a list, I made a code here…
-
0
votes2
answers436
viewsBootstrap message, apply Location.Reload upon termination message
Good afternoon, I’m trying to apply location.reload at the end of a messagebox after effect .remove() 2 seconds but I’m not familiar with the javascript someone could help me with the code: function…
-
0
votes1
answer950
viewsForeign key Entity framework Asp.net mvc
I have My Repair and Repair Table and I’m getting the following msg when I try to update my Migration: "The introduction of the FOREIGN KEY restriction 'Fk_dbo.Fixeddbo.Pecas_pecasid' in the 'Fix…
-
0
votes1
answer215
viewsCancel bootstrap JS default procedure
Good morning, I’m learning to program web now( studied C# last year in college and this year is web, so I wanted to get ahead ), I will program in Asp.net, I did all my "form" in bootstrap, visually…
-
0
votes2
answers53
viewsSend Post with Template data that attributes are classes
I’m trying to send a Post through a form, but in the controller the attributes that are classes are arriving as null, as I should do so I can get the data right so I can register in the database?…
-
0
votes1
answer198
viewsRecover data from View Asp.net
I have following problem, when I place an order in the quantity field when I place a certain number I have to arrive if I have in stock in the bank, and if I have to reduce the quantity in the…
-
0
votes2
answers31
viewsCompare shorter term between Asp.net columns
Making order system, I have several warehouses, let’s assume I have to compare 2 warehouses that have shorter delivery time using entityframework,how would I do that? I’m trying to do more it just…
-
0
votes1
answer246
viewshref with Submit on Asp.net core MVC
I have a _Loginpartial view in which you have a link to QUIT (Logout system). <li role="presentation"> <a href="javascript:void(0)" role="menuitem"> <i class="icon wb-power"…
-
0
votes0
answers603
viewsShow Total order value on View Asp.net mvc
I have a View Index where I will show the name of the store the order total and sum all orders and show the total value. I created a Reportstore. I can get total orders. In my table it is already…
-
0
votes0
answers385
viewsSqlbulkinsert- Import Excel Spreadsheet
I have a dotnet application to import spreadsheet, but I don’t know why I’m not able to enter the information in the database. My code is below. using System; using System.Collections.Generic; using…
-
0
votes1
answer83
viewsSeed Method for Many-to-Many Relationships
I am developing a simple application in MVC using Entity, being of registration of products, I am using the metodo seed to insert the values in the table, but in the relationship Many-to-Many I…
-
0
votes1
answer146
viewsSet Value Default @Html.Dropdownlistfor via Json - ASP.NET MVC5
I am making a timekeeping page using ASP.NET MVC5. The user enters the markup data as shown below: However, if any error occurs in the registration of the tag, the controller returns the model to…
asp.net-mvc .net json asp.net asp.net-mvc-5asked 6 years, 7 months ago Wagner Barbosa Do Nascimento 43 -
0
votes1
answer48
viewsCreate List of actions already passing the parameters and then run them as parameters passed
I wanted to know if there is the possibility of creating a list of Actions already passing its parameters to execution, because the number that I will pass to the execution of the same can be…
-
0
votes1
answer272
viewsReferencing non-static object in a static method
Good evening, I need to reference a component PlaceHolder Asp.Net in a static method in the code-behind C#, this method is called via AJAX for front-end see the code: Method call by the Form aspx…
-
0
votes2
answers284
viewsConvert number c#
How to convert R$3,852.00 and save in these bank . and ,? Follow my code. public ImportProcesso() { ImportProcesso processo = new ImportProcesso(); processo.dataReqPgto = new System.DateTime();…
-
0
votes0
answers58
viewsError loading google api Chart in ASP.net
When I took the example of the site worked, but when I include a new Webform and in a new project and paste the codes of the codebehind example in VB.net and the aspx code does not work, gives the…
-
0
votes2
answers1024
viewsUpdate Updatepanel after running ajax without page refresh
Good afternoon, I need to update components that are inside a UpdatePanel page aspx after insertion via Ajax. The Ajax performs a function on code-behind in C#, and happens to reload the entire…
-
0
votes2
answers736
viewsSystem.IO.Ioexception: The user name or password is incorrect
I built an application using Asp.net where in a few moments of the application I need to access a directory and scan files and sometimes move and delete them. On my micro worked perfectly, but when…
-
0
votes1
answer68
viewsDoes not display data on the Web Api Asp.net mvc screen
I started studying a bit of web api using Asp.net, I’m doing a very simple example where I just want to list the data from the employee table, but I get error: No Mediatypeformatter is available to…
-
0
votes2
answers998
viewsURL redirection via web.config
I need to perform a page redirect http://exemplo/comunicacao/ to the page http://exemplo/caminho_novo/comunicacao. I’m performing the following on web.config : <?xml version="1.0"…
-
0
votes1
answer492
viewsPostback Asp.Net Webforms
I just started working with WebForms and it became a question, due to always messing with the asp.net mvc. Supposing I have one DropDownList and populated the DataSource of it with various records,…
-
0
votes1
answer264
viewsNot null parameter in Int fields
I am creating an application in Asp.NET MVC (I am using the Scafffolded feature), however, all the whole fields are being required to be filled in, as I remove this parameter? Note: I have tried to…
-
0
votes1
answer113
viewsTranspose list of objects
How can I transpose the columns of a table like the one in the image below For this format: Mercado | Semana 5 | Semana 6 FUT AUD | 0.9986 | 1.0035 FUT CAD | 1.0000 | 1.0062 FUT CHF | 1.0059 |…
-
0
votes1
answer140
viewsHtml2canvas ASP.NET Core
I am trying to add html2canvas to my ASP.NET Core web site. In the documentation, they say to use: npm install html2canvas When I execute this command, the html2canvas is installed in:…
-
0
votes0
answers28
viewsValidating Checkboxlist
I am using this form validation with text fields. However, I am not getting it with checkboxList. Is there a way or a way to do this? Follow the code below. function form_validation() {…
-
0
votes1
answer1434
viewsSequence contains error in Elements Asp.net
Good morning. I am trying to send an ajax request in jquery, but it returns this error. Sequence contains in Elements, I’m wanting to present data in bootgrid public…
-
0
votes1
answer468
viewsForce POSTBACK
I’m passing information on the variable click_teste for a TextBox with id others that TextBox is a parameter for a query of a Gridview. I need that when receiving the data the textbox make one…
-
0
votes1
answer646
viewsModal boostrap inside Updatepanel after event click dark background
I have a modal boostrap Poup within a component ASPX UpdatePanel inside that modal I have a button ASP btnEditar with event click to perform a update. After executing the event the modal closes but…
-
0
votes1
answer105
viewsRetrieve Listview values - Getelementbyid
Good night! I have a listview and I am displaying the values inside Span’s, I would like to take the value of span when clicking but as Span’s have the same ID I always get the same value. Does…