Questions tagged as 'asp.net'

1
answer

What's the difference between using "equals" vs == in LINQ to Entities?

As I mentioned above, when I say equals of LINQ to Entities I'm referring specifically to the C # reserved word and not to Equals() of System.Object . Source: equals (C # Reference) The following example returns all...
asked by 06.12.2018 / 23:34
3
answers

Bootstrap dropdown menu does not work in asp.net site

I have a page index.html that the dropdown menu feature works normally, but when I migrated to asp.net stopped working. I'm using a page Default.aspx that inherits from masterpage.master . <div class="btn-group pull...
asked by 27.02.2014 / 15:35
3
answers

How do I get the value of the dynamically created TextBox?

I have a form that receives an amount of TextBox that should be instantiated, the page then generates the textboxes, however I do not know how I can get the values. hd = Request.QueryString["qtHD"]; mem = Request.QueryString["qtMem"]; hdnum =...
asked by 27.02.2014 / 19:40
1
answer

POST in Web API returns Invalid Content Type

I'm trying to send a POST request to a Web API. If I do it by Postman, it works: NowwhenItrytoexecutethroughcode,Igetthefollowingerror:{"status": false, "message": "Content Type Inválido. (Formato aceito: Content Type = \"application/...
asked by 23.03.2018 / 18:41
1
answer

Physical and Legal Person on the same table

Could you help me please? I am developing a client crud, where I will leave legal and physical person in the same table, but in the case when the user chooses the type of person through a radio button, I will show and hide some fields through...
asked by 18.09.2018 / 19:34
1
answer

Entity Framework lambda with include return empty collection

I have a select that returns chained data and plays them in a ViewModel created for the simple reason that I can not return all the data in my table, as in the example: var data = _context.Forms .Include(i => i.OrganizationUnit) .Include(i...
asked by 14.02.2018 / 23:52
1
answer

Use variable value not yet declared. Circular Reference in C #

I know the question seems absurd but a client of mine passed me an excel spreadsheet that has a variable that is used before having its calculation defined. In excel this calls Circular Reference. I need to do this in my code. Here's the p...
asked by 20.12.2017 / 17:20
1
answer

Problems with the excel connection string

I have the following code snippet that connects to Excel, however it returns me the error: string sFileXLSX = ConfigurationManager.AppSettings["ExportPerformanceEntrega"]; string strConnXLSX = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source='"...
asked by 03.10.2017 / 22:18
1
answer

Relationship 1: N check date, difference 6 month

I'm developing a SQL Server procedure, which lists two tables: WhereaprocesshasN-statements,Ineedtoreturnthefollowingdata:allProcessNumbersthatarewiththeIrrecuperavel(int)=1columnandthe"last" date entered in the Process table for that% Proce...
asked by 28.11.2017 / 17:10
1
answer

Validation of dates in the Asp Net Core model?

I have a template and wanted to validate the end date (which should be equal to or greater than the start date) public class MyModel { [Key] public int ModelId { get; set; } [Display(Name = "Início")] [DisplayFormat(DataFormat...
asked by 15.08.2017 / 17:23