Most voted "webforms" questions
Web Forms is a part of the ASP.Net web application framework. It is one of the different programming templates you can use to create ASP.Net web applications. Web Forms are pages that users request through their browser and that form the user interface (UI) that give their web applications their look and feel. The other model is ASP.Net MVC. Do not confuse when using tags.
Learn more…369 questions
Sort by count of
-
3
votes1
answer429
viewsWhat is Asyncpostbacktrigger Class?
How should I wear and what makes this kind of class?
-
3
votes2
answers680
viewsSubmit button even when cancel
I have a button in ASP.NET webForm and even clicking cancel it sends the Submit. Example in Fiddle http://jsfiddle.net/dorathoto/qywvuhvq/ $(function () { $("[name='chk_IDDel']").change(function ()…
-
3
votes1
answer1017
viewsHow to display an ASP HTML code on a Label by sending by Code-Behind(C#) - ASP.NET
I’m having a problem, I did several tests where I wanted to send directly from a C# method an HTML code to a label, where it would display dynamically the code on the screen. But when I tell her to,…
-
3
votes1
answer157
viewsLinq groups and fetch max id
Is there any way to optimize the code below so that you search the forms that have the maximum version according to the IdCentroCusto? In the code below I’m doing the grouping and catching the…
-
3
votes1
answer931
viewsTake the highest value within the Line select
Is there any way that inside the select do linq I can take the highest value of a field of the type decimal?, according to the code below? MaxValor = Math.Max(CF.Janeiro, CF.Fevereiro, CF.Marco,…
-
3
votes1
answer178
viewsJavascript set value of one field in others
I have the following code below <script type="text/javascript"> function getValue() { var x = document.getElementById("NuJaneiro"); document.getElementById("NuFevereiro").value = x.value; }…
-
3
votes1
answer535
viewsHow to filter a Dataview.Rowfilter
I have a Dataview and I’m trying to make a filter, where the 'photo' field is different from NULL I tried to: dv.RowFilter = "foto <> ''"; But it didn’t filter. I looked here at Stackover and…
-
3
votes2
answers1037
viewsHow to close connection to Firebird database
I am doing a project in Asp.net c# web Forms framework 4.5 and I did a test connection to a Firebird database, but when closing the connection it is not closing, I used the following code to open…
-
3
votes1
answer865
viewsRecovering Findcontrol from Parent Peater in Child Remaster event
I’m having a hard time getting a field of my parent Peater at the click of my linkbutton inside another Peater (son). My Parent contains the report code and other information and my Parent contains…
-
3
votes1
answer1345
viewsHow to keep only Dataframe-specific lines?
I have a code that enters a site, fills in a form and pulls a table, however, I want to delete some rows from this table that I don’t need. Let’s go to the code: #library's require(RCurl)…
-
3
votes1
answer722
viewsHow to add a link column in Gridview?
I have the following code that generates my Gridview: protected void Page_Load(object sender, EventArgs e) { try { AlteracoesContrato alteracoes = new AlteracoesContrato(movimentacaoId);…
-
3
votes1
answer691
viewsASP.NET Webforms, MVC or Webapi?
First I would like to point out that my knowledge in web development is very small, so my question will be directed on what to use and not how to use, because the goal is to study first and then…
-
3
votes2
answers5957
viewsPrint HTML page keeping the page CSS
Good afternoon guys, I have a report that is generated on a page aspx with bootstrap and CSS. The content of the report is within a div <div id="pdf2htmldiv">...</div> where I call…
-
2
votes6
answers6049
viewsHow to make a textbox that updates every time you change the content?
How do you make a textBox that updates in the database the values that are placed in it? That is, the textBox is filled in and the user decides to change what is there and wants it to trigger*…
-
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
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
votes1
answer241
viewsHow to Redirect after STS authentication?
My application authenticates users through STS. Authentication can go to STS and validate the user PIN on the card. But how do I have it redirected to the "home" page of my site after…
-
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
answer422
viewsMatch javascript variable to php variable
I have a form, and before the form is submitted I want to validate if the field nome_carro exists the same in the database. To do this validation I am using javascript. On the form I have the…
-
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
votes1
answer126
viewsReplace Webforms with MVC
Is there a way or a tool, just to avoid rewriting, to replace a code developed in Webforms and transport it to MVC? In Webforms there are runat=server, user control, Asp: Label etc... Example of…
-
2
votes1
answer187
viewsButton is triggered even disabled, what to do?
I have a linkButton that is disabled via server, so: lkExcluir.Enabled = false; Code: <asp:LinkButton ID="lkExcluir" runat="server" Text="[Excluir]" Font-Bold="true" OnClick="lkExcluir_Click"…
-
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
answer269
viewsWeb Forms for MVC 5
I joined a company, where we have an application running in Web Forms, and we are developing new applications with Asp.Net MVC. However, I was asked to complement an application with Web Forms,…
-
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
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
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…
-
2
votes1
answer129
viewsProblems connecting Mysql with Asp.net c#
A small problem appeared, which in my old application worked normally. My DAL Class, is not connecting in Mysql. Since all the connection parameters, I believe it is correct. My DAL who makes the…
-
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
answer336
viewsResponse.Redirect() without generating System.Threading.Threadabortexception?
At every point in the system it has a Response.Redirect("/Url.aspx"); Generates the type Exception System.Threading.ThreadAbortException, but it works. There is some way to do Response.Redirect,…
-
2
votes1
answer36
viewsPopulating a field by selecting a dropdowlist via popup
I need to open a pop-up through the selection event of a dropdownlist in an application .net and in this way I popularized the field of the first screen with the selection of the option displayed by…
-
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
answer718
viewsConvert string in parameter to arrayToDataTable(varString)
Hello, I’m starting to use ajax and the Google API (Chart) to create charts. I use a Generic Handler I called 'Collaboratorsempresa.ashx', in it I make a query in the database and return a string…
-
2
votes1
answer3455
viewsPrint Reportviewer report directly, without preview
I need to send a report directly to the printer, without preview or PDF generation. The problem is that the application is Web Forms and all the solutions I’ve found so far provide support only for…
-
2
votes0
answers16756
viewsError AJAX Request - Success does not work
Good afternoon, you guys, I have the following AJAX request: $(document).ready(function () { $.ajax({ url: "/membros.aspx/populaGridMembros", type: "POST", dataType: "json", contentType:…
-
2
votes1
answer216
views -
2
votes2
answers197
viewsASP.NET Web Forms and Ajaxcontroltoolkit
When adding a ajax:ModalPopupExtender on my page I’m having the following error <%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true"…
-
2
votes3
answers106
viewsMore attributes in Appsettings
You can add other values to AppSettings without breaking with the application? Standard values: <appSettings> <add key="Nome" value="ValorTeste" /> </appSettings> I’d like to leave…
-
2
votes2
answers456
viewsjQuery inserts new rows into the form. How to populate them automatically?
I have a script that automatically adds lines to a form. I use jQuery for this. With each click on a button, jQuey creates a new line in the form to fill in new data. I need a field to be populated…
-
2
votes1
answer78
viewsHow to request authentication in an Asp.net menu item
I have the login form that is currently being used to enter the system, but I need to do this authentication also by clicking on a particular menu item. I need that when clicking on "Home", ask for…
-
2
votes1
answer265
viewsHow to pass a post with an array to a Webform URL
I’m trying to send an array with some elements in a post to a url. I called 'Webbroser' method, passed the parameters, but still I had no idea how to finish implementing. Follows my code: private…
-
2
votes3
answers533
viewsProblem when converting int to string
I’m trying to do a click counter in ASP.NET webforms and c#, and I need to convert the number int click-through to a string in label. Only this does not work, the page is displayed but the number of…
-
2
votes2
answers690
viewsHow to get the data typed in the Textbox that was created dynamically?
I created some controls TextBox dynamically in my Code Behind and I need to redeem the values in a new method, but I cannot use the textbox changed in a new method. try { DataTable tbDadosAux =//…
-
2
votes0
answers4011
viewsThe underlying connection was closed: The connection was closed unexpectedly
I have a Webform project, and I’m passing an array to a method that will post to a specific URL. However, after I run the project and send the array to the method, it breaks with the error reported…
-
2
votes1
answer170
viewsHow do you fix columns on a Listview?
I got the following Listview below, precise leaves the first 3 columns fixed and allow the rest to scroll. <td colspan="4"> <div class="GradeDados" style="position: relative; width: 1000px;…
-
2
votes2
answers1102
viewsError while converting HTML to PDF
I need to make a PDF from a page HTML, but while converting I get the following error: Cannot convert an object of type 'iTextSharp.text.html.simpleparser.Tablewrapper' to type…
-
2
votes0
answers227
viewsUpdate a Repeater after inserting a new row in the Table?
Good morning, you guys! I have a table that is populated with a Repeater. This table has a filter, which is programmed all via javascript from a ready Layout. After adding a new value to the table…
-
2
votes2
answers420
viewsC# Web Forms - Missing Session
I have an application in Web Forms that stores the session when the user logs in, with a time limit of 21 minutes without using the application to expire the session: <sessionState timeout="21"…
-
2
votes1
answer815
viewsDynamic Image Gallery ASP.Net C#
I have the following Code, It loads the photos into that placeholder. ID="phFotos"> public partial class ImovelDetalhe : System.Web.UI.Page { private ImovelBo _imovelBo; protected void…