Questions tagged as 'webforms'

3
answers

Problem 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 of clicks to a string in the label . But this does not work, the page is displayed but the number of clicks (the label ) does not appear. Code...
asked by 12.10.2015 / 22:39
2
answers

How to create events in a for loop structure?

My question is the following, I'm developing a program (I'm a beginner) in C #. The part I wanted to improve, is this: I'm wanting to create different events in a for structure. For example: public frmSelecaoDeCartas() { InitializeComponen...
asked by 06.10.2017 / 00:38
1
answer

Button is triggered even disabled, what to do?

I have a linkButton that is disabled via server, like this: lkExcluir.Enabled = false; Code: <asp:LinkButton ID="lkExcluir" runat="server" Text="[Excluir]" Font-Bold="true" OnClick="lkExcluir_Click" OnClientClick="return confirm('Tem...
asked by 25.11.2014 / 13:04
1
answer

AJAX Request Error - success does not work

Good afternoon guys, I have the following AJAX request: $(document).ready(function () { $.ajax({ url: "/membros.aspx/populaGridMembros", type: "POST", dataType: "json", contentType: "application...
asked by 17.01.2015 / 17:30
2
answers

Handling related data Asp.net and C #

I'm developing an ASP.NET application, which aims to register events and add clients to these registered events, forming a list of clients for each event. My question is this: In the Events table there are three types of input (integer type -...
asked by 03.08.2014 / 16:52
1
answer

How do I set columns in a ListView?

I have the following ListView below, I need to leave the first 3 columns fixed and allow the rest scroll. <td colspan="4"> <div class="GradeDados" style="position: relative; width: 1000px; height: 400px; z-index: 1; overflow:...
asked by 26.10.2015 / 14:06
2
answers

javascript prevent from submit

I have a text box and a button. I just want to check the value of the textbox with javascript and prevent it from displaying if it is null. Here is aspx: <asp:TextBox ID="TextBoxName" runat="server"></asp:TextBox> <asp:Button...
asked by 01.04.2016 / 17:34
1
answer

Match javascript variable to a variable in php

I have a form, and before the form is submitted I want to validate if the nome_carro field exists the same in the database. To do this validation I'm using javascript. In the form I have the following: <form method="post" action="...
asked by 09.04.2014 / 16:33
2
answers

Print HTML page keeping the CSS of the page

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 div <div id="pdf2htmldiv">...</div> where I call via javascript for printin...
asked by 07.03.2018 / 20:27
3
answers

More attributes in AppSettings

Is it possible to add other values to AppSettings without breaking with the application? Default values: <appSettings> <add key="Nome" value="ValorTeste" /> </appSettings> I would like to leave it like this...
asked by 03.05.2017 / 19:30