Questions tagged as 'webforms'

1
answer

Delete a Specify Row from a DataTable

How can I delete a specified row from a DataTable and then reload a ViewState with the rest of the rows left? I have the following case below, but I am not able to delete directly from DataTable . protected void rdItens_Del...
asked by 25.11.2015 / 14:51
6
answers

I can not get the value of an asp: hiddenField in C #, it is always empty

I have a strange problem here. I'm assigning value to asp:hiddenField via javascript (I already tested giving alert and it shows the correct value), but then when I try to get the value of it in C # the meuHiddenField.Value...
asked by 05.02.2014 / 18:13
1
answer

Validate textbox with date

I have a textbox field that I need to enter the date, I would like to know how I can do when the user is typing, validate the field, and if it is not correct, inform the user. What is the best way to do this validation? And how to do it?     
asked by 16.06.2017 / 15:13
4
answers

Create method that prevents code repetition in ASP.NET with SQL

I'm building a website in ASP.NET, using C #. I want to 'link' the site information (text and images) to a SQL Server database. That part of the connection I've been able to do successfully. However, I have to repeat BD connection encoding...
asked by 15.05.2017 / 16:10
1
answer

Load a GridView with selected records

How to load a GridView into the WebForm with some rows already selected? I'm trying the following code but without success ... protected void BindGridAcesso(int idSenha) { Usuario usuario = IdentificadorUsuario.ObterDado...
asked by 22.08.2016 / 20:47
1
answer

Problem saving information from DropDownList to the database

I'm having trouble saving information in the dropdown by btn-save I have a form of registration of real estate being that the information inserted in the dropdown occurs only when I save in another page (that would be) I can not save in the data...
asked by 28.09.2016 / 03:41
2
answers

Insert text into images

I have a Switch that according to the given status it throws an image, however I would like to also play the numbering of this status in the image (that text that usually when we click on the image it appears). I wonder if there is any property...
asked by 04.03.2016 / 19:58
1
answer

How do I set Title in an 'img'?

Is there any way to set the title (Text) of component img to code behind ? <tr> <td colspan="7"> <img id="ProximoMes" src="../Images/Icons/dright.gif" /> </td> </tr>     
asked by 10.03.2016 / 14:14
1
answer

Search in the ComboBox only items that match the digits

In a User Registration Form, I have a% c_of% Civil Status Register (which loads the data from a SQL table), when writing to combobox the system needs to search the data and only present the ones that match with the typed one. For examp...
asked by 25.09.2015 / 16:39
1
answer

Error even with click method

Please can anyone help me with a annoying ASP.NET error? Next ... I have a button: <asp:Button ID="cadastra" CssClass="btn btn-success btn-lg" runat="server" Text="Cadastrar Cliente" onclick="cadastra_Click1" /> And I have the method...
asked by 15.07.2015 / 21:02