Questions tagged as 'webforms'

1
answer

How to set checkboxes selected in an array in C #

Hello, I'm new to developing in C # and I have in my form an option for fruit selection Grape [] Pear [x] Apple[] Banana [x] How could I store in an array only the selected checkboxes?     
asked by 08.07.2018 / 19:21
1
answer

Is there any way to create an environment variable through IIS?

I have an application running in 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 that I do not want this to happen when I'm in a development environment. I...
asked by 25.01.2018 / 13:31
3
answers

Event onclik button in dynamic html table StringBuilder

Good afternoon personal forum, I'm trying to add a button in a dynamic html table to redirect to another page passing parameter by url. But I'm not getting via javascript. I am using ASP.NET C # WebForms. I have the following function to write v...
asked by 20.09.2017 / 20:49
2
answers

Refresh TextBox without PostBack

I need to update the textbox change when the textbox receives value from the client, it is populated, I use this function inside the textbox to receive value from the client in the TextChanged event: protected void txtvalordocliente_TextC...
asked by 07.06.2017 / 14:46
1
answer

How to do a Reset in a C # .aspnet GridView?

I have two different tables ( DataTable ) and need to use them in the same Gridview . But when I call Gridview on the screen it always assumes the value of the first table. Does anyone know how to make a Gridview that f...
asked by 17.11.2016 / 15:04
2
answers

DataReader opens and gives error for not closing

I have DataReader on my website to read the data the bank brings. I have a problem with VS, but I do not know how to do it.    There is already an open DataReader associated with this Command that must be closed first Would there be...
asked by 18.10.2016 / 14:24
2
answers

get the value of input fields from a gridview with jquery

I need to change the inputs fields of a GridView , and as they are changed I must display the sum of these inputs fields in another input that is in the footer of the screen and the question is: how to get the value of...
asked by 21.04.2016 / 20:08
1
answer

Passing HTML Page Parameters to ASP.NET

I have an asp.net page which I need to get parameters from an HTML template . I'm trying the way below but I can not get the values. Here is my code: HTML - Template <form method="post" action="http://localhost:61712/Default.aspx">...
asked by 01.07.2015 / 16:32
1
answer

Modal popup does not work

My panel code: <div class="modal"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:Panel ID="Panel1" runat="server" > <asp:Button ID="btnClose" runat="serv...
asked by 24.02.2015 / 15:13
1
answer

How to display bank data in Textboxes?

Hello! My scenario is as follows: I'm developing a web application in C # ASP.NET, and I'm having some difficulties getting the database's data (via LINQ to SQL) to the page controls. Below is one of the controls in my .aspx where I...
asked by 15.07.2014 / 15:33