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
-
4
votes2
answers315
viewsWrite Fileupload Path inside an ASP.NET Updatepanel
Expensive, The question of my doubt is very simple. How do I save the path of my Fileupload file to some control or Viewstate, with this Fileupload being inside an Updatepanel? I’m actually using…
-
4
votes1
answer623
viewsRedirect to error page when entering catch
I have a question as to a possible improvement in the method when an error occurs in a Action and redirect to an error page. At the moment, I do so on Action: public ActionResult Index() { try {…
asp.net-mvc asp.net asp.net-mvc-5 asp asp.net-mvc-4asked 8 years, 3 months ago Leomar de Souza 1,074 -
4
votes4
answers1049
viewsChanging HTML does not reflect on page - Asp . NET Core 3.0
I recently decided to test the ASP .Net core 3.0, I always changed HTML without the need to recompile the project, but in this version, I can’t change anything in HTML without the need to recompile…
-
4
votes3
answers563
viewsWhat does <!-- //--> mean in html / javascript?
I went through a problem where was presented a tag <script> and contained these HTML comment characters. Function example <html> <head> <script type="text/javascript">…
-
4
votes1
answer1116
viewsWhat is a "Postback"?
It may seem like a silly question, but I can’t understand how a postback works, if anyone can explain to me thank you!
-
4
votes1
answer1580
viewsHow to Set Up Multiple Web API Get
I need to provide in my web api three forms of query: First Get with all "Getall" records, the second GET by id and a third GET with ribbon options, sent by client, e.g.: Name contains the letter…
-
4
votes1
answer167
viewsProblem returning items in a Relationship in the Entity Framework
Talk Personal All right!? I’m going through the following problem in the Entity framework that I think is some mistake I’m making when it comes to relating two classes: I have a Class called:…
-
4
votes3
answers2308
viewsFormat double output with dot instead of comma
I have a collection of coordinates to popular the Peater, with city name, latitude and longitude. .aspx <form id="form1" runat="server"> <div id="repetidor"> var markers = […
-
4
votes1
answer2349
viewsWhat is the reference to Httpcontext.Getowincontext() ?
I had to abstract the Controllers of an application ASP.NET MVC for a Class Library because I’m using different technologies in the same application. However, I have the error:…
-
4
votes1
answer2184
viewsConvert a 'System.Collections.Generic.List' object to 'System.Data.Dataset'?
Cannot convert an object of type 'System.Collections.Generic.List in type 'System.Data.Dataset'? After making a report query, I am storing the data in a list and showing the data on the screen, the…
-
4
votes1
answer122
viewsComparison of Session and Viewstate with String
Recently, I received the following notice from Visual Studio in a code similar to the image: I understand what he wanted to say: there is a reference comparison of the two values (the session and…
-
4
votes3
answers2714
viewsFailure to log in to an IIS application when trying to connect to Sqlserver
When I run an application of the type website in visual studio, database connections work normally. But when trying to run IIS 7 to perform some tests, I get the following message: Unable to open…
-
4
votes0
answers1111
viewsHow to consume a Graphql API (https://api.loggi.com)
I would like to understand know and know opinions to apply in a project urgently... I currently have a shopping website and I need to use the loggi company API which is a distribution company the…
-
4
votes1
answer127
viewsProblem for deletion of data from a spreadsheet
I have the following piece of code that connects to excel, where it will delete the data from a tab of a spreadsheet. private void AtualizarPerformanceEntrega() { try { string sFileXLSX =…
-
4
votes2
answers677
viewsIs it mandatory to open and close connection when entering data?
In a *loop* que fazInsert` in an Excel spreadsheet it is mandatory to open and close the connection ? I analyzed the following, depending on the amount of registration it may take up to 1:30 to do…
-
4
votes1
answer1123
viewsRedirect URL on IIS 7.5
When publishing to the server (iis 7.5) the application: Eu tenho isso => http://meuip:8086 Mas preciso disso => http://meuip:8086/portal when or if created the iis directory with the name…
-
4
votes1
answer823
viewsWhat is the purpose of Concurrencystamp and Securitystamp in ASP.NET Identity?
The summary of both properties in the entity IdentityUser are in English: Concurrencystamp: A Random value that must change Whenever a user is persisted to the store. Translating would be something…
-
4
votes2
answers404
viewsQuery with Datetime Sql and C#
I’m trying to get you to return to me the patient of a particular day and time in command next: SqlCommand cmdSelect = new SqlCommand("select DISTINCT P.nome,P.codPaciente, M.codMedico, C.descricao…
-
3
votes2
answers578
viewsHow do I always keep my Urls in lower case?
I want all Urls on my site to be lowercase to help with SEO and to make link sharing consistent. How can I do that?
-
3
votes2
answers2181
viewsPass Javascript data to C#method
I need to get a user’s location, go to C, get his street data and show it on a label. I have the following code: Labels <asp:Label ID="lblMsg" runat="server" Visible="true"></asp:Label>…
-
3
votes2
answers1169
viewsSave form data in session
I created an access form for my administrative area, using a tutorial by Microsoft. Now I need to retrieve the login that he typed to enter and show it on an administration page, and also to make…
-
3
votes3
answers9419
viewsHow to use the Dropdownlist Selectedvalue value?
Next, I have a table "animals" with field "sex" (varchar(1)). In it I Seto M or F, for Male or Female. Use detailsView to show/edit these fields and would like to have a Dropdownlist in Edittemplate…
-
3
votes2
answers485
viewsTwo parameters with String.Format in an Asp:Hyperlink
I would like to send the parameters (database ID, Clientid) in a <asp:Hyperlink. I wanted the end result to be: <a id="ctl00" onclick="OpenModal(704520,'asdf_ID_DaImageAbaixo')"> <img…
-
3
votes2
answers538
viewsHow to update ASP.NET Repeater in real time?
I have a Repeater in a lateral div that receives the quantity of products from the cart and needs to be updated every click. I’ve tried to rpt.Databind() in the Click event but the Reset only…
-
3
votes2
answers650
viewsCreating custom Annotations in ASP.NET
I own a Controller in my project Asp.net (Web Service) I need to do a token check for each method request. One solution I found is to create a static method and place a call at each start of each…
-
3
votes2
answers181
viewsConfusing encapsulation in c#
I was creating a model that in his construtor i defined the attribute Nome. however this attribute will only have the get, as different from java c# has the resource for getters and setters I…
-
3
votes3
answers3820
viewsChanging LABEL value by Jquery or Javascript does not work in ASP.NET
Use this JS function in ASP.net: function habilitado(){ var b = document.getElementById('<%= Label4.ClientID %>').value = "Habilitado"; } I call it that in codebehind. The value of the label…
-
3
votes2
answers3712
viewsPreventing data forwarding when updating page (F5) in ASP.NET
Guys, I have the following problem: I have a web application made with ASP.NET and C#. In this application I have a simple entry registration system. After I register an item in the application, if…
-
3
votes2
answers2905
viewsAutomato for navigation in a Webforms application
Guys, it wasn’t the first time or the last time I had to implement an automatic routine that accesses a website or system created on the Webforms platform to capture information. It has been…
-
3
votes1
answer5051
views -
3
votes2
answers247
viewsUpdating treeview
I have an application that uses a treeview as image and code below. ASPX: <%@ Page Title="" Language="C#" MasterPageFile="~/FrontPage.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs"…
-
3
votes2
answers4464
viewsGetting the full path of a client file in ASP.NET
On the server side, you can get full path of a file sent by a client using the tag <input type="file">? For example, if the user sends the file C:\Users\Documents\a.txt, has how the server can…
-
3
votes1
answer105
viewsEncryption error in c#
Hello! I’ve tried to analyze the code but I can’t find the answer using System; using System.Collections.Generic; using System.Text; using System.Linq; using System.Web; using System.IO; using…
-
3
votes1
answer172
viewsMulticliente (multi-tenant) application with Asp.net webforms and routes
I am developing a multi-client web application for a Saas and I would like each client to have a different URL to access their area in the application, for example: http://meudominio.com/cliente1…
-
3
votes1
answer7349
viewsHow to access the application from another computer running on localhost
I have a web application made in ASP.NET MVC 5, and gave a start in Visual Studio 2013, the address of the Index page was like this on the machine where it is running: http://localhost:51144/. How…
-
3
votes1
answer1373
viewsGet Headertext from a column in a Gridview
Going through the event RowDataBound of a GridView I intend to obtain the value of headertext column but I’m not getting. An example I want to get: if (e.Row.RowType.ToString().Equals("Header")) { }…
-
3
votes1
answer2578
viewsHow to request client IIS 7.5 ssl certificate
How to request the client’s SSL certificate in an ASP.NET MVC 5 application? I enabled SSL on my site using IIS 7.5 but it tries to authenticate the user using the customer certificate but I don’t…
-
3
votes1
answer175
viewsGridview inheriting properties
In all my grid s I have to define many properties, I wonder if there is any way to define the properties only at one time in a single place. Grid example:…
-
3
votes1
answer2295
viewsMultiple files for upload
I’m looking for a plugin Jquery upload multiple files at the same time. Does anyone know of any to inform me?
-
3
votes3
answers1145
viewsAsp.net MVC Session ends
I have an app ASP.NET MVC 4.0 on a server of Kinghost. In my web.config I’ll tell you what: <sessionState timeout="1000"></sessionState> <authentication mode="Forms"> <forms…
-
3
votes1
answer988
viewsHow do I remove the character limit of a URL by GET or POST
I have an error sending the form, it returns an error MaxQueryString. Is there any way to increase this number/remove this limitation? because on web.config a high value is already set and it is not…
-
3
votes2
answers865
viewsASP.NET vNext in Apache
I have heard a lot that ASP.NET 5 will work not only on Windows environment but also on Mac and Linux. I was wondering if you can run ASP.NET 5 applications on the Apache server. I searched a little…
-
3
votes3
answers727
viewsDoes complex code interfere with application performance?
I have a somewhat legacy C# web application, which works on my client, but it’s been about 3 years. At the time, I programmed as I learned in college and did not know the concept of clean code. It…
-
3
votes1
answer485
viewsUpload system with rotate image automatically as in windows 8.1 or facebook
Today when viewing an image in windows 8.1 even if the image is lying down it automatically understands and shows correctly, in windows 7 appears the picture lying down. When sending this image to…
-
3
votes1
answer314
viewsAuthentication - Current.User.Identity returning null
My login Dim senha = "null" If Not (senhaLogin.Text = "") Then senha = senhaLogin.Text End If Dim Usuario = GetUsuario.Where(Function(a) a.Email = emailLogin.Text And a.Senha = senha) If…
-
3
votes1
answer727
viewsLearn Asp.net without dominating c#?
basic doubt. I want to start programming for the web with Asp.net mvc, but I know very, very little c#, just the basics of the language. Would it be a bad deal to start with Asp.net and get the…
-
3
votes1
answer33
viewsWhat mistake is that?
I am trying to change the css of my application in Asp.net mvc 5, but when trying to do this returned me this error ai. Does anyone know why?…
-
3
votes0
answers83
viewsQuestions about Forms Authentication ASP.NET
I have an ASP.NET project and need to enter a user control to limit access to the pages. There is already a table in my bank with Login and Password, I found some tutorials that explain how to use…
-
3
votes1
answer445
viewsAES and RSA encryption compatible with PHP libraries
I am starting a communication test work with a webservice, and this interaction includes the AES and RSA encryption protocols. However, the website that has the webservice (followzup) only presents…
-
3
votes1
answer157
viewsData overriding onClick command
Guys, I have a little problem in Asp.net webforms. And I made a nice pie. I know the solution to this might be a little simple, but I’m confused. Follows the code: public partial class Default :…