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
-
3
votes3
answers125
viewsSave or remove accent on a Textareafor
Hello. I have a Textareafor which receives the HTML content, however when saving the data, the accents and special characters are encoded and I have problems later when editing or viewing the data.…
-
2
votes1
answer2484
viewsHow to create a dynamic Gridview?
Someone already created a GridView where there are already rows filled with values and in the last column of each row there is a LinkButton "Repeat" and when this LinkButton is clicked, repeats the…
-
2
votes1
answer512
viewsClose a Mysql connection without committing or rollback to c# Asp.net
I would like to know what happens in the following scenario: In a program Asp.net with c# was opened a MySqlConnection, soon after a MySqlTransaction, was held a insert in the open transaction,…
-
2
votes1
answer651
viewsHow to access child items in a Boundfield of a Gridview in Asp.Net Web Forms?
I know in the middle of a GridView, an immediate item can be read with the tag BoundField: <asp:BoundField DataField="MeuItem" HeaderText="Meu item" /> But I get a mistake trying to do that:…
-
2
votes3
answers3702
viewsHow to get the dynamically created Textbox value?
I have a form that receives an amount of Textbox that must be instantiated, the page then generates the textboxes, but I do not know how to take the values. hd = Request.QueryString["qtHD"]; mem =…
-
2
votes3
answers4213
viewsBootstrap dropdown menu does not work on Asp.net website
I have a page index.html that the dropdown menu feature works normally, but when I migrated to Asp.net stopped working. I’m using a page Default.aspx who inherits from the masterpage.master. <div…
-
2
votes2
answers987
viewsGridview ASP.NET c# data from the same table
I have the following table in SQL with the following fields (id, name, day week, active). id the primary key of the whole type; nvchar day nvchar week; active bit; and I have the following data in…
-
2
votes3
answers980
viewsRun jQuery on onclick button
How to call jQuery direct on onclick button?, for example: <input type="button" id="btnteste" onclick="$("#IDdoTextBox").spectrum("set", $("IDdoCampo").val());" /> And does not work, returns…
-
2
votes2
answers1253
viewsHow to search and sort Templatefields on a Gridview?
Basically, I have a table (Gridview) on an aspx page whose data are defined by Templatefields. For example: <asp:GridView runat="server" ID="grdProdutos"> <Columns> <asp:TemplateField…
-
2
votes1
answer399
viewsHow to display two pages of the same Gridview side by side?
I would like to know how to display two pages of the same GridView side by side, if possible keeping the pagination on both pages at the same time. For example, if I have a GridView in that way: Num…
-
2
votes1
answer96
viewsHow to get data from a Bulletedlist in Codebehind ASP.NET?
I have a list of items defined through a Bulletedlist on an Asp.net. page This list is populated with multiple items through attributes DataSource, DataTextField, DataValueField and the method…
-
2
votes2
answers282
viewsError while trying to connect to database
I’m studying about C# and Asp.net and "trying" to draft a registration, amendment and exclusion project, following some videos lessons I found on the net. The problem is when I connect the database…
-
2
votes1
answer459
viewsConvert ASP.NET datatables to different Excel SHEETS
How can I create more than one sheets converting different datatable for excel? My code: DataTable dt = new DataTable(); dt = Tr.Get(); GridView x = new GridView(); x.DataSource = dt; x.DataBind();…
-
2
votes1
answer424
viewsRedeem a Datatable ID inside a Gridview
I’m trying to rescue the ID of my client who is in a GridView, but I’m using a DataTable to fill the GridView. Datatable public DataTable SelecionarDT() { objDAO = new ClienteDAO(); DataRow dr;…
-
2
votes1
answer144
viewsHow to declare a method to be executed from time to time in an ASP.NET application?
I have an application ASP.NET Webforms and need to create an event to run at certain times. The event is about sending emails. I think I read somewhere about IIS download the memory application when…
-
2
votes1
answer56
viewsrecover text from onmouseover statusbar
It is possible to recover text from status bar? on Windows.Form on VB6 could. I wonder if in C# it would be possible
-
2
votes1
answer493
viewsaspx page running on Asp net mvc
Good afternoon, I have an aspx page that, through some components, can generate several documents used in the company. Well, the page is in aspx and uses proprietary components (Dlls), I can not…
-
2
votes1
answer849
viewsHow to select a port to connect to SQL-Server Remote
I have the following problem, my SQL server is with port 1433 open and communicating correctly, but my client has a firewall that blocks all incoming and outgoing ports of computers connected to the…
-
2
votes2
answers1246
viewsPop-up Child window
I have the following button that basically inserts data from a web form, but that button is on a pop-up. What I intend is that when you run the button, after entering the data close the window of…
-
2
votes2
answers5178
viewsPlace a red Gridview line if a cell has the false value
I would like a certain line from my GridView turn red if the corresponding cell in the closed column is false. My Asp.Net is like this: div class="GridMain"> <asp:GridView…
-
2
votes2
answers546
views -
2
votes1
answer135
viewsCompare different columns
It is possible to generate the pie chart (pie) by comparing different columns of a DataTable? I mean, I have one DataTable with 2 columns of values and wanted to create a pie chart for each row of…
-
2
votes3
answers221
viewsHow I dynamically put and take out a href
I got this href: <a href="/UpLoads/<%# Eval("DsPathDocumento")%>" class="linkUpload"><%# Eval("NmTipoDocumentoDown")%></a> What I want is that I create a link only when I…
-
2
votes1
answer63
viewsHow to display the version of my website on all pages?
I want to display in the footer of all my pages the version on which my site is running. For example: Version 1.0 After I do an update on my website and publish it again would be something like…
-
2
votes2
answers508
viewsWhat’s the difference between App.conf and Web.conf?
What is the difference between the App.conf and the Web.conf?
-
2
votes2
answers167
viewsManipulating related data Asp.net and C#
I am developing an ASP.NET application, which aims to register events and add customers to these registered events, forming a customer list for each event. My question is this: In the Events table…
-
2
votes0
answers117
viewsDropdownlist does not load in chain
I have a method in Asp.net who carries some dropdowns receiving as parameter the name of the dropdown. The method is working perfectly, because when I "debug" the application I see that the dropdown…
-
2
votes1
answer1066
viewsExplanation about redirect loop
I p/ a meeting and will ask why have some data Redirect Loop. In the code, I put a false parameter and it has solved, but turns and moves it back. The question is: What is a redirect loop? What I…
-
2
votes1
answer327
viewsHow to pass a Querystring using Registerstartupscript on Asp.net?
I have this code in my code Behind: ScriptManager.RegisterStartupScript(this, typeof(string), Guid.NewGuid().ToString().Replace("-", ""), "window.setTimeout(\" $('#" + calendar.ID +…
-
2
votes1
answer431
viewsInsert web api class into existing web project
In my visual studio 2012, I have a solution with several projects and one of them is web. In this project, I would like to include a "Web Api Controller" class to do some tests. I created a class…
-
2
votes2
answers1232
viewsImport Itaucripto DLL into VB
Hello, I’m implementing the second way of boleto Itaú, but I’m trying to work with ASP.NET VB and I don’t have much knowledge in this language. I did everything right and is working locally, but…
-
2
votes1
answer387
viewsWhat are Global.asax methods, when are they fired and good practices?
I would like to know what methods, when they are triggered and what is the best applicability (good practices) of them?
-
2
votes1
answer204
viewsMigration of iis from visual studio to iis7 location does not access the database
I migrated the default IIS express vs server to the IIS of my pc. Way: visual studio >> Project settings >> Web >> Servers => I took out IIS express and placed local IIS,…
-
2
votes1
answer728
viewsGenerate PDF with specific source
I have a report that already works. I need to change the source to "Garamond" (already installed). The references found speak about other more flexible properties, with for example changing the…
-
2
votes1
answer41
viewsSort DESC Asp
I have a grid on my app. The code of a grid column is: <Columns> <asp:BoundColumn DataField="DATA_CADASTRO" SortExpression="DATA_CADASTRO" HeaderText="Data Ativação"…
-
2
votes1
answer1511
viewsComposite primary key with entities in the Entity Framework
I need to make a composite primary key relation in the Entity framework using the entities themselves. public class ProjetoDocumento { public Projeto Projeto { get; set; } public Documento Documento…
-
2
votes1
answer552
viewsRequired Errormessage dynamic content
Using Asp.Net MVC 5 need to create a required message with the following format: "Required field! [Social Reason]" Normally I would do so: [Required(ErrorMessage = "Campo de preenchimento…
-
2
votes1
answer1887
viewsDownload txt file with ASP.NET Web Forms including HTML of the page in the file
I am downloading files with ASP.NET Web Forms at a Linkbutton click event as follows: var file = new FileInfo(filePath); Response.Clear(); Response.AddHeader("Content-Disposition", "attachment;…
-
2
votes1
answer65
viewsCan the Entity Framework not map a table in the MVC occur?
I added a new table in Model.edmx, but it was not created in Model.Context.Cs the public DbSet<informacoes> informacoes { get; set; } is also not created in Model.tt the class of this table.…
-
2
votes1
answer1822
viewsHow to debug ASP.NET or Webservices applications on IIS
I need to debug my application that consumes a Webservice and I would like to be able to debug Webservice in one Visual Studio window and the application in another, but I can’t make local…
-
2
votes2
answers9820
viewsCharacter string not recognized as valid datetime
protected void ButtonPesquisar_Click(object sender, EventArgs e) { var _macro = new LFSistemas.VLI.ACTWeb.Entities.Macro(); var macroController = new MacroController(); var itens =…
-
2
votes1
answer129
views -
2
votes1
answer3348
viewsPDF reading . NET
I have been researching for a long time a way to read a pdf document that contains Sinapi Inputs tables and save the data in my database, and I do not do the least how to, someone could give a hint?…
-
2
votes4
answers3027
viewsLoading the values of a select in my Gridview
My DAL who does the Select and saved in the list type<> using System; using System.Data; using System.Collections.Generic; using System.Linq; using System.Web; using MySql.Data; using…
-
2
votes1
answer2175
viewsHow to allow line breaking in gridview?
I did a test in my Gridview writing the title of a book with many characters, what happened was the following: It expanded my grid beyond the page size, generating a layout break. My Gridview is…
asp.netasked 9 years, 4 months ago WellDotCom 703 -
2
votes1
answer296
viewsGridview with only one line - Asp.Net C#
I have a column in Gridview with Schedules, I made a scheme that takes from such an hour to such an hour for example: 8:00 to 8:30 and so goes to other lines. In all, until 6:00, that’s 20 lines.…
-
2
votes1
answer847
viewsHow to get the values of a list of inputs with the same ID by Webforms?
I have a list of inputs that are automatically generated by script and they are inserted in a form thus staying: <input type="text" id="txtValue" name="txtValue" /> <input type="text"…
-
2
votes1
answer1982
viewsHow to postback the Asp.net page with Javascript or Jquery
Today I have a Function that calls the toggle method when I click on the tag it displays the panel in Asp.net containing a dropdownlist and a gridview. I need every time if I click again on the tag…
-
2
votes1
answer105
viewsPerform a redirect in Constructor
How can I make a Response.Redirect() in a class builder? public class FarmaciaController : Controller{ public FarmaciaController(){ if(!userLogin.usuarioTemPermissao("Farmacia"))…
-
2
votes2
answers460
viewsProblems with Selectedindexchanged Asp.net C#
I added it in the method where you load the list from the bank: ddlSalas.Items.Insert(0, new ListItem("TODAS", "")); When I choose this "ALL" option on dropdownlist, happens a post on the page but…