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
votes0
answers546
views -
0
votes1
answer197
viewsHow to create a Gridview
The examples I saw on the net did not work, or were very personalized. I just want a simple table, with 4 columns that will be filled with data from a comic. The same will stay within a simple…
-
0
votes0
answers80
viewsShow query output within a C# Website textbox
I have a little doubt about showing a query. On my website I want to show the result of a query. For example: Number of employees: [and here appear the total] I’ve got the comic book connections…
-
0
votes2
answers192
viewsLog in with Asp.net 4.5 (Entity Framework)?
How can I make a Select using Entity Framework, and check if the record exists ? Example: txtlogin.text txtsenha.text Login table. user camp password field valida() class created to execute the…
-
0
votes0
answers421
views'Msajaxbundle' is not a valid script name. The name must end with.js'
I started a project using framework 4.5 and unfortunately I had to return the version of the framework to 4.0, I changed all the necessary libraries but now that I have returned the version to 4.0…
-
0
votes3
answers107
viewsPrint Items Web Page
I would like to know how to print a web page, only I would not like to print the whole page, I would like you to print the title, and some grids, which are formatted (it would be necessary to print…
-
0
votes0
answers191
views -
0
votes2
answers801
viewsUpdate Textbox without Postback
I need to update the change textbox when the textbox receives customer value, is filled, I use this function inside the textbox receive customer value in the event Textchanged: protected void…
-
0
votes0
answers204
viewsProblems with Scriptresource.axd and ASP.NET version 4.5
Previously my project was of the Webforms type and used version 3.5 of the . NET Framework. But I converted it to Web Application and upgraded the framework to 4.5 and some features that previously…
-
0
votes1
answer26
viewsSend Email Configured Email
I would like to put in my application, sending email. But I would like it to be all configured, that the user could make the settings, before sending the email. For example: put in italics, bold,…
-
0
votes0
answers190
viewsHow to put multiple series in 3 dimensions in a highchart correctly?
My goal is to create a chart where I have the name, quantity and period. I am using Dotnet.Highchart in C# Webforms. My chart currently looks like this: And I even know why it’s like this, I’m just…
-
0
votes3
answers1677
viewsHow to disable Submit from a form by "Enter" - c# MVC
I am developing a web project in c#, and for Forms I am using the Html.BeginForm. How to disable Submit by pressing the key Enter? Can do without javascript?
-
0
votes1
answer34
viewsWeb components for searching database data
I’m doing a small system of registering product items. As I came from Delphi I was looking for a way to load the products by code or by name in a Dropdownlist. I was searching and saw a system that…
-
0
votes1
answer333
viewsIs there any way to create an environment variable by IIS?
I have an application running on local IIS and also in production. In this application, I have a feature where, when an error occurs, an email is sent. The problem is I don’t want that to happen…
-
0
votes1
answer1496
views -
0
votes1
answer179
viewsProblem when viewing data from a grid within code Behind
On a Gridview I’m trying to get the data referring to a line where the checkbox == true. I can get the value of the checkbox, but I can’t get the other values for the line. while (i <…
-
0
votes3
answers697
viewsNumeric Field in Web Forms
Personal as I define a field that is in text in webforms for numeric, as an example. <asp:TextBox ID="feb" runat="server" BorderColor="#999999" BorderStyle="Solid" MaxLength="4" TabIndex="93"…
-
0
votes0
answers36
viewsDoubt Session Asp.net
I need to pass a user’s id through a session, because it’s happening to mix users, because it was being recorded in a variable, has some way, to continue going through the variable, without having…
-
0
votes1
answer197
viewsStrange error on screen, debug does not show nda
In Webform, this giving some error, that when debugging in Visual Studio (F5) it does not accuse any error, but when it comes out the result on the screen would be like an internal error(500)…
-
0
votes1
answer158
viewsHow to arm selected checkbox in an array in c#
Hello, I’m new in development in c# and have in my form an option for fruit selection Grape[] Pera[x] Apple[] Banana[x] How I could store in an array only the selected checkbox?
-
0
votes0
answers26
viewsJquery.Ajax() in Webforms without Static method
Is it possible to run a codebehind void method without them being Static? I’m getting error return 500 when trying.
-
0
votes1
answer49
viewsControl with Htmlcontrol or Htmlgenericcontrol inside Gridview
I have an html tag inside a gridview: <asp:GridView ID="GridView1" runat="server" ...etc..etc <i class="fa fa-cloud-upload fa-lg cinza" runat="server" id="icon_Nuvem"></i> ... When…
-
0
votes1
answer76
viewsParser error in my application
Good evening guys, I’m trying to run my application but this Parser Error appears. I’ve already entered the webforms of Vendor to see if I find any error in the code but nothing, compile the project…
-
0
votes1
answer43
views -
0
votes1
answer1093
viewsName does not exist in the current context
I’m in the fight here on this project with asp.net, but the classes are right as I took a tutorial here on the net, they don’t give any error only when running the project ai shows. CS0103 error The…
-
0
votes1
answer84
viewsProblems loading a modal modal pop up with custom 404 error
Hello I generated some error pages in my application in mvc, however I realized that this giving error when I try to load a modal, instead of it load my modal it loads the page of error 404 follow…
-
0
votes0
answers31
viewshow to remove httpredirect web.config
I’m testing the redirect in development, running the site through visual studio. And to test the redirect I added the following chunk of code to the web.config <configuration>…
-
0
votes0
answers219
viewsHow to create one box inside the other using div
I have the following html code: .outer-box { width: 300px; height: 250px; margin: 50px auto; background-color: black; } .inner-box { width: 200px; height: 200px; margin: 0 auto; background-color:…
-
0
votes0
answers45
viewsHow to paginate data? Via Storedprocedure or Dataview?
I am using Datatables.net with server-side via Webform and Ado.net. I need to paginate the data (sort, filter, etc), I see 2 possibilities: - via stored procedure ou - via DataView The problem is…
-
0
votes1
answer1097
viewsHow to call the`Onclick` event in code Behind?
How can I call the event OnClick in the code behind of a dynamically created button? I’m trying it the way down, but I’m not getting it. void MontarHtml(List<DocumentoImagens> DocImagens) {…
-
0
votes1
answer55
viewsWhy doesn’t the form validate the fields?
I am making a validation of the registration screen so that it is reusable to the registration change screen, when it is registration is properly establishing, but when it is the change it does not…
-
0
votes1
answer531
viewsValidating an Empty textbox field with Customvalidator
I need to validate a Textbox field, for when it is empty paint to embroider indicating that there is some error with the field, I am using the customValidador but it is not working. The code of…
-
0
votes1
answer327
viewsI need to do a validation on the start date and end date with javascript
I need to do a validation on the start date and end date... So that the end date may not be less than the start date, but as I started messing with javascript less than two weeks ago I’m hitting…
-
0
votes2
answers234
viewsWebforms Upload multiple files
I have an app WebForms that needs to receive multiple files that will be associated with a specific type of my system. Ex: Type: [Driver’s license] | Filing cabinet: img001.png Type: [Proof of…
-
0
votes1
answer63
viewsHow do I make the imag map link a parameter from the database?
I would like that in the imag map area tag in the href attribute instead of placing the page link I want you to receive a parameter that is sent to a c method#. HTML code <img…
-
0
votes1
answer59
viewsJquery.Validate
Talk personal, all right!? I am breaking my head with the following, I am using the plugin jquery validate, working all right, but in my form I am using a button that I do not want to validate in…
-
0
votes2
answers117
viewstake the input field value of a gridview with jquery
I need to change the fields inputs of a GridView, and as they are changed I must display the sum of these fields inputs in one another input which is at the bottom of the screen and the question is:…
-
0
votes0
answers127
viewsUnable to locate Control ID in Controlparameter - Asp.Net
Hello, I’m having a question getting the id of a book author and adding it to a book creation, and the book to be published should have an auto-incrementing Book ID, a book name and the author ID.…
-
0
votes0
answers113
viewsDynamic Carousel image resolution
I’m having problems solving the images that comes inside the carousel, have to set a pattern by css or javascript ? follow the images follows my aspx code: <div id="paginas"> <div…
-
0
votes0
answers80
viewsHow to calculate +10.5% in a product
How to calculate +10.5% in a product? My calculus is like this: private void txtMargemLucro_Leave(object sender, EventArgs e) { txtPrecoVenda.Text = (Convert.ToDecimal(txtPrecoCusto.Text) *…
-
0
votes0
answers71
viewsHow popular is Reportdatasource() object in a webform.aspx?
As an example below follows the example of the Entity, Interface, Repositorio and the Controller of the MVC system. In sequence the code of a formulário webform.aspx what use to display the Pedido…
-
0
votes2
answers1356
viewsDatareader opens and gives error by not closing
I have a DataReader on my website to read the data that the bank brings. There when two people enter different computers, and even different browsers, opens a connection, but at the time I will read…
-
0
votes0
answers67
viewsRun build of Solution Asp.net pre-compiled webforms in Team Services
Many weeks of research and testing after, I find myself at "a dead end" regarding Team Services. I have a Solution with project in Asp.NET Webforms in the Team Foundation of VSTS. For operational…
asp.net webforms team-foundation-server visual-studio-onlineasked 8 years, 1 month ago Fernando de Abreu 1 -
0
votes1
answer746
viewsControl 'Contentplaceholder1_name' of type 'Textbox' must be inserted in a format tag with runat=server
I’m doing a job for the college, a Forms web application on Asp.net C#. I have a problem and until then everything was going well, but suddenly it is giving this mistake. I searched some related…
-
0
votes1
answer88
viewsID "conflict" within Datalist
Good afternoon to everyone. Well, I have a datalist. Then I put a Repeater in, so far so good. But then when I execute, only the first Remap appears stylized the way I want. The rest I think should…
-
0
votes0
answers180
viewsWeb alert in c#script
I am developing a web system on Asp.net and came across a problem. On the return of your Catchs, I return an error through an Alert to the user thus: try{ ... } catch(Exception ex){…
-
0
votes1
answer108
viewsAdd javascript to webforms page
I have a method page to insert a javascript in a page. public void ControleEtiquetaDermaClub(bool visualiza) { if (visualiza == true) { String jscript = ""; jscript = " $(document).ready(function()…
-
0
votes1
answer164
viewsUpload image inside Peater C# Asp.net
Hello, I am new here and I am in need of a help. I already searched the net and the solutions I found do not work. I have an image gallery editing screen, made with a Repeater, in each image listed…
-
0
votes2
answers144
viewsEnter call Button in Google Chrome and Firefox
I need that when the user presses the enter key, do the button click event. I’m doing it this way, but it’s not working in Google Chrome or firefox: if (!IsPostBack) {…
-
0
votes0
answers109
viewsUse user input values in Asp.net c# webforms
I created a form for the user to update the registration data. The user’s "old" data is stored in session variables that fill out the form as soon as the user clicks to update registration. The…