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
votes1
answer55
viewsView coding
I’m having trouble setting the encoding of a page I did on ASP.NET Core (keeps appearing ? in letters with accents). Us MVC you used to do the configuration on web config. of the project, but now…
-
0
votes1
answer520
viewsProblem with ASP.net and Godaddy hosting server
I am facing a rather annoying problem for a few days that so far I have not been able to find a solution. I hired a Godaddy hosting (Windows Deluxe hosting with Plesk) to move up my projects in…
asp.netasked 7 years, 4 months ago Allan Cabral 21 -
0
votes2
answers801
viewsUpdate Textbox without Postback
I need to update the change textbox when the textbox receives customer value, is filled, I use this function inside the textbox receive customer value in the event Textchanged: protected void…
-
0
votes1
answer251
viewsRPT file conversion to PDF c#
Good morning I have the following file on .rtp and, I need to convert/transform the data in that report to pdf. Saldoestoqueempresa.rpt I need it done through a click event.…
-
0
votes1
answer236
viewsHow to apply the 3-layer concept with Gridview C#?
I have a project where I present a Gridview in a Webforms project Asp.net C#. I tried to apply the concept of 3 layer in this way, but the page only of the Reload and the grid does not appear in the…
-
0
votes1
answer26
viewsSend Email Configured Email
I would like to put in my application, sending email. But I would like it to be all configured, that the user could make the settings, before sending the email. For example: put in italics, bold,…
-
0
votes0
answers1101
viewsHow to convert a page . aspx to PDF and attach in email in VB.NET
I have a Link that opens a boleto on a .aspx. I need to convert this link to PDF, IE, convert the Boleto in PDF and attach it in the email I send via VB. I tried the steps of this tutorial:…
-
0
votes1
answer42
viewsProblems with Session distinction when two people log with the same user
I have a session problem in a project where I use C# and ASP.NET. If two people log in at the same time with the same user the section variables get the same values. To be sure I took the ID of the…
-
0
votes2
answers347
viewsHow do I make my Dropdownlistfor equal to Select
How do I leave my Dropdownlistfor, like this select where the first field cannot be selected. <select> <option value="0" selected disabled>Selecionar</option> <option…
-
0
votes1
answer432
viewsHide password from database
Good Afternoon, I have some websites whose database password, I store in a connection string, on the web.config. Any programmer who has access to hosting ftp, can read the web.config file and view…
-
0
votes1
answer226
viewsJavascript paging from Asp:Gridview
I have the following code: Javascript: <script src="../js/plugins/datatables/jquery.dataTables.js" type="text/javascript"></script> <script…
-
0
votes2
answers722
viewsData validation ASP.NET MVC works but does not display message
Good night! I am having a problem in my project where I am trying to validate with date Annotations and is working, only register at the bank if meet the validations, but the problem is that the…
-
0
votes3
answers138
viewsDynamic dropdown list and comic return image does not work
Dropdown dynamic list and database image return does not work after the application is published on IIS. When Inspecting through the browser I had the following error: HTTP 404.0 error - Not Found…
-
0
votes1
answer55
viewsNo e-mail enough
I am trying to assemble a code for sending email on my page. No error occurs, but I also do not receive the email. Would anyone know why? Default.aspx.Vb Protected Sub btnEnviar_Click(ByVal sender…
-
0
votes1
answer169
viewsMaster page does not load in ASP.NET
My master page does not click on ASP.NET. I know why it does not load, I do not know how to solve. The master page is in a folder behind the page "Isaque.aspx". Code : <%@ Page Language="C#"…
-
0
votes1
answer768
views -
0
votes1
answer61
viewsReturning to the main page when accessing an invalid url
As I redirect the user to the main page of the application, in case it tries to access a url invalid. For example, www.teste/teste.html, in case the page does not exist then system directs the user…
-
0
votes1
answer197
viewsStrange error on screen, debug does not show nda
In Webform, this giving some error, that when debugging in Visual Studio (F5) it does not accuse any error, but when it comes out the result on the screen would be like an internal error(500)…
-
0
votes1
answer497
viewsData type Mismatch in criteria Expression + Excel data handling
Check to see if the logic is consistent, please. The procedure of this code is: Consult a procedure and store her data in a DataTable: private DataTable ExportPerformanceEntrega() { try {…
-
0
votes0
answers21
viewsHow to get Windows username
I am trying to display the company’s employees name on an intranet portal. To use as a greeting, for example, Hello "So-and-So". The way I came closest to this was through Asp using the code below:…
asp.netasked 6 years, 11 months ago Felipe Scars Silva 25 -
0
votes2
answers478
viewsDiv for Name and Email Registration
I am developing a site using HTML so far without problems, what I need to do is to register the NAME and EMAIL of the visitor of the site. For this I created a form in ASP.NET that performs the…
-
0
votes1
answer3075
viewsOpen Modal Bootstrap from code-Behind
I need to open a modal when the password or user are incorrect, it will be on Else .. but does not open the modal protected void bntLogar_Click(object sender, EventArgs e) { Registrar criptografia =…
-
0
votes1
answer35
viewsRegistering attributes from different classes in the same View
I have a Teacher class that has a User, and I want to register the User fields in the Teacher View. How can I be doing this public class Usuario { public int Id { get; set; } public int Matricula {…
-
0
votes1
answer142
viewsVertical scrollbar in DIV in ASP.NET
I have a form inside the masterpage content2. Is it possible to place it inside a div with a scrollbar in the vertical that descends only the form in question? What’s the simplest way to do that?…
-
0
votes0
answers140
viewsSelecting a file via javascript
I have a folder with several pdf files and needed to select the pdf 1348.pdf, but via javascript, is it possible to do this ? Would I have to use an Handler ? and how would I return this value…
-
0
votes1
answer109
views -
0
votes1
answer150
viewsSession with Ilist on Asp.net mvc5
How do I create a Session with values from an Ilist array on Asp.net mvc5? If so, how do I foreach to get this information in the view html?
-
0
votes2
answers31
viewsHow to create a help Function
How can I implement a feature in jQuery / Javascript that a question mark type appears as soon as the user has 2 clicks on one TextBox and when he clicks on that question mark, Help how he can…
-
0
votes2
answers5083
viewsConvert Datatable to List C#
I need to convert the contents of DataTable for a List, I’m new to C# and I don’t know the syntax. public List < VoCliente > ConsutaCliente() { DataTable tabela =…
-
0
votes1
answer49
viewsControl with Htmlcontrol or Htmlgenericcontrol inside Gridview
I have an html tag inside a gridview: <asp:GridView ID="GridView1" runat="server" ...etc..etc <i class="fa fa-cloud-upload fa-lg cinza" runat="server" id="icon_Nuvem"></i> ... When…
-
0
votes0
answers27
viewsTwo Form error on an Asp.net page
I have a problem with the Asp.net form. My master page has a form, and the daughter page also has a form that passes some javascript actions to add a product to the cart. Only when I click any…
-
0
votes1
answer58
viewsHow do I mount a List or Ienumerable array in the Controller and move to View?
Good evening! I made a request to my webapi to search for data to use=it in a DropDownlist @Html.DropDownList("Id","Descricao"). In My controller, I can pull Webapi results in collection, I treated…
-
0
votes2
answers1142
viewsHow to Increase Time Timeout webForm
how to increase timeout time, my session is falling around 5 min, it is not in the connection string. Asp.Net Authentication Aspnet Identity <sessionState mode="InProc" timeout="20"/>…
-
0
votes0
answers65
viewsCall Alert When I Get a Session Value
Hello! I am trying to call a javascript Alert as soon as I get some value in a Session. I am using C# with ASP.NET Follow my code with the attempt to show Alert, but to no avail:…
-
0
votes1
answer162
viewsError treatments 404 and 500
Good afternoon, my question is as I am still beginner in Asp.net and on the DDD still I have a certain doubt which is in which layer using the DDD standard I would implement the 404 and 500 error…
-
0
votes0
answers45
viewsHow to paginate data? Via Storedprocedure or Dataview?
I am using Datatables.net with server-side via Webform and Ado.net. I need to paginate the data (sort, filter, etc), I see 2 possibilities: - via stored procedure ou - via DataView The problem is…
-
0
votes1
answer147
viewsHow to integrate an App to an ASP.NET Webservice (ASMX) via Xamarin?
Good morning, I have an sql server created with an Asp.net web service, but I wanted to know how I do so that I integrate the server data creating an app for you to read using the GET request.…
-
0
votes0
answers256
viewsGenerate . rdl Report PDF with C# Windows Form or ASP.NET
I have a report created in Report Service and working. How do I generate a pdf of this report with C# Windows Form or even Asp.net.? Note: I have to pass some parameters to the report, such as…
-
0
votes1
answer644
views404 unable to find resource
I copied a solution from one machine to another, solved all dependencies, does not contain building errors,but, all css files, js, pages and etc get a 404 error I am running the application in debug…
asp.netasked 6 years, 8 months ago rafaelprog 53 -
0
votes1
answer291
viewsConnectionstring returning null
When trying to run my project is returned me the error: System.Nullreferenceexception: 'Object reference not set to an instance of an object.' I have a bank class with the manufacturer: public bd()…
-
0
votes0
answers76
viewsImport Excel library to VB.NET in Visual Studio
In a Web project in VB.NET in Visual Studio I performed the import of a library to generate Excel files. (In the Tools menu --> Extensions and Updates). I made the import on the desired page…
-
0
votes1
answer62
viewsASP.NET Rich Edit
I am recently working with Visual Studio 2015 and the following error arose when I inserted a component in the HTML code. I believe it’s a silly mistake for lack of knowledge, but I have no idea how…
asp.netasked 6 years, 8 months ago user75204 -
0
votes1
answer24
viewswanted to make a server transfer to the master page
i am trying to make a server transfer to my master page but this to give this error: No HTTP processor found for the 'POST' request type Description: Unprocessed exception when executing the current…
-
0
votes1
answer83
viewsPull a return from a JS function to C#
In the user registration process I want to validate your CPF by Javascript and return if it is valid or not in beckend. And so make a if with this result to insert it into the database or not. if…
-
0
votes1
answer82
viewsWeb Service WCF XML output
I’m building a web service using WCF. I created the edmx file, made the connection to the database where I am informing the tables, views and procedures that I want to use and my file. svc is like…
-
0
votes1
answer23
viewsFor with Datetime in Razor giving out of memory Exception
I am having out of memory error, being it caused by this Razor code in my cshtml file, and can’t identify where the problem is. @for(DateTime data = DateTime.Today.Date; data <=…
-
0
votes2
answers44
viewsDisable Aspxrichedit buttons
In my application, I use the component Aspxrichedit, which is a text editor full of buttons to save, open, change the font, etc. However, I don’t want some buttons like the Open and Save, for…
-
0
votes1
answer195
viewsCreate a list and insert the sheet data into the database when importing
I have a method protected void importar_Click(object sender, EventArgs e) and inside it I check if the file was selected, and validate the file extension. This system is a file import system of a…
-
0
votes1
answer709
viewsError when publishing in iis
I’m with a webservice and doing the post on the server I’m getting the error answer Unable to load file or Assembly 'Microsoft.CodeDom.Providers.Dotnetcompilerplatform, Version=1.0.8.0,…
-
0
votes0
answers61
viewsLoad Load Control C#
I need to add a conditional Usercontrol. How? if the Pap_id variable is equal to 134, I need to load a Usercontrol displays two inputText for the user to enter a start date and an end date: var…