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
-
0
votes1
answer375
viewsClear Modal with Button Without Saving Data
I have a modal where I use it to include and change the data. I check if the field txtid is completed. If you have a change, it is not included. To fill in the fields the user needs to select the…
-
0
votes2
answers3218
viewsClear Modal Bootstrap
How can I clean the modal data, sometimes the user enters the data but not saved, and if he opens the modal again, the data is there, I would like to clean this data, how should I proceed? Sometimes…
-
0
votes1
answer79
viewsBy clicking on DIV clear textbox
I have some DIV that open a modal, but I would like that when clicked, clear the textbox, here is where I have the DIV that when clicking opens the modal: <div class="link-box"> <a…
-
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
answer1212
viewsASP C# Bootstrap - Open Masterpage modal
I’m learning how to develop websites with ASPX C#, using Bootstrap. Before, I want to say that I’ve researched everything and I haven’t found a solution to the problem I’m encountering, so, please,…
-
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
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
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
answer766
viewsHow to close Modal Bootstrap only when entering the server-side method?
I have a sign-up screen in a modal bootstrap, but when validating, if an error occurs or the user no longer fill in any field, the modal closes. <script> function enviar1() { if…
-
0
votes1
answer1632
viewsCommunication problems with the government-provided web service
I’m having a problem communicating with eSocial webservice, my certificate is correct, but still can’t establish a secure connection, it presents the following message: "Error making HTTP request to…
-
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
votes1
answer967
viewsUncaught Typeerror: birthday.split is not a Function
I have this javascript function that calculates age: <script type = "text/javascript" > function calcularIdade(aniversario) { var nascimento = aniversario.split("/"); var dataNascimento = new…
-
0
votes0
answers131
viewsIs there a way to use CSHTML (Razor) in ASPX Webform projects?
I was taking a look in that question in Stackoverflow English, because I really find it very confusing to use ASPX files and find the syntax of Razor more user friendly. When trying to add a file…
-
0
votes1
answer55
views -
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
votes2
answers386
viewsCall function by passing field
I have a function, that when clicking on the dropdownlist, it checks and changes the mask of a field: function HideTextBox(ddlId) { var ControlName = document.getElementById(ddlId.id); if…
-
0
votes1
answer327
viewsHow to Recover Data from Input to Codebehind ASP.net
My question is the following: I have my HTML code and I am validating the fields with Javascript, but I would like to call the function and pass the value in Codebehind. Example String name =…
-
0
votes1
answer1462
viewsAutomatic line breaking textbox multiline email form C#
Hello guys help me here because I’ve tried everything and it didn’t work, I’m not able to do the multiline textbox send the break line by email in the contact form. ex: Ola Quebra de linha tudo bem…
-
0
votes1
answer311
viewsHow to format a field with ASP.NET Webforms C#
I need to format Textbox <asp:TextBox runat="server" id="txtValor" MaxLength="20"></asp:TextBox and I’m having a lot of difficulty, first this grid is open in a modal, I mean, when I create…
-
0
votes0
answers90
viewsSignalr Cannot read Property 'Myhub' of Undefined
Good afternoon, I am trying to apply the Signalr library on a Master page site in Webforms . aspx, but I am having error reading the Hub file. I can’t get the site to see such a file. I’ve run on a…
-
0
votes0
answers145
viewsWebsite slowness when using Signalr for notifications
Good morning, I’m developing a website to run in local intranet format on IIS. With technologies asp.net ADO in format WebForms, I’m using the library SignalR to monitor a simple table on SQL Server…
-
0
votes1
answer377
viewsAjax Jquery C#error request
I am getting error 401 in a simple Ajax query with Jquery. Request: $().ready(function () { $.ajax({ url: "Ajax/RetornoAjax.aspx/ObterResultados", type: "GET", //Caso não passe nenhum dado dataType:…
-
0
votes1
answer272
viewsReferencing non-static object in a static method
Good evening, I need to reference a component PlaceHolder Asp.Net in a static method in the code-behind C#, this method is called via AJAX for front-end see the code: Method call by the Form aspx…
-
0
votes1
answer103
viewsPHP Form / File upload and upload other fields at once
How to upload a file and send the other form data in a single action? I have (as an example) the following form: <form method="POST" name="form" action="ccd.php"> <input value=""…
-
0
votes1
answer492
viewsPostback Asp.Net Webforms
I just started working with WebForms and it became a question, due to always messing with the asp.net mvc. Supposing I have one DropDownList and populated the DataSource of it with various records,…
-
0
votes1
answer468
viewsForce POSTBACK
I’m passing information on the variable click_teste for a TextBox with id others that TextBox is a parameter for a query of a Gridview. I need that when receiving the data the textbox make one…
-
0
votes0
answers17
viewsIncompatibility Browser Edge Updatepanel
I have an Updatepanel, which works perfectly, in Chrome browsers and firefox, it does not update the page, when I change something in the combobox, but in the EDGE browser it updates, I have tried…
-
0
votes1
answer161
views -
0
votes0
answers67
viewsASP.NET - Application with the possibility of authentication Forms and Windows
I have to configure the following ASP.NET authentication scenario: depending on some precise conditions that authentication is performed through Forms or Windows. The scenario is that if an…
-
0
votes0
answers177
viewsWhat is the need of Virtual to overwrite a method in another class?
I am developing a C# system and I came across an inheritance/polymorphism problem. I searched in Google and in Microsoft references, however, I did not find something to clarify my doubts. I am…
-
0
votes2
answers353
viewsPostback removes selected items Multiple dropdownlist
I have a static multiple Dropdownlist (ddl1) on my aspx page. It has 4 options, in which you can select from 0 to 4 options. Another Dropdownlist (ddl2) that is also static in the form has the…
-
0
votes1
answer1023
viewsUse Forms Authentication in an ASP.NET Core application
I’m migrating a website ASP.NET Web Forms (.NET Framework 4.7) to ASP.NET Core (but still using the . NET 4.7 as "target framework") - the goal is to use Razor Pages, dependency injection and other…
-
0
votes2
answers234
viewsSelectedvalue error of a dropdownlist in ASP.NET
I have an Asp.Net form for vehicle registration, where there are DropDownList which are filled with database data. However, clicking Save returns the error System.Exception: 'Unable to record…
-
0
votes1
answer28
viewstrying to compile code
Good afternoon and good evening, everyone. I’m doing a group college project and you know that the best thing to do is to throw the code on a source code hosting platform for everyone to work well…
-
0
votes1
answer87
viewsI cannot receive the view parameter in the controller
Remembering that when executing it does not return any error Controller using CRUD.Aplicação; using DocumentoObjeto.dominio; using System; using System.Collections.Generic; using System.Linq; using…
-
0
votes1
answer54
viewsHello, my problem is that the email is being sent only when I check the email instead of showing the sender’s email shows the recipient’s
protected void btnEnviar_Click(object sender, EventArgs e) { string desEmail = "[email protected]"; string remetenteEmail = txtEmail.Text; //O e-mail do remetente …
-
0
votes0
answers491
viewsError in the email field mask and validation
I am trying to implement a mask and validate the email field using the plugin inputmask unsuccessfully the mask does not appear and consequently does not validate, why ? That is the code:…
-
0
votes1
answer418
viewsPersonalized login in Django, what is the best way to improve?
At the moment I need to log in django.admin and login that I myself have created in a models.py | Class Pessoa. In this way it is not functional, because the admin needs to be logged in for a normal…
-
0
votes0
answers45
viewsDatabase image does not load
Good morning, I’m trying to display an image previously recorded in a database in the form gridview, but this is returning an error and I can’t figure out what is wrong following the aspx snippet…
-
0
votes1
answer35
viewsDo not insert duplicate value in gridview
I have a Javascript function that I can insert and delete an item in Gridview, but I have faced a problem by not letting an equal value be inserted, as I cannot enter an equal value dsEspecialidade…
-
0
votes1
answer26
viewsExport to excel
Good morning. I created a gridview with data from a table When I run the function to generate the Excel spreadsheet, nothing happens, could anyone give a help in what might be happening? follows…
-
0
votes0
answers207
viewsGenerate txt file with custom letter font
I’m creating a code that generates a txt to print to a printer matrix. However, I would like to change the font of the letters. Someone could help me, please? Follow the code below. try{ byte[]…
-
0
votes0
answers131
viewsRoutine execution in the background via Hangfire (ASP.NET Webforms)
I am in need of doing a background run on my system. For this I found the Hangfire tool. I made the settings according to the documentation and am getting the error: Value cannot be null. Parameter…
-
0
votes1
answer423
viewsHow to run an event in Codebehind being called by jQuery?
I have this code in Aspx: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="WebSite.View.Index" %> <!DOCTYPE html> <html…
-
0
votes1
answer156
viewsRemove point and comma character and spaces from the last email in the recipient list
Hello, I want to send my emails as below: [email protected];[email protected]; but it’s giving me a sending error, because it’s taking the semicolon of the last address, when I put the emails in this way…
-
0
votes1
answer43
viewsHow to use a mask in a dynamic textbox?
I need to implement a mask (value) in n Textbox fields (defined by n periods x n contracts) within a grid, where they are generated dynamically. I use jQuery for static textboxes (Autonumeric). But…
-
0
votes0
answers20
viewsHow to resolve this object reference error?
when compiling the application to generate my report, I am getting this error message: The 550 line refers to this piece of my code that starts in the if: if (movimentacao.ValorCotacao == 0…
-
0
votes0
answers16
viewsError in exporting XLS to Webforms projects
good night! I am trying to export the dataset to error when trying to generate XLS: System.Indexoutofrangeexception: 'Unable to find table 0.' DataSet ds = new DataSet(); protected void…
-
0
votes0
answers135
viewsObject Reference not set to an instance of an Object - Does not display error message
My system (WEBFORMS VB.NET) has presented a null object exception(Object Reference not set to an instance of an Object), which happens only on the production server after an indefinite period of…
-
0
votes0
answers32
viewsStatic method does not recognize fields in aspx
This method needs to be Static [WebMethod] public void ValidaSenhaAntiga(object sender, EventArgs e) { long CPF = Helper.DFrmtCPF(cpf.Value); string senhaAtual = SenhaAtual.Value; bool senhaAt =…