Questions tagged as 'c#'

1
answer

Problem accessing data from dynamically generated ASP.NET fields

I'm developing a website where you have an administrator for the contact forms, that is, the client can create fields for this form. So far so good, the registration works well and I can draw the form correctly on the screen, as per the code bel...
asked by 08.01.2015 / 15:46
1
answer

Difficulty hiding part of a form with UserControl

I have a form called frmCadastroBens that declares a UserControl, which I call wucCadastroBens. In this form I register the UC like this: <%@ Register src="WUC/wucCadastroBens.ascx" tagname="wucCadastroBens" tagprefix="uc1" %> <%@ Reg...
asked by 02.02.2015 / 14:16
1
answer

RadioButtoList does not obey selected SelectedValue

I have this Radiobutton: <asp:RadioButtonList ID="rdlCpfCnpjFornecedorBemNovo" CssClass="cPFCNPJRadioButtonList" runat="server" RepeatDirection="Horizontal" AutoPostBack="false" RepeatLayout="Flow"> <asp:ListItem Text=...
asked by 30.01.2015 / 16:15
1
answer

Load variable with Lambda expressions traversing a list

First I made this code: for (int i = 0; i < vlstAcessos.Count - 1; i++) { if (vlstAcessos[i].DsURLTransacao == "frmANAAguardeProcesso.aspx") transacaoANA =...
asked by 10.03.2015 / 13:15
1
answer

Calculating how many times I need to send a string

I have a service that updates controller card status .. Only it only returns me 22 records at a time. So I need to get the number of items I want to update and send the amount of messages needed to update them all. Example: I have 5 boards...
asked by 11.03.2015 / 14:14
1
answer

How to fill in TextBoxes?

I would not like to use multiple if's to control a method of mine, unless there is no way to do it without if's . Record in a list, the return of the DB that may or may not have bank information. The list returns me, Nome_Banco...
asked by 30.12.2014 / 16:15
1
answer

How to call the SelectedIndexChanged event of a method

How do I call the SelectedIndexChanged event of a Dropdownlist in another method. Use WebForm.     
asked by 30.12.2014 / 12:36
2
answers

generate a Users log in C #

My personal project of the university I'm doing in C # windowsform and I would like to generate a logo that when a user include, delete, change in any form generate a log where I can create a form of log of all the user that makes any event ....
asked by 24.03.2015 / 00:43
1
answer

Problem retrieving References from a query in Nhibernate HasMany

I'm using Nhibernate with WebAPI I have 2 entities Profile and personLogin Personalogin may have N Profile and Profile 1 Person Login. However, when I go to the webservice PessoaLogin, the Profile reference only works if it is NULL if I add a Pr...
asked by 18.12.2014 / 18:21
1
answer

Sort values from one li by date C #

Is it possible to sort the values of a dropdown per day? Is there a order by or do you really have to do if's for that? Code sample: <span class="dropdown"> <button class="btn btn-search dropdown-toggle" type="button" i...
asked by 18.12.2014 / 12:24