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
votes0
answers65
viewsStrange text appearing on page after saving a file
I’m creating a C#text editor, but when I saved a file .html, on the page appeared this error Code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data;…
-
0
votes0
answers113
viewsDynamic Carousel image resolution
I’m having problems solving the images that comes inside the carousel, have to set a pattern by css or javascript ? follow the images follows my aspx code: <div id="paginas"> <div…
-
0
votes1
answer102
viewsRedirect users not indexed Asp.net
I have an Asp.net MVC page, using entityframework, and I have a login system : public ActionResult Index(LoginModel model) { if (ModelState.IsValid) { try { if (Membership.ValidateUser(model.Email,…
-
0
votes2
answers518
viewsAjax always falls into 'error' even when successful (C# MVC5)
Come on. I have the following method: C# [HttpPost] [AllowAnonymous] public JsonResult PostOnCRM(string textBoxFirstName, string textBoxCountry, string textBoxLastName, string textBoxEmail, string…
-
0
votes1
answer242
viewsHow to share a webservice through an FTP?
Contextualization I’m developing a C# application to access a test webservice I created. This webservice is simple, it only has a method that returns a string. The webservice I created by Visual…
-
0
votes1
answer67
viewsView photos by Repeater with sql server Using split
I’m not able to upload the photos in repiter making a carousel coming from the data bank, I can not find anything on the web related to this problem follows the Cod ASPX Imoveldetail <section…
-
0
votes1
answer250
viewsmake a button to end user session (Asp)?
People I’m developing a site that allows the user to Log into his account and such, but I need q after q he Log this login button to disappear and appear one to end the session (a quit button).…
-
0
votes1
answer739
viewsLINQ Return from the list is with all the repeated records
I’m having problems performing a select (using LINQ) in a View in SQL Server 2012. The values stored in the bank are as below: ID_Acomp ID_Pessoa Nome Data 26 300 MONTEIRO 01-01-2016 27 300 MONTEIRO…
-
0
votes1
answer144
viewsColor status in gridview Asp.net C#
I need to make the text of the exam status of an app appear in different colors, in case wait black, marked green and not performed in red, these status are in an Enum. Follow my code, if anyone…
-
0
votes2
answers1356
viewsDatareader opens and gives error by not closing
I have a DataReader on my website to read the data that the bank brings. There when two people enter different computers, and even different browsers, opens a connection, but at the time I will read…
-
0
votes1
answer137
views.Include() does not carry child class - Lazyloading C#
I was using the DDD Model with Repositories and with 3 layers of data, (Serviço,Repositorio and Dominio), with the help of some users here I decided to change the project and now I ended up removing…
-
0
votes0
answers67
viewsRun build of Solution Asp.net pre-compiled webforms in Team Services
Many weeks of research and testing after, I find myself at "a dead end" regarding Team Services. I have a Solution with project in Asp.NET Webforms in the Team Foundation of VSTS. For operational…
asp.net webforms team-foundation-server visual-studio-onlineasked 7 years, 10 months ago Fernando de Abreu 1 -
0
votes1
answer103
viewsError searching by name Access ASP.NET C#
I have an error searching by name(value entered by user) in the access database he says that the values in the inside of the parameters are null. Follow the code. Person.Cs responsible for the logic…
-
0
votes1
answer26
viewsError accessing array indices inside a LINQ expression
I am doing a query to search all weather with a certain date, but when executing occurs the following error: An exception of type 'System.NotSupportedException' occurred in…
asp.net-mvc asp.net entity-framework linq asp.net-web-apiasked 7 years, 10 months ago Daniel Dias 25 -
0
votes1
answer245
viewsIs it possible to make a Repeater line not repeat ? c#
Is it possible to make a Repeater line not repeat ? Or to bind a few lines of the FooterTemplate of Repeater ? I need the last line I tried to put on Footertemplate not to repeat, because it’s the…
-
0
votes1
answer150
viewsConnection string for different logged in users
I am doing a job and I came up with a possibility that I would like to know if it is possible to realize: the purpose of this idea is to alternate a certain connection string as per the user logged…
-
0
votes2
answers191
viewsproblem with style sheet on Asp net
I use visual studio 2012. I’m working with Asp net. I have a style sheet inside a folder and reference it on an aspx page. When I create a new html tag, a <h3> for example, and I make simple…
-
0
votes1
answer746
viewsControl 'Contentplaceholder1_name' of type 'Textbox' must be inserted in a format tag with runat=server
I’m doing a job for the college, a Forms web application on Asp.net C#. I have a problem and until then everything was going well, but suddenly it is giving this mistake. I searched some related…
-
0
votes1
answer101
viewsC# ASP.NET Get method with parameter returning 404
Good afternoon, folks, I was wondering if anyone could assist me. My Web Service has a Get method that returns the entire list of Products, however I would like to create a method that it returns…
-
0
votes1
answer88
viewsID "conflict" within Datalist
Good afternoon to everyone. Well, I have a datalist. Then I put a Repeater in, so far so good. But then when I execute, only the first Remap appears stylized the way I want. The rest I think should…
-
0
votes1
answer370
viewsC# ASP.NET Parameter search method returning Error 500 Internal Server Error
Good afternoon, I’m having a problem with a method that searches the products and returns a specific one according to the past code. I am getting error 500 Internal Server Error when I try to use…
-
0
votes1
answer58
viewsHow to hide parts of a page based on user permissions using Asp.net Identity?
I have a project in mvc and I am using the Asp.net Identity, I have different types of profiles, example Adm / tutoring / master / user and I have access areas for each profile, in addition to the…
-
0
votes1
answer62
viewsIs it necessary to enable Cross-Origin Requests for ASP.NET Web API?
I made a test application, where I point to a web api that’s online, the address of this api works and return the data if it’s posted to the browser URL, it does a GET. In the test application I…
-
0
votes1
answer103
viewsTag with display: None - Asp net
I have some tags <h3>, <p> with display: none or empty (usually use to display messages or some div), when clicking on some system event, these tags appear: display: block or are filled…
-
0
votes1
answer294
viewsCreate thumbnail without stretching/shrinking the image in c#
I have this code that creates me thumbnails for my project: //**** INICIO GUARDA THUMB ********** // valores para altura e largura do thumb: int resizeToWidth = 260; //px int resizeToHeight = 260;…
-
0
votes0
answers180
viewsWeb alert in c#script
I am developing a web system on Asp.net and came across a problem. On the return of your Catchs, I return an error through an Alert to the user thus: try{ ... } catch(Exception ex){…
-
0
votes0
answers24
viewsError 500 when trying to Upload Video with Xmlhttprequest Asp.net/C#
I have an application that uploads video using XMLHttpRequest when I uploaded a small video (386Kb) the video goes up normal, but when I try a larger video (20Mb) it does not reach the function C#…
-
0
votes0
answers269
viewsSQL query for ASP.NET page with C#
On my client’s website, I have an SQL query that brings the result of the level of readiness of several collaborators. Only that, for now, I can only transfer to the page the result of the query in…
-
0
votes2
answers212
viewsPermissions management using Active Directory
I am developing an ASP.NET C# application and at the moment I am at the login point which is almost finished. I’m using<authentication mode="Windows"></authentication> and a code that…
c# asp.net security-guard authentication active-directoryasked 7 years, 7 months ago Andre Brandao 109 -
0
votes1
answer757
viewsASP.NET MVC & WEB API token authentication
I have a question about the token bearer. I have two scenarios in my application. 1º is an admin panel that works with ASP.NET MVC and Angularjs and the 2nd is the WEB Api that exchanges requests…
-
0
votes2
answers395
viewsClose an Iframe from within 2 ASPX Iframes
I am in need of help to reload an iframe from within 2 iframes , already tried Parent.Document, Response.redirect, but does not occur what I request. If I use Response.redirect(url), Iframe1 is…
-
0
votes0
answers75
viewsHow to know when the file was loaded 100%
I have a feature that does the following: Load a video from the user’s PC using C# Put the video link in src of an HTML5 using Jquery The problem: It puts the link and shows the player, but as the…
-
0
votes0
answers49
viewsUpdate BD Website
I need help because I’m making a website where : I show the values of the BD lines and have the option to update the data via Web. When I try to update it gives me the following error: Description:…
-
0
votes1
answer773
viewsPagseguro Notification API receiving 403 error
Hello, I am doing the integration of the Pagseguro API in a transparent way and in the test environment (Sandbox), when I make a change in the status of the transaction there in the Pagseguro panel,…
-
0
votes0
answers254
viewsUnable to locate column 22276451.
Good morning, I’m developing a code that can accept the X and Y values of a Chart I entered in Asp.net. For this I made a query to sql server so that it could be returned to a column media, until…
-
0
votes2
answers355
viewsError 1 The type or namespace name 'Datareader' could not be found (are you Missing a using Directive or an Assembly Reference?)
Good afternoon, I was performing a code to query my database when I appeared these error: Error 1 The type or namespace name 'Datareader' could not be found (are you Missing a using Directive or an…
-
0
votes1
answer327
viewsNew Line Stringbuilder message Box C#
I would like to show in a messagebox the records with line break. but the result is this: I’d like you to stay line by line; My implementation is like this : When I’m debugging, no builder.append I…
-
0
votes0
answers97
viewsIf’s condition is not accepting in Asp.net mvc Razor
I want to update on one condition, however, you are updating the data without seeing the if condition using System; using System.Collections.Generic; using System.Linq; using System.Web; using…
-
0
votes1
answer286
viewsUpdate multiple form files after jquery/ajax post request
I have two requests post in the form, one inactive and another activates a register, as they are equal I will display only one to exemplify: function inativarCadastro(cod) { $.ajax({ url:…
-
0
votes1
answer93
viewsASP.NET C# Dropdownlist doubt
I have a module that generates reports on excel, being one of these reports, the module called Occurrences. Where through DropDownList it informs me all the records of the table OcorrTipoEntr, that…
-
0
votes1
answer164
viewsUpload image inside Peater C# Asp.net
Hello, I am new here and I am in need of a help. I already searched the net and the solutions I found do not work. I have an image gallery editing screen, made with a Repeater, in each image listed…
-
0
votes1
answer100
viewsHow to change and maintain the mapping of classes and properties using ADO.net
When using a database I have tables and columns with names like: - tb_usuario usu_id last name usu_data_nasc - tb_product pro_id pro_name pro_desc_resumida pro_desc_completa When using ADO.NET…
-
0
votes2
answers144
viewsEnter call Button in Google Chrome and Firefox
I need that when the user presses the enter key, do the button click event. I’m doing it this way, but it’s not working in Google Chrome or firefox: if (!IsPostBack) {…
-
0
votes1
answer283
viewsProblem with ASP.NET Checkbox "The Parameter Conversion from type 'System.String' to type 'System.Boolean' failed."
I’m having the following problem with a checkbox I have a checkbox list that is dynamically loaded (as the items that exist in the bank a checkbox is generated). I currently have only three items…
-
0
votes0
answers109
viewsUse user input values in Asp.net c# webforms
I created a form for the user to update the registration data. The user’s "old" data is stored in session variables that fill out the form as soon as the user clicks to update registration. The…
-
0
votes0
answers792
viewsCannot load file or Assembly 'Microsoft.Office.Interop.Excel'
I am trying to open an old ASP.NET project on my machine and I am getting the following error when I try to run it to view in the browser: Server Error in '/' Application. Configuration Error…
-
0
votes1
answer79
viewsBy clicking on DIV clear textbox
I have some DIV that open a modal, but I would like that when clicked, clear the textbox, here is where I have the DIV that when clicking opens the modal: <div class="link-box"> <a…
-
0
votes1
answer375
viewsClear Modal with Button Without Saving Data
I have a modal where I use it to include and change the data. I check if the field txtid is completed. If you have a change, it is not included. To fill in the fields the user needs to select the…
-
0
votes2
answers600
viewsRecover image in SQL SERVER and put in a REPEATER list
Today I recover information from a database and I list in a REPEATER, until then all blz. But I also need to take an image from the database and show on this REPEATER. Follow below as I show the…
-
0
votes2
answers3218
viewsClear Modal Bootstrap
How can I clean the modal data, sometimes the user enters the data but not saved, and if he opens the modal again, the data is there, I would like to clean this data, how should I proceed? Sometimes…