Questions tagged as 'c#'

2
answers

Bank image conversion to use in a background

I'm using the following code to put buttons with each category name, but I'm not getting (I do not know how to search) convert to background image, just give me the tostring option. { ctx.DefaultContainerName = "kinectEntit...
asked by 15.09.2017 / 19:25
1
answer

Validate StreamReader twice

I get a .csv file in my Controller . This file can contain two templates , with 2 or 5 lines. First I have to do the validation to check if the file contains 5 lines: var arquivo = new StreamReader(model.Arquivo.InputStream, Encoding.UTF...
asked by 28.04.2017 / 22:23
1
answer

Insert value into a C #

I have to read a column (which is the primary key of a table) and see if in that column there is a value of a variable, if it does not exist, I want to add it, if it exists, I want to move on. I have this code, but it tries to insert even if it...
asked by 27.04.2017 / 16:22
1
answer

Problems when mapping database Entity Framework

I'm having trouble creating a solution for this business rule. I currently have 1 Client, 1 Correspondent and 1 Shop. Both use the same Address table. Since the cliente , correspondente , and loja tables can not have the au...
asked by 27.04.2017 / 16:46
1
answer

Can I store files in an executable?

I need to store a file, no matter its extension (it's mostly an executable) within another executable. I'm compiling with CodeDom an executable that inside it there is a "special" and encrypted file, while executing the all magic executable...
asked by 29.08.2017 / 09:03
1
answer

How to call a bank function from code

I would like some help, I have the following function that is in the database postgres CREATE OR REPLACE FUNCTION public.get_id(campo character varying) RETURNS integer AS $BODY$ DECLARE _id integer; BEGIN select into _id vlr_c...
asked by 29.08.2017 / 17:17
2
answers

ASP.Net - Browse RadioButtonList?

I have several RadioButtonList in a form, in the event of submitting the form I want to go through them and get the selected value. I tried this: protected void btnEnviarQuestionario_Click(object sender, EventArgs e) {...
asked by 01.09.2017 / 14:00
2
answers

DropDownListFor selected values do not persist

I'm using ASP.NET C # with mvc 4 and in my View I have a DropDownListFor, with a class I used from bootstrap-multiselect, as in the image: Andthecodeintheview:@Html.DropDownListFor(m => m.Estagios, (IEnumerable<SelectListItem>)Model...
asked by 02.08.2017 / 17:43
1
answer

Set download location and name of each downloaded file - Selenium WebDriver C #

I'm doing an automation using Selenium with Chrome WebDriver. The application has to do a series of downloads that need to be saved with different names (Data + Report type) and folders that match the type of report I'm downloading. The probl...
asked by 03.08.2017 / 16:04
1
answer

DataBindTable Incompatible with SqlDataReader does not implement IEnumerable

___ erkimt ___ DataBindTable Incompatible with SqlDataReader does not implement IEnumerable ______ qstntxt ___ I have a problem displaying the data in a column that is in the
asked by 12.04.2017 / 12:08