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
answers126
viewsInfinite Scroll in ASP.NET MVC and SEO
Guys, I need to make one Infinite scroll in ASP.NET MVC, but I need to separate the content on demand as suggested by the blog Webmaster Central Blog, so that the Google robot can index my products.…
-
0
votes0
answers262
viewsHow to resize images before upload
Good afternoon guys, my application already uploads images using <input type="file">, but only images that are less than 2mb. I am storing the target.result in the bank and returning in a…
-
0
votes1
answer98
viewsOauth 2.0 stream for multiple API authentication using an authentication server
When logging in through my front-end layer, a request is sent to my authentication server which in turn returns a Bearer Token that may be saved to a cookie, for example. No doubt about it! My…
-
0
votes1
answer235
viewsASP.NET MVC - Passing data between Views
I have two tables: Tb_1 and Tb_2; both have a column id and are related to each other in a Microsoft SQL database. For example: I selected the record paragraph 2 in Tb_1. When triggering the command…
-
0
votes2
answers907
viewsTrustlevel error
My application hosted on Ocaweb has the following error: Server Error in '/' Application. Required Permissions cannot be acquired. Description: An unhandled Exception occurred During the Execution…
asp.netasked 8 years, 10 months ago Rodrigo Cichetto 21 -
0
votes1
answer683
viewsHow can I set the width of each column in a Gridview?
How can I set the width of each column in one GridView in the following case below? <div style="width: 1000px; height: 400px; overflow: scroll"> <asp:GridView ID="Grid" runat="server"…
-
0
votes0
answers102
viewsDifficulties Asp.NET MVC... window does not appear correctly
I am new to the world of Asp.net Mvc and have had some initial difficulties. I’m trying to develop a calendar but by clicking a day to make an event... the window appears in a strange way, someone…
-
0
votes0
answers215
viewsGrab directory to save file
I am developing a system, and in this system, I submit a PDF report from some information, I would like to know, how to open a screen similar to the filedialog, but to select only the directory, so…
-
0
votes1
answer1097
viewsHow to call the`Onclick` event in code Behind?
How can I call the event OnClick in the code behind of a dynamically created button? I’m trying it the way down, but I’m not getting it. void MontarHtml(List<DocumentoImagens> DocImagens) {…
-
0
votes0
answers163
viewsDrag And Drop - Div overflow: scroll;
I’m using Drag And Drop inside a div with CSS: overflow:scroll. As there are many dice the vertical bar is always active but when trying to drag the elements of this div a horizontal bar appears and…
-
0
votes1
answer77
viewsCommand similar to sql Convert in c#
I have a return in sql that comes as something like 52,451541554. That return, if I convert it with the command convert(datetime, DtCriacao, 103) of sql it turns into a date format, only that I’m…
-
0
votes0
answers36
viewsDoubt Session Asp.net
I need to pass a user’s id through a session, because it’s happening to mix users, because it was being recorded in a variable, has some way, to continue going through the variable, without having…
-
0
votes1
answer398
viewsScript Manager on Masterpage but not working correctly
On the page I’m changing there was already a modal modalOrgao, and was already being used the Script Manager within the Master Page. This modal carries a gridview with its results, so far so good...…
-
0
votes1
answer380
viewsHow to get value from an Html.Editorfor
I have the following command @Html.EditorFor(m => m.DataDoDesligamento) In it is placed a date, and when clicking on a button should redirect to a report, only that I need to pass the parameter…
-
0
votes0
answers63
viewsSave value from a variable within a controller to use in another DLL run method
I need to save information in the User Login and use this information in another DLL. EX: Projeto.Web Projeto.Domain.dll When logging in the User Project.Web controller, I need to save which project…
-
0
votes1
answer298
viewsTo validate the value selected in the dropdownlist
I am using the Comparevalidator to check if the value selected in the dropdownlist is "Select", but this does not work, follow the code. <asp:DropDownList ID="ddlIdPisSt" runat="server"…
-
0
votes0
answers54
viewsError while converting null integer
I’m making a conversion of a value int: int.Parse(detalhe.GANO_ID_ATIV.ToString()) But you’re giving me a mistake A cadeia de caracteres de entrada não estava em um formato correto. What could be…
-
0
votes0
answers39
viewsProblems identifying file with errors in Chrome dev tools
I have an aspx page, which by Chrome dev tools gives me the following error: Uncaught Syntaxerror: Unexpected token ILLEGAL The problem he points to that line: prs0101.aspx.561 It turns out that…
-
0
votes1
answer531
viewsValidating an Empty textbox field with Customvalidator
I need to validate a Textbox field, for when it is empty paint to embroider indicating that there is some error with the field, I am using the customValidador but it is not working. The code of…
-
0
votes1
answer50
viewsProblem with Masked Fields
Hello, I’m using the plugin masked input to mask some fields of the kind decimal! However, when I submit the form this field arrives as null in the class controller. I’ve searched and I can’t find…
-
0
votes2
answers36
viewsDelete information from textbox when there is Reload
I am creating an Asp.net web page and I wanted when the site was reloaded or pressed the "F5" key all the data of the textbox to pass the "".
-
0
votes1
answer534
viewsIntellisense does not work
I’m using visual studio 2010 and all of a sudden Intellisense has stopped working. I already hung up and turned the computer back on, restarted the settings of visual studio, I’ve done…
-
0
votes1
answer30
viewsbtnSubmit_Click is not a member of 'ASP.cliente_aspx'
I am creating a site in Asp.net with a master page. When I try to put a datepicker gives me error. I’m using this one Website The same is giving the following error 'btnSubmit_Click is not a member…
-
0
votes1
answer1802
viewsC# MVC 4 - Action gives Error 404
I am a beginner in C# MVC 4 and have set up a site for learning purposes. On the contact page of the site there is a form that sends emails automatically. When I run it locally direct from Visual…
-
0
votes1
answer568
viewschange text from fileupload Asp.net
You can change the text inside Fileupload? I wanted to change the text "No files selected"…
-
0
votes0
answers412
viewsC# - Tool for signing a PDF document
I need a tool that allows a person to sign a PDF document at a particular location of the document, does anyone have any tips? But you have to allow it to do this internally in my application, tools…
-
0
votes1
answer126
viewsDynamic listbox with value range
My problem is that I can treat my listbox where I am doing a "value range" in my system. I need it not to let codebehind add a value that is contained in the value range.. Ex: 0-10 has been added,…
-
0
votes1
answer100
viewsUsing cache during user session
I am using Outputcache in an Asp.net mvc5 application to cache a list in my application as follows : [(Duration = 60, VaryByParam = "none")] public ActionResult Index() {} I just need to take…
-
0
votes1
answer1236
viewsError {"The object reference was not defined as an instance of an object." } System.Nullreferenceexception MVC ASP.NET
Well, it now gave me an error on the main page so I tried to pass the resgisto values to the index. the error is in line 35 of the index of the main page with the code: @foreach (var item in Model)…
-
0
votes1
answer206
viewsHeader and Footer with ASP. Net C#
I’m doubtful to separate my code,I did some tests of having separated the header and footer but in visual studio I did that can only have only one <% Page, as I can separate the header and footer…
-
0
votes2
answers339
viewsCustomize an item within css for a particular view
I have this view on MVC View @model XXX @{ } <link href="/eTeste/Content/AbaDetailsODM.css" rel="stylesheet" type="text/css" /> <div id="consoleAbaDetalhes"></div> <div…
-
0
votes1
answer1107
viewsCannot convert "string" to "int"
<% foreach (System.Collections.DictionaryEntry entry in HttpContext.Current.Cache){ HttpContext.Current.Cache.Remove((string)entry.Key); } foreach (int key in diamondMethodList) {…
-
0
votes2
answers214
viewsKnowing when my list is coming with values in sequence
I have a List<int>: [2,3,5,4,6] Although not in order, it is a sequence of numbers (2,3,4,5,6) How do I validate this? Note: There will always be 5 positions and the numbers will be from 1 to…
-
0
votes1
answer191
viewsASP . NET - Local file directory using Chrome
I have the following code snippet: <div class='upload-border'> <input class='file-upload' id="fileUpload" runat="server" type="file" name='upload'/> </div> I need to get the local…
-
0
votes1
answer158
viewsHow to arm selected checkbox in an array in c#
Hello, I’m new in development in c# and have in my form an option for fruit selection Grape[] Pera[x] Apple[] Banana[x] How I could store in an array only the selected checkbox?
-
0
votes1
answer491
viewsHow to display messages (Summay) to the user in the Index view
I have a View Index and via the Create view is opened in a modal form from it. When I open the Create modal, I fill in the fields and click on the save button the modal remains open and Summary…
-
0
votes1
answer309
viewsjquery ui dialog does not expect confirmation
I’m wearing a ListView to generate buttons according to the IdPassoWorkflow, and show on the screen the buttons as per image below. When clicked, I open one dialog for the user confirms the action,…
-
0
votes1
answer24
viewsIs it possible to have a 'Partialview' in WPF?
I was wondering if it is possible to implement the concept of partialview in a WPF View. Something like a system of tabs, which changes the content of the grid but does not alter the layout of the…
-
0
votes1
answer57
viewsHow to get rendered html from an Actionresult in the ASP.NET MVC Controller
I am performing a PDF export where the document content is the html of a Rendered View. How do I do it?
-
0
votes1
answer68
viewsPages . aspx in View folder in ASP.MVC project
Good afternoon, everyone, I am a beginner in MVC architecture and I have a question about an ASPNET.MVC. I wonder if it is possible in the "View" folder of the project, to put an "aspx" page along…
-
0
votes0
answers33
viewsform does not upload file
I have a form that I need to upload to an ftp. When I put the fashion down no file loads. <form id="frmEnviar" name="frmEnviar" data-ajax="false" method="post" runat="server"…
-
0
votes1
answer43
viewsGridiview in Asp.net mounting
Good afternoon, you guys. I have a doubt when it comes time to mount a gridview I do not possess much knowledge in c# I did so string sql = "SELECT…
-
0
votes1
answer222
viewsitextsharp does not add loop pages
I put my code inside a FOR to display several pages according to its count. Turns out it only shows the last page, and not all that should. For s = 0 To 9 html = "<p> "& s &…
-
0
votes2
answers107
viewsCode-First Fluent API with complex classes in ASP.NET Core 2.1
Error while performing the Add-Migration when using Complextype classes. public class Cliente : EntityBase { public Cliente() { #region Create HashSet Properties Lists Dependences Titulares = new…
c# asp.net asp.net-core fluent-api entity-framework-coreasked 6 years, 1 month ago Nicola Bogar 123 -
0
votes0
answers35
viewsAspx image attributes are lost after changes via Javascript
Insert an image with scr value and Descriptionurl defined in Aspx and I am changing the value of source(scr) and Descriptionurl (longdesc) via Javascript; It turns out that after page_load the…
-
0
votes2
answers189
viewsAsp.Net Dropdownlist tooltip or title with JS
I’m starting in Javascript, and would like my DropDownList of a control .ascx, when selecting an item, display its full value when you hover over it, as if it were a tooltip or title. This is my…
-
0
votes0
answers16
viewsASP.NET - Associate controller to empty partial view
I have an empty partial Razor view that does not depend on any entity in my class model. I intend to place two drodpowns with a button for each one that allows adding records. For this, I will need…
-
0
votes1
answer30
viewsASP.NET - Get selected Dropdownlist value from my Controller
I have a dropdownlist that is set in my view as follows: @Html.DropDownList("Exame", ViewBag.Exame as SelectList, "Escolha uma opção...", new { @class = "form-control", @name="ExameARegistar" })…
-
0
votes1
answer382
viewsOpen Webcam and capture image with C# in ASP.NET Webforms
all right? I am developing a student registration system and I need to open the computer webcam to take a photo of the student and link in their registration, I would like to know how it is possible…
-
0
votes1
answer57
viewsI have a method in Serverside validaNIF and want to call it through javascript (Clientside) to validate an Asp:textbox when it does Leave
I tried to do through the event ontextchange and call the backend function, only as this is to make a record, whenever it ran the event wipes the data from my other textboxs (it seems to refresh the…