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
answer68
viewsDo not hide div when performing function
Hi, I’m doing a college project where I have to use web Forms. By default in my project I have a div that is None by default in css, and within this div is a small form, as follows the example:…
-
1
votes0
answers511
viewsReturn value in the Header of an HTTP call (POST) in the API
I’m using Postman to make the call at the API. That returns me this result in the body: that comes from this abstract class: public abstract class ResponseBase { public long SessionId { get; set; }…
-
1
votes1
answer50
viewsDoubt with DATAPICKER
I am using Datapicker and would like to ask a question about just enable a specific day. <script> $(function () { var datepicker =…
-
1
votes1
answer819
viewsOpen Modal by code-Behind
I have a modal, #myModal, and I would like that when I click on the button, I had a condition and that if it entered Else, it would open the modal. I created this code in javascript: <script…
-
1
votes1
answer99
viewsPublishing site on IIS gives debug error
I have a little strange problem. I’m developing a website MVC on VS2013, I have a website IIS configured for my project. So I make Publish of my website for the IIS, then when I launch the debug…
-
1
votes4
answers179
viewsCreate method that avoids code repetition in ASP.NET with SQL
I am building an ASP.NET site, using C#. I want to 'link' the site information (text and images) in an SQL Server database. This part of connection I’ve managed to do successfully. However, I have…
-
1
votes1
answer72
viewsHow to approve a model depending on another model confirmation?
How do I make for the View request only appear to the user, when the class confirmation Aprovacao for true. Follows the logic: 1- user creates the request and register, 2- user awaits confirmation…
-
1
votes1
answer66
viewsHow to recover all checkbox
In the code below, I have already tried to recover all the checkbox but I can’t bring anything, I would not like to put the ID, but recover numerous checkbox selected, how can I do? I put only 2 as…
-
1
votes1
answer225
viewsModalpopupextender how to close when clicking outside the modal
Working on a cool project, I’m using the ModalPopupExtender of AjaxToolKit. I’ve identified if I can use the attributes OkControlID and CancelControlID to define which control, a Button for example,…
-
1
votes2
answers1397
viewsAdding multiple Gridview lines
I’m trying to include several lines in a Gridview, but it doesn’t add the lines, it always replaces the first. I would like to know how to make it add several lines, and not replacing the first.…
-
1
votes0
answers137
viewsMore than one query in a very slow request in the first C#request
I have a method that requests data from the database and in this same method I call another method that also requests the database (mysql). public class Viagem { public int idViagem { get; set; }…
-
1
votes0
answers26
viewsDoubt Headerfixed Gridview
I am using this code to leave the top of Gridview fixed, however it is not Responsive, and a little short to fully fill the grid. <script language="javascript"> $(document).ready(function () {…
-
1
votes2
answers180
viewsASP.net Javascript does not recognize Textarea if it has a runat="server" tag
I have a problem with my Javascript. I am using a server code to do the numbering in a Textarea when the user gives Enter, however, if that TextArea has the tag runat="server" Javascript does not…
-
1
votes0
answers62
viewsError while deleting line in Gridview ASP.NET C#
I have the following GridView: If I delete a line from Grid and try to save, it returns the following error Input string was not in a correct format. This error occurs as soon as it enters the…
-
1
votes0
answers55
viewsUpdate rate Limits at Runtime using Webapithrottle is not working
I have a Webapi in ASP.NET MVC and I need to control the access limit, in addition, I need to change the limits values at runtime. I implemented as this example on the site Webapithrottle (section…
-
1
votes0
answers133
viewsReport Viewer only works locally
I developed an ASP.NET WEB FORM application and used Report Viewer for reporting and Mysql. However, when you upload the application to the hosting (Godaddy), Report Viewer does not work. I tried…
-
1
votes0
answers45
viewsRead response in json via a fetch with service-worker
I am implementing a web notification system, using service-worker and other components, in Asp.net MVC. 1° I already have my worker registered and started on the system. 2° I can display…
-
1
votes0
answers73
viewsC# pagemethod autocomplete Materialize error
I cannot execute my c# function through the materialize framework autocomplete. It does not execute and returns no errors. With bootstrap it works. I’m using Asp.net without codebehind, all in the…
-
1
votes1
answer623
viewsSystem.Nullreferenceexception: Undefined object reference for an instance of an object
I am developing a project in Asp.net, where I am trying to carry out this insertion in the bank. However when I try to perform this command, I end up stating this error message:…
-
1
votes1
answer73
viewsTransform a byte array into Dataset
I am reading an excel file (xls, xlsx, csv) and displaying its contents on a new page using Dataset. I can do for xls and xlsx, but for csv it’s not rolling. public static DataSet result; public…
-
1
votes0
answers35
viewsOpen Gridview2 by selecting a Gridview1 field
Hello. I’m trying to get every time I select a specific field within the Gridview1, open related data in an Access Database on Gridview2. That’s the code on my page. <%@ Page Title=""…
-
1
votes1
answer158
viewsArea Routes in ASP.NET MVC?
I’m working with areas but it’s not working the route and I created 2 areas, inside a created a folder called Cadastros and inside the other a folder called Tabelas. Cadastrosarearegistration.Cs…
-
1
votes2
answers706
viewsMultiple error Object sets per type are not supported
I have a bug in my application. I am working with Identity for user authentication however when calling Controller created is returned me the following error: Multiple Object sets per type are not…
-
1
votes0
answers249
viewsError connecting to database via Visual Studio
I am trying to add a database to my application, the first I got, however when trying to add another database is returned me the following error: A network-Related or instance-specific error…
-
1
votes1
answer33
viewsHow to make Telerik Radhtmlchart responsive?
I have 3 graphics RadHtmlChart of Telerik on a page, I’m dividing this page into 3 so that they are always displayed, without the need to roll a scroll to view them. I need that when resizing the…
-
1
votes1
answer82
viewsField validation via jQuery correctly
I have the following validation for the TextBox justification. But even returning the message and clicking the OK button the system validates the deletion. The right, should return the message and…
-
1
votes1
answer104
viewsIspostback Asp.net
My Asp.net application (aspx) has two Label-type Controls that need to be filled with information from a Request Querystring. In Page_load I do the treatment so that the Controls of type Label…
-
1
votes1
answer169
viewsHow to leave the position of a fixed div according to the Raddiobutton change
I have the following screen that once changes the option of RaddioButton to div goes down or up. I wonder how to leave fixed in a position. Selected the Cycle option: Selecting the Year option:…
-
1
votes1
answer141
viewsUsing Arraylist to update the information in c# "checkedlistbox"
Fala galera to with a difficulty in picking my strings to update my information. My scenario is this: i have a checkedlistbox where I have my strings in total are 9. In the input part of the data I…
-
1
votes1
answer869
viewsPass an object to Modal
I have a Foreach in a table, I need as soon as the user clicks on a row, open a modal with the object data contained in that row. The Foreach: @foreach (PedidoModel pedido in @Model.Entidades) {…
-
1
votes2
answers151
viewsHow do I use two checkboxes in a C# mvc view to choose the query type?
Controller.cs public ActionResult pesquisarCliente(string _codigo) { var r = db.Pedido.AsQueryable(); if (!string.IsNullOrEmpty(_codigo)) { r = r.Where(n => n.Cliente.Contains(_codigo));…
-
1
votes1
answer121
viewsTo create a list where you list all existing items within an order
I have the following screen that generates when making a request. On the field Order items, I need you to separate by items and not lump into one. Example as it is currently coming out It’s bringing…
-
1
votes1
answer2364
viewsThe template item inserted in the dictionary is of type 'System.Collections.Generic.List`
I am developing a project where I have the Patient class inherited from the User class and I am using the Entity Framework to map the database tables by type (TPT), when I try to access the Patient…
-
1
votes1
answer687
viewsOpen and close connection each time you run the looping
I have an application that runs a procedure, saved in a DataTable and then do a looping to add the data in an excel spreadsheet. My question is, if I open and close the connection to each insert…
-
1
votes0
answers284
viewsWeb Application in ASP.NET MVC CRUD with MS access
I’m doing a job, and I need to do a web application to track tasks. The requirements are those of the topic. It is a web application made in ASP.NET MVC and access database creating a CRUD. I’m…
-
1
votes0
answers104
viewsHtml scripting with iframe
I have an application that serves with a HELP for the system, that is, the user clicks on the question mark and instantaneously opens a new tab with this HELP directly on the equivalent page, but as…
-
1
votes1
answer86
viewsError sending a route to the same api/Controller/Action in a Webapi
I’m having the following error, I perform the following operation: // POST: api/Funcionario/AddFuncionario [HttpPost("AddFuncionario")] public IActionResult AddFuncionario([FromBody] Funcionario…
-
1
votes1
answer185
viewsWhy does this @Html.Dropdownlistfor not accept htmlAttributes?
I have a read-only view in some cases. I don’t want to use javascript as it can be disabled on the user side. At last... When I do this (for testing) it works perfectly. <div…
-
1
votes1
answer72
viewsHow to get panels from a daughter page on Asp.net
I’m trying to get the panels from a daughter page on Asp.net, but when I use the page. Controls, it only retrieves the elements from the master page. I have tried this, Page.Page, but always the…
-
1
votes0
answers244
viewsThe specified value "2017-00-06" does not conform to the required format, "yyyy-MM-dd"
I have a field filled with date: <asp:TextBox ID="txtValidadeIni" runat="server" CssClass="form-control" MaxLength="10" type="date" name="date" pattern="[0-9]{2}\/[0-9]{2}\/[0-9]{4}$"…
-
1
votes1
answer81
viewsForeach in an Actionresult of details
I have an entity Registering who owns a Professor, the Professor has a list of Registering. How can I create a foreach in View details of Registering to list the name of Professor which belongs to…
-
1
votes0
answers288
viewsUsing multiple html pages with the same Angularjs + ASP.NET MVC controller
Using the routes with Angularjs, When entering the Author.html page with the route /Autor, is listed all authors registered in a table where a link is created for each author’s edition, according to…
javascript asp.net-mvc angularjs asp.net laravel-routesasked 6 years, 10 months ago Nicola Bogar 1,149 -
1
votes1
answer193
viewsDeserialize Image in ASP.NET Webform
Well I am with a doubt about the deserialization of an image in webforms, I am working with Oracle database that is my context and using the Entity framework for image I am using BLOB, I was able to…
-
1
votes1
answer1350
viewsConvert file to Array of bytes
I’m trying to convert a received file into FileUpload (ASP.NET tool) for a array of bytes and then the array for a string. But when trying to use the Encoding Visual Studio accuses an error saying…
-
1
votes2
answers1243
viewsReceive images in ASP.Net Core and save to Entity Framework
Good afternoon, Can anyone tell me how to get an image on ASP.Net Core ? I have the html page that tries to send to the server: <form method="post" enctype="multipart/form-data"…
-
1
votes1
answer731
viewsOnchange function does not work
Good afternoon, I have a function that checks if the typed email exists in the bank, and if the email is valid. Follow the function: <script type = "text/javascript" > function…
-
1
votes0
answers512
viewsHow to hide properties of an ASP.NET Core model entity only in JSON rendering?
I am starting studies with ASP.NET core Web Api, and am implementing the User class, which has a Password property. Logically I don’t want the password to be visible in the Jsons of the api. I’ve…
asp.net entity-framework asp.net-web-api asp.net-coreasked 6 years, 9 months ago Rômulo O. Torres 437 -
1
votes2
answers302
viewsForce updating an element in HTML/Javascript/ASP.NET
On the site I am working on, the user has access to a text editor to change the Labels in certain photos. When editing the text and giving "Submit" in the responses, the texts do not update on the…
-
1
votes1
answer1049
viewsHow to solve site publishing problem usitlizando IIS
The site/system will be placed on the local computer for demonstration I posted the site on IIS to be used locally on the machine, only this returning me the error: Description: Error while…
-
1
votes1
answer317
viewsPass Aspx page values to Aspx.Cs
I have an Aspx page the following code which loads a list of items. It is working, the list is displayed normally. <table width="100%" class="table table-striped"> <tr>…