Questions tagged as 'c#'

1
answer

How to list all names of Access tables?

Hi, I'm wanting to display the names of the tables that are inside the Access file and play for a variable. How can I do this? Does the C # platform itself provide attributes so I can do this? I am using the System.Data.OleDb reference . Bel...
asked by 29.07.2018 / 23:12
1
answer

Validate fields with OnClientClick

I'm trying to call a JavaScript function through OnClientClick . The problem is that when running in the browser it does not validate the fields, it is as if the function was simply not called. JavaScript: function VerificaCamp...
asked by 18.04.2018 / 14:56
1
answer

Change print quality in C #

I'm creating a program where at some point it needs to print a budget ... using(PrintDocument print = new PrintDocument()) using(PrintPreviewDialog dialog = new PrintPreviewDialog()) { print.PrintPage += Print_PrintPage; dialog.Documen...
asked by 16.04.2018 / 16:56
1
answer

PartialView not loading in select2 pattern

I have a problem when I call my PartialView, it loads all the data in the View but not in the select2 format, in case it would be when clicking on the input the data appears, it is currently loading all on the screen. ExofaViewthatIuseandloa...
asked by 17.04.2018 / 16:40
1
answer

Select with entity framework in N: M with multiple objects

I have the following classes: Client, Contact, Phone, Campaign, and Customer Campaign. Where CampaignCustomer, has a campaign, has a Client (who has a phone list and a contact list and who may have a phone list). I can give a Select in the...
asked by 10.02.2018 / 01:52
1
answer

Import data from an excel spreadsheet into the Database- Epplus

Gentlemen, I have the following problem: I created the code below, I made some changes, however I can not import my file. My application is in .NET , and the database is the Oracle Sql , and I have adapted the EPPLUS library. If anyone has...
asked by 15.02.2018 / 18:08
1
answer

How to check if an XML node is null?

I have a WS that has a method in which a list of nodes with some data is inserted. I get these data as XmlDocument , I run the Parameters node by reading the contents inside it, after that I get the data and fill in the parameters of my Pr...
asked by 09.02.2018 / 13:52
1
answer

Set the property size of type array

I have a property that is of type array. This array must have two dimensions being 7 rows and 4 columns, ie AnyType [7,4] , code: public class WorkingDays { public TimeSpan[,] Times { get; set; } } How do I set a size by forcing an a...
asked by 18.04.2018 / 20:51
1
answer

Conducting a query linq C #

I have a controller where I make a Select to get a list, but it returns empty. public IEnumerable<Check> GetUserByNumberOfregistration(int numberOfregistrationUser) { CheckContext contextObj = new CheckContext(); var resu...
asked by 06.02.2018 / 00:53
1
answer

Synchronize player and host movements

Hello. I'm doing a school project and I'm following the Unity Multiplayer Netorking tutorial. Everything worked properly, however the tutorial teaches you to have a player and a host, both each with a "character" that moves independently of the...
asked by 06.02.2018 / 11:15