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
votes2
answers106
viewsDoubt Update Panel Gridview
I have a Gridview inside an Update Panel, but when I click on the Grid Gridview3_selectedindexchanged event, the event does not happen, I tried to put as direct Rigger in the selectedindexchanged…
-
0
votes1
answer64
viewsQuery return problem
I have a problem with my query return. public IList<Rota> Lista() { //* string hql = "SELECT * FROM Rota WHERE ORDER BY Km_Atual ASC"; string hql = "SELECT Km_Atual, MAX(DtLancamento) FROM…
-
0
votes2
answers456
viewsChange the name of the pdf file to hash and then manage to undo the name to read again
I’m doing a feature on a system where; Any sector will upload an important file, this file contains sensitive information linked to each employee of the company. Each employee can open his own file,…
-
0
votes1
answer721
viewsStore data set values in ASP.NET variables
I’m having trouble storing the return of a select in variables , I’m using a data set to create a table with the result of select , this select will return me some records and the form I’m making so…
-
0
votes0
answers530
viewsUnable to find table 0 ASP.NET
I’m developing a screen that exports processed data from a Procedure for PDF/Xls. Debugging it returns the following error: Unable to find table 0 From what I understand he can’t read the…
-
0
votes0
answers73
viewsMy select is not generating result
I’m doing a select , this same select tested in the database returns me the information I need , more in my code . net gives an error saying that it is not generating result what is it that I am…
-
0
votes1
answer56
viewsHow to select a string in resx (internationalization) without using the static method
I have . resx files where I store strings in English and Portuguese, in my database I have the following table: And I want to change the description of the plans equal the first record of this…
-
0
votes2
answers2110
viewsHow to implement the Gentelella Bootstrap Admin theme?
Guys I’m starting now with web development in Visual Studio. I already understood the MVC, I have some knowledge of HTML and I started to study the bootstrap. I discovered on the web this beautiful…
-
0
votes1
answer83
viewsError trying to register
Good afternoon, the moment I try to register in the form, I program in the language c# with Asp.net, Razor and Nhibernate. This is my DAO public IList<Rota> Comparacao() { //*string hql =…
-
0
votes2
answers310
viewsDynamically mount Timeline in html on page . aspx
I would like to ask a little help from the forum, to mount a dynamically html Timeline using the Asp.net font-end or code Behind C#, in a SQL-based Web Forms application. I need to assemble I…
-
0
votes0
answers376
viewsHow to save on a relative path?
I have the following method: private string SubirImagem(string imagemupload, string sequencia, string clifor) { HttpPostedFile imagem = Request.Files[imagemupload]; string nomeimagem = ""; if…
-
0
votes1
answer378
viewsMessage when it exceeds Fileupload size
I’m trying to put a message for when it exceeds the file size in Fileupload, already arranged inside the web config, but always returns me the following error: Maximum request size exceeded. I saw…
-
0
votes3
answers849
viewsLinkbutton : Open link in a new window (Right Mouse Button)
I wonder if there is any way I can open a new tab by right-clicking, or middle-clicking... I’m using the "LinkButton" but the command occurs within a OnItemCommand="ListaMenu_ItemCommand". Aspx :…
-
0
votes0
answers192
viewssql related error
Good night, I am trying to register in my application, but is returning me the following error: Instance-specific or network error when connecting to SQL Server. The server was not found or not…
-
0
votes1
answer71
viewsPopular Gridview with Access Data
I managed to do this in VB.NET, but now I need to do it in C#and I can’t turn the code the right way. I have this Gridview: <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"…
-
0
votes0
answers275
viewsHow to capture the body value (Stream) of a request without deleting it?
I’m trying to capture the body of a request in an authorization class (Authorizationhandler), but because this body is a Stream, after reading its contents the post request that comes next can not…
-
0
votes0
answers125
viewsDoubt Javascript function generating Postback
I have this function in my system, which clears the fields, and updates the grid: $('.window .close').click(function (e) { //cancela o comportamento padrão do link e.preventDefault(); $('#mask,…
-
0
votes1
answer41
viewsuse WCF service method returns The Caller was not authenticated by the service
I have a project with several WCF services compiled, and accessible by another project on the same machine. Now I’m trying to connect to one of these services from another machine. I put the service…
-
0
votes1
answer178
viewsForce a Sqldatareader result
I have the following method: public ClassCardapio MontaCardapioEdit(string periodo, int tipo) { ClassCardapio cardapio = new ClassCardapio(_stringconexao); _conexao.Open(); var sql = $"SELECT " +…
-
0
votes0
answers142
viewsControl X-axis markings in date data charts
I have records in the database and a graph where I can visualize them. The graph is of data x voltage in volts. When I have few records in the table the chart shows exactly the date recorded in the…
-
0
votes1
answer192
viewsError trying to validate field with required="required"
I am trying to validate my fields with required="required", in various modals, it turns out that the page, has tabs, and when I try to use the required="required", nor does the modal…
-
0
votes1
answer586
viewsProblem with accentuation
I’m populating a list on javascript through a ViewBag. To ViewBag has a list of objects and these objects have properties with accented words. They are coming correctly from ViewBag, but when I add…
-
0
votes3
answers257
viewsEvent onclik button in dynamic html Stringbuilder table
Good afternoon people of the forum, I’m trying to add a button in a dynamic html table to redirect to another page by passing parameter through the url. But I’m not getting it via javascript. I’m…
-
0
votes1
answer1271
viewsError CS0012 The type 'Client' is defined in an Assembly that is not referenced
Handling class with RU: ContextEF Contexto = new ContextEF(); public List<Cliente> Listar() { //var query = from c in Contexto.Cliente // select c; return Contexto.Cliente.ToList() ; } Onclick…
-
0
votes0
answers44
viewsPass Javascript values to an Asp.net class
I need to create some buttons dynamically in c# and pass to them some event, that by clicking them pass two values to a select variable to bring x number of lines of the same the class with select…
-
0
votes0
answers38
viewsInsert is not working / Excel
I created a process to make a Insert in a spreadsheet on EXCEL but the data is not being entered. No error is returned. Code: private void AtualizarPerformanceEntrega() { try { DataTable dt =…
-
0
votes1
answer77
viewsAccess a class attribute in an ASP NET Controller
I would like in my system Crud ASP.NET to make an image in the form of a padlock disabled when a certain user profile log in to the system, the name of this controller below is called…
asp.netasked 6 years, 11 months ago Leandro Azevedo 303 -
0
votes1
answer76
viewsUnable to Retrieve Metadata for - Error creating Controller
I created a web project with MVC and Entity framework 4.5, and MYSQL database. added the dlls Mysql.Data Mysql.Data.Entity and Mysql.web I made all settings as per images below I followed the step…
-
0
votes2
answers8176
viewsCPF Mask and Date of Birth Asp.net MVC
My question is this: I created a simple CRUD and I want to use mask in the fields date of birth, CPF and phone. Function code create of the CRUD: @model WebApplication1.Models.Bdfinal @{…
-
0
votes1
answer101
viewsConversion date javascript to sqlserver
I am trying to save a field of type date in the SQLSERVER database, however it does not insert, is returning me the following error: Sequence not recognized as valid datetime. DateTime dat =…
-
0
votes1
answer558
viewsLine breaks in table cells ASP.NET MVC C#
How to do not break in multiple rows the columns of a <table>, because I put a scroll and would like to leave the grid cells without breaking, and rather let the user use the scroll. View…
-
0
votes0
answers217
viewsError opening aspnet page C#. Could not load file or Assembly 'Microsoft.ReportViewer.Common, Version=12.0.0.0
Good evening, everyone. I have developed a website, which on a given page shows a report. Locally it works normally, but when I run on the published page, it gives the error: Server Error in '/'…
-
0
votes1
answer821
viewsGet row and column item from a dynamic html table
Good morning guys, I’ve set up a dynamic html table with information from an SQL table. In the following structure: This table has a filter field of the agencies listed code: <script> function…
-
0
votes1
answer360
viewsWEBSERVICE ASP.NET Method not found
I have a problem in a webservice that I created and I tried several adjustment options and could not solve. I have the list of Methods available according to the image below When I select the VAPS…
-
0
votes1
answer164
viewsHow to include class in Asp.Net MVC search
I developed a Code First system in Asp.Net MVC In this development I created a relationship far too and I want to do a research that includes this relationships in a survey, below I describe better…
-
0
votes1
answer323
viewsCall Get action that returns a view by jquery ASP.NET MVC
I need to open the create view by clicking a button, how to do this by Jquery? Knob <div class="col-md-3"> <button id="btnNovo" class="btn btn-info form-control" style="width: 200px">…
-
0
votes1
answer136
viewsnet. 4.6.1 reference error for . netStandart 2.0
I’m having a problem referencing a Standart2.0 project to my api . net Framework 461; occurs the following have the class: public class MeuReturn : IHttpActionResult { private readonly string…
-
0
votes0
answers131
viewsAuto complete does not work Asp.net mvc
I have a table in the database called Disciplines, and I have a field search in my Index that if I type a letter"A" should suggest "Analysis and development" that’s an example, but it doesn’t work,…
-
0
votes1
answer155
viewsFunction with if Javascript
Good afternoon, I have a function in javascript, and it does not enter the IF, the field txtTipodePlano is filled as "MONTHLY", it should enter, only it falls in Else, follows as I am doing: if…
-
0
votes1
answer881
viewsHow to assign the value of a Tempdata["Test"] or Viewbag.Id to an html input?
I wanted to know how to take the value of my variable tempData and put in an html input, in value maybe... someone could help me? Code below: <div class="container-fluid"> <form…
-
0
votes2
answers1379
viewsSelect line from a gridview and pass the values to a textbox
I am facing problems trying to find a solution so that when I click a grid view, it passes the values contained in the line to text boxes. My gridview is being populated, but I need to find a…
-
0
votes1
answer79
viewsPreventing sending data when updating page F5 in ASP.NET
I’m having a problem, I have a grindview with products, every time I add a product in the stamp it add, but if I click on F5 it adds the dice novamento in the cart. public partial class carrinho :…
-
0
votes2
answers94
viewsConfiguring Angulasjs Routes with ASP.NET MVC
I’m having trouble routing Angularjs with Asp.net mvc. I set up my routing in the app.js and when I click on my links the pages are not being redirected correctly, the only page that appears…
-
0
votes1
answer74
viewsUndefined javascript function after $.getScript('');
I need to load a file . js after an ajax call. I have been searching and found the $.getScript('') to call my file, it opens, everything is fine, but the functions defined in that file are not being…
-
0
votes1
answer563
viewsHow to pass bidirectional parameters to an Angularjs directive
I need the attribute parameterID="{{autor.ID}} which in the Directive is parameterID: '@' be updated as soon as it is changed, that is, I need the bind to be bideretional, I saw in several places…
asp.net-mvc angularjs asp.net angularjs-directives bindingasked 6 years, 10 months ago Nicola Bogar 1,149 -
0
votes0
answers1257
viewsSave File in Physical Path
I am uploading an image I receive via form using C# ASP.NET. My code is working like this: [HttpPost] public ActionResult UploadFile(HttpPostedFileBase file) { try { if (file.ContentLength > 0) {…
-
0
votes0
answers127
viewsSend used file @Ajax.Beginform and Xmlhttprequest
I have the following doubt: I’m doing a post with @Ajax.BeginForm, but the same does not send file, so I wanted to use the File Api, my idea was this I would do the post for @Ajax.BeginForm thus:…
-
0
votes0
answers33
viewsError while updating page
I am having an error that when updating the page her gridview runs the Rowcommand button clicked and adds again a product to the cart I created, I wonder if there is a way to block this without…
-
0
votes1
answer59
viewsLoad Fields through Dropdownlist
I am with a dropdownlist (cbrecipes) that is loaded through the Sqldatasource, where after loaded the of cbrecipes, it loads the cbplanos through the Sqldatasouce, follows the code: <div…
-
0
votes1
answer24
viewsauthentication with Formsauthenticationticket
I need to make the persistence of inclusions, changes and exclusions that users make on the system, each drive that the user only sees, so I created a Id on the tables of my BD to know which user is…