Questions tagged as 'c#'

1
answer

The Web server is configured not to list the contents of this directory

My project was running smoothly when I needed to split them into Areas. Then all my old controller (which was running perfectly) was migrated to a certain Area. Mapped the areas and even upgraded RouteConfig. However, it is giving this error....
asked by 16.03.2017 / 14:23
0
answers

When and why should a static method be used? [duplicate]

I have always had this doubt in the matter of OOP, I see many codes with static methods and now starting in C # is no different. Being straightforward, when to use this type of method, why use it and its main function! Thanks!     
asked by 11.03.2017 / 06:06
2
answers

Error DispatcherTimer C # (Universal app win 10)

I'm new to programming and I was able to do this code with help, but an error is occurring. follow image. public sealed partial class MainPage : Page { private MySqlConnection _connection; DispatcherTimer mytimer = new DispatcherTimer...
asked by 11.03.2017 / 02:33
2
answers

Validation when editing an existing file?

I have a following problem: I'm moving the part of controller of my system in the part of edit registers and it does the following verification, if I type an already existing code, it displays a alert . ModelState.AddModelError("User...
asked by 24.02.2017 / 14:40
2
answers

jQuery AutoComplete with GenericHandler Error 404

I'm doing an input with an AutoComplete function, but typing it returns on the console with a 404 error. Here's the code: $(document).ready(function () { $("#ListaNCM").autocomplete({ source: "ListaAuto.ashx" }); }); And the Generic H...
asked by 03.03.2017 / 14:34
2
answers

Copy excel extension files from multiple subdirectories with ssis

I'm banging my head at finding the solution to copy excel extension files from multiple subdirectories with ssis. I tried to make the foreach loop container do it but could not, then passed me a code in C # to insert into a ScripTask string...
asked by 21.02.2017 / 20:50
1
answer

Error inserting monetary value into bank

I'm trying to save the value 137421.20 in a SqlServer table with a field of type Numeric (8.2). But I get an error with the description: "Parameter value 137421.20 is out of range." I'm trying to enter the value in the FileTracker_Total...
asked by 21.02.2017 / 21:43
3
answers

create java script functions after rendering all partial views

I have a MVC aspnet code with a main view that can call 3 partials view depending on where the user clicks. One of these partial view was part of the main view and has a jquery pluguin sortable ui, while it was in the main view the pluguin wo...
asked by 22.02.2017 / 00:46
2
answers

ListModel ActionResult () MVC

Personal I need a help to understand where I'm going wrong and how to fix a problem. I do not handle a lot of MVC, but I'm turning here. I need to pass a Model class as a parameter to an ActionResult, but the variable is being sent empty....
asked by 21.02.2017 / 17:06
3
answers

DataAnotation Attribute for Currency

I would like to format with DataAnnotation currency but default en in the model: [Column("cur_mensalidade")] [DataType(DataType.Currency)] [DisplayFormat(DataFormatString = "{0:C0}")] public decimal? Mensalidade { get; set; } but does no...
asked by 03.05.2016 / 14:34