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
-
1
votes1
answer73
viewsHow to change the value of having a job in Asp.net via javascript?
I need to change the text of a label side by Javascript and then reload the page Follow the code of the label <asp:Label runat="server" ID="ValorMax" Visible="false">10</asp:Label> You…
-
1
votes1
answer27
viewsHow to escape Sqldatasource.Filterexpression?
I have a function that adds a filter to the SqlDataSource. That expression contains a LIKE at the consultation. However, if the person places a character such as ', an error (which evidences SQL…
-
1
votes1
answer1442
viewsHow to use dynamically created button event to redirect to another ASP.NET page?
I’m trying to call the event the buttons that were created dynamically with a foreach public void adicionarComanda() { List<Comanda> lc = ControllerComanda.getComanda(); foreach (Comanda…
-
1
votes1
answer539
viewsShow success/error message after postback
I have the following functions on my page, when I call them via javascript, they work perfectly: function msgSucesso(msg) { toastr.success(msg); } function msgErro(msg) { toastr.error(msg); } Hence,…
-
1
votes1
answer168
viewsHide Row Gridview C# / ASPX
In a GridView users, if the user himself clicks edit/delete his own account, he would like to know how to hide the Row or disable the GridView but only for the logged-in user, or if clicking the…
-
1
votes1
answer3267
viewsHow to place an Onclick event by calling a Javascript Function on a Link inside a GRIDVIEW on Asp.net?
I have a form containing a button that will open a query popup. In this popup, I make a query passing as parameters name and Cpf where the return of the query, creates a gridview where each record…
-
1
votes1
answer221
viewsBlock typing Textbox field with Calendarextender
Good afternoon, I need to block the typing of the date in a field Textbox Asp.net. It can only receive the date selected in the Xtender application to the Textbox. Would someone have some way via…
-
1
votes1
answer951
viewsError even having the click method
Please, can someone help me with a boring bug with ASP.NET? Next... I have a button: <asp:Button ID="cadastra" CssClass="btn btn-success btn-lg" runat="server" Text="Cadastrar Cliente"…
-
1
votes1
answer56
viewsCritical for when to deploy
In the case of a webforms . NET application that is being deployed, there is some way to warn the user that the system is being updated?
-
1
votes1
answer28
viewsIs there any way to extend a main file into Webforms?
I am maintaining an old application that uses Web Forms. This application uses Iframe to make a kind of layout reuse. The problem is that even doing this, a lot of code is repeating, and I’d like a…
-
1
votes0
answers39
viewsPage IIS Eternally Loading
I have an application developed in Web Forms running on an IIS 7.5 server. From time to time, the application pages are loading eternally, and to solve this problem quickly I have to recycle the…
-
1
votes1
answer100
viewsDifference between a master page and web form
I would like to know the differences between a master page and a web form, because I need to create a web page and I want to know which is the most advised!
-
1
votes1
answer292
viewsError Reportviewer 14.0.0.0 Window.$Rsjquery
When you click the button to expand groups in reportview, it keeps clicking forever and gives error in the line below: // error Uncaught TypeError: window.$RSjQuery is not a function if ($) {…
-
1
votes1
answer51
viewsHow to make database transaction in Webforms?
I got a stock in a file .aspx that runs multiple Inserts in the bank. I need that if something fails, the operation is canceled, since one record will depend on the other. I usually use a…
-
1
votes1
answer85
viewsAt runtime, does the Form ID Asp.net webforms change?
At runtime, the Form ID Asp.net webforms changes, see that I have on my machine the component ID. Local example: <asp:HiddenField runat="server" ID="MenuSelecionado" value="processo"/> After…
-
1
votes1
answer1277
viewsCombobox search only items that match the typed
In a User Registration Form, I have a combobox Civil Status Registry (which loads data from an SQL table), when writing to combobox the system needs to go searching the data and presenting only…
-
1
votes1
answer79
viewsHow to check and uncheck the Telerik component Checkbox?
I searched the website of Telerik and not found where it shows how to do to enable the Checkbox (mark and unmark) of this component ? 'Cause I’m gonna need to update the profile by sending it to the…
-
1
votes0
answers13
viewsIdentification of User Control?
I’m trying to use a User Control with VB and is created as follows: <%@ Control Language="VB" AutoEventWireup="false" CodeFile="SigaFormacao.ascx.vb" Inherits="SigaFormacao" %> Page using User…
-
1
votes1
answer945
viewsHow to control a Radiobuttonlist via code
I am using C# Asp.net web Forms I have two Radiobuttonlist <asp:RadioButtonList ID="rblGrupo" runat="server" AutoPostBack="True" CellPadding="5"…
-
1
votes2
answers609
viewsmanipulating Datatables.net data with Json [like manipulating json to display img in the column]
I am mounting a table with the JS framework Datatables I process the data via Server-side through the JSON in the first column I would like to display a photo,the name of this photo comes via JSON.…
-
1
votes2
answers763
viewsWhat is the best way to read a sql server error return?
How best to read an error return from sql server in a C# web form application? I got the following.. No sql server; END TRY BEGIN CATCH Raiserror('Erro ao gerar os dados', 18, 1); return; END CATCH;…
-
1
votes2
answers141
viewsSelect with Linq set the first characters in Where
How can I define in Linq the same that I define in clausular Where do sql server in the form below .. select * from tb_CentrosCusto cc where cc.Clasificacao like '1.4.1%' In other words, I’m just…
-
1
votes0
answers93
viewsThe database creation wizard does not appear in the service based database and does not create a string Connection in the app.config in the Entity framework framework
I’m taking a virtual course on Entity framework in which the instructor uses visual studio in the 2012 version and during class he creates a web form project and asks to create a database in the…
entity-framework webforms visual-studio-2015 app.configasked 8 years, 10 months ago Leonardo Gustavo Maran 93 -
1
votes1
answer61
viewsDatasource C# - Problem reading multiple data
I have a code, where he opens the browser and works within a certain page. On this page, I have some fields, where I look for information from a spreadsheet in excel (xlsx). On this same page, there…
-
1
votes2
answers120
viewsInsert text into images
I have a Switch that according to the given status it plays an image, but I would also like to play the numbering of that status in the image (that text that usually when we touch the image it…
-
1
votes0
answers282
viewsProblem with paging due to loading of Gridview and Dropdownlist on the same Page.Postback
Next, I have a gridview that it needs to be inside a postback to be able to perform an update when selecting a checkbox. The problem is that I have a filter using a DropDownList, if I leave mine…
-
1
votes0
answers243
viewsCrystal Report set value text size in a graph
I am using Crystal Report version 13 in an application with Aspnet Webforms. I am developing reports with graphics and displaying the value of "data labels". My problem is that I can’t modify the…
-
1
votes2
answers135
viewsjavascript Prevent from Submit
I have a text box and a button . I just want to check the value of the text box with javascript and prevent it from displaying, if it is null. Here is aspx : <asp:TextBox ID="TextBoxName"…
-
1
votes1
answer98
viewsAdd a <div> to each <li> - Htmlgenericcontrol tag
I am reading an RSS XML and adding each news to a tag <li> I need every tag <li> stay within a tag <div>, how can I do this through Htmlgenericcontrol? That way <div>…
-
1
votes2
answers397
viewsHow to convert a Dataset to Int32?
I’m having an information conversion problem that’s coming from my database to a variable of type Int32. When I do the select max(cur_id) from tbl_curriculo; I send the id information directly to a…
-
1
votes2
answers403
viewsDoes anyone know how to get data from the grid cell?
Good evening guys, I have a history grid where appears the service rendered and I have two more grid below with the paid debits and pending debits that I wanted to take from the top grid clinha in…
-
1
votes1
answer41
viewsOpening 2 modals with same class - CSS
Guys, mt good night. All right? My question is relatively simple. I have a modal box for presenting a simple text. I would also like to use it to show, as soon as the user clicks on another link, a…
-
1
votes1
answer457
viewsAsp.net and C# problem image gallery to display the photo
I’m having trouble displaying the photo in the browser the Repeater brings all the database information except the photo. I entered the data manually in the database. //TABLE CREATE TABLE…
-
1
votes1
answer191
viewsLoad a Gridview with selected records
How to load a Gridview into the webform with a few lines already selected ? I’m trying the following code but without success... protected void BindGridAcesso(int idSenha) { Usuario usuario =…
-
1
votes1
answer58
viewsHow to work with more than one dropdownlist to mount a C#URL?
I have the following dropdownlist where in the first person chooses whether to rent or sell immovable. The consultation in the bank is being done as follows: public List<Imovel>…
-
1
votes0
answers339
viewsEvent Button click, added dynamically, does not work
I’m working on a page that loads a list of items into a GridView. The content is being loaded normally, but the need to add a cell with a text and two buttons. With the code below is adding the…
-
1
votes1
answer104
viewsLogging into a website using Webrequest
I need to log into a website using the Asp.net web Forms. I am doing so. How could I redirect to the page after logged in? protected void Button1_Click(object sender, EventArgs e) { var loginAddress…
-
1
votes1
answer557
viewsIs it possible to use Webbrowser on the web Forms Asp.net c#?
I’m looking to use Webbrowser on Asp.net C# My question and log into a website using it using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Web;…
-
1
votes1
answer190
viewsProblem saving Dropdownlist information to the database
I’m having trouble saving information in the dropdown by btn-save I have a property registration form and the information entered in the dropdown occurs only that at the time I save on another page…
-
1
votes1
answer1107
viewscapture selected item Javascript created dropdownlist
Someone could help me. I have the following problem I have a Textbox and a Dropdownlist, in the textbox there is an autocomplete with state names; after finishing the textbox fills Dropdownlist with…
-
1
votes1
answer178
viewsException when adding usercontrol more than once
Hello. I have a user control newsletter and it is added in various places within the project, for each page on which it is called, a property is set to insert the email into a particular group of…
-
1
votes3
answers2917
viewsHow to call javascript function in Asp.net?
This is my job <script> function keypressed(obj, e) { var tecla = (window.event) ? e.keyCode : e.which; var texto = document.getElementById("numeros").value var indexvir = texto.indexOf(",")…
-
1
votes3
answers115
viewsPage rendering Asp.net Disabledcssclass
I have the following problem, I have this code on a page: <div class="modal-footer"> <asp:Button runat="server" ID="btnCancelar" Text="Cancelar" class="btn btn-sm btn-danger"…
-
1
votes1
answer68
viewsDo not hide div when performing function
Hi, I’m doing a college project where I have to use web Forms. By default in my project I have a div that is None by default in css, and within this div is a small form, as follows the example:…
-
1
votes2
answers1386
viewsAccess client-side biometric reader - ASP.NET MVC - WEBFORMS
Galley, I developed an ASP.NET MVC application, using a webforms page, which is called inside a MVC page. Because only from there I was able to load the SDK Dlls, to send requests to a biometric…
-
1
votes4
answers179
viewsCreate method that avoids code repetition in ASP.NET with SQL
I am building an ASP.NET site, using C#. I want to 'link' the site information (text and images) in an SQL Server database. This part of connection I’ve managed to do successfully. However, I have…
-
1
votes1
answer66
viewsHow to recover all checkbox
In the code below, I have already tried to recover all the checkbox but I can’t bring anything, I would not like to put the ID, but recover numerous checkbox selected, how can I do? I put only 2 as…
-
1
votes2
answers1397
viewsAdding multiple Gridview lines
I’m trying to include several lines in a Gridview, but it doesn’t add the lines, it always replaces the first. I would like to know how to make it add several lines, and not replacing the first.…
-
1
votes0
answers26
viewsDoubt Headerfixed Gridview
I am using this code to leave the top of Gridview fixed, however it is not Responsive, and a little short to fully fill the grid. <script language="javascript"> $(document).ready(function () {…
-
1
votes0
answers147
viewsOpen Modal Code Behind
I own this modal and need to open it in code-Behind. I’m trying to JavaScript but it’s not working, follow the code: $(document).ready(function () { //seleciona os elementos a com atributo…