Questions tagged as 'c#'

0
answers

Change in file name C # WIN FORM

In the code below I have two strings, one of them is a path of my database, in which I can already compress through a method that I have created, until then ok, but I would like that in each check it changes to a name different, in order never t...
asked by 29.11.2017 / 18:44
2
answers

SQL / LINQ vs. Data to feed graphic

I am trying to generate a query in VS2015 with Linq (here, I exemplified in SQL, to speed up my tests directly in the bank) that returns the data grouped and counted from 6 months ago, it happens that in some of the months there is no data soon...
asked by 05.12.2017 / 13:16
0
answers

Send file used @ Ajax.BeginForm and XMLHttprequest

I have the following question: I'm doing a post with @Ajax.BeginForm , however it does not send a file, so I wanted to use File Api , my idea was as follows I would do post by @Ajax.BeginForm thus: @using (Ajax....
asked by 30.11.2017 / 14:03
1
answer

DataGridView loads the data but does not display it

I have a DataGridView , it loads the data but does not display them. private void AtualizarGrid() { //Procura no banco os registro digitado na caixa de pesquisa. AlunoDAL alunoDAL = new AlunoDAL(); //Exibi no Grid os nomes pesqui...
asked by 30.11.2017 / 02:22
2
answers

How does "new" and "virtual" work in C #?

Can you explain to me how they work in C #? When I create a parent class and it has a teste() method and I want to rewrite this method in the child class, I need to use virtual and new ? If I create: class Veiculo {...
asked by 06.09.2016 / 00:13
0
answers

Could not create the driver from NHibernate.Driver.OracleDataClientDriver, NHibernate, Version = 4.0.0.4000, Culture = neutral,

I'm working on an application with N Hibernate and Fluent NHibernate. I'm having problems with the settings of my App.config . I do not know exactly what's wrong with my settings. I'm getting this Exception: NHibernate.HibernateExcepti...
asked by 28.11.2017 / 13:41
0
answers

Month and day inverted when saving to database

I am using datepicker of jqueryUI to choose the date in a calendar, the problem is, if I choose 04/12/2017 it is saved in the 12/04/2017 database. datepicker: $('#schedulingCalendar').datepicker({...
asked by 28.11.2017 / 14:41
1
answer

How to Popular Image in Gridview?

I'm doing an application in Asp.NET , with Entity Framework and using the database Oracle and it's the following I'm uploading the image by a button and saving in the database with type% I want to be able to do this, b...
asked by 28.11.2017 / 13:55
0
answers

Generate a new control for each listed item

Hello, based on the code below, I would like to know how to generate a new control (in my case a grid) for each existing item in my ListBox ... My ListBox: <ListBox Height="380.585" Width="258.998"> <ListBoxItem x:Name="i" Conte...
asked by 25.11.2017 / 18:33
1
answer

Problems when referencing JavaScript and css files - Asp.net Core

I am trying to adapt a layout template that I found on the net in my ASP.NET core, but I am not able to make it work .... I created a Content folder in the root of the project and inside it I have subfolders with files css and javascript. I alre...
asked by 30.01.2018 / 01:39