Questions tagged as 'c#'

1
answer

Filter with SQL query from a combobox - c #

I am creating a stock program and would like the query of items to be filtered by a combobox, ie, when typing in the search field only the results regarding the parameter of the combobox appear. This is my SQL query code: DataTable tabela =...
asked by 12.10.2018 / 21:54
1
answer

Parser error in my application

Good evening guys, I'm trying to run my application but this Analyzer Error appears. I have already entered the webforms of Vendor to see if I find any errors in the code but nothing, compile the project and nothing error. <%@ Page Language...
asked by 15.10.2018 / 23:58
2
answers

Error while reading a Json string

I'm trying to create a table for a football league with the return of a json: To facilitate I will put the Json below refers only to a Team: { "id": "1", "nome": "Palmeiras", "Atleta": [ { "id": "0", "nome":...
asked by 14.10.2018 / 21:24
3
answers

I do not know how to convert images to xamarin.forms.image

I am developing a xamarin.forms application and am having difficulty understanding how to fill in the parameter to convert an image to array of bytes, I searched a lot for some solution, found this method below to convert to array of bytes. p...
asked by 15.10.2018 / 00:22
0
answers

Load one page inside another

I have a layout page where I want to load information into the notifications button. For this, I made an action in the controller to return a PartialView where a query will be made in the bd looking for the information. How do I load this...
asked by 14.10.2018 / 23:59
0
answers

UNit Test Project and XamarinUITest cross-plataform test project in the same solution do not work together Web / Android C #

Good morning / afternoon / evening. I created a C# solution with a project using NUnit tests and another project using Xamarin Tests (in this order). I'm trying to use a variável of projeto/classe NUnit...
asked by 11.10.2018 / 21:27
1
answer

How to fill combobox with SQL query? W#

I would like to know if it is possible to pass data from an SQL query to a combobox using C #. I researched the subject and found examples, but when I adapted to my case, I could not use it. I'm doing it this way: private void carregacombo() {...
asked by 10.10.2018 / 04:21
1
answer

Parallel Execution

I have a process that is running in my application for control. This process runs within a timer. private void timer1_Tick(object sender, EventArgs e) { // bloco de instruções 1 // bloco de instruções 2 } What happens is that proce...
asked by 10.10.2018 / 20:41
0
answers

Upload Image and save to Asp.net server

Could friends help me create a function to save the path + image name in the database, and save the image to my server? I am using the model.PhotoName field which is a string to store the path, but I do not know how to upload it...
asked by 10.10.2018 / 22:26
1
answer

How to call a javascript function after a download in webforms

I have an aspx page with a grid and a linkbutton. When clicking on this linkbutton I call a function that locks the screen and places a loading while downloading a file on the server, after download I try to call the function to unlock the scree...
asked by 10.10.2018 / 23:00