Questions tagged as 'asp.net'

1
answer

Event Click on Li Html

I have this code in Html <li class="active"> <a href="#homeSubmenu" data-toggle="collapse" aria-expanded="false"> <i class="fa fa-truck"></i>...
asked by 17.05.2018 / 06:02
2
answers

urls on asp.net mvc 5

Can you leave the urls of my web application in the following way? Example: Normal url - > localhost/MiControlador/MiAccion Url converted - > localhost/mi-controller/mi-accion or localhost/MiController/mi-accion...
asked by 16.05.2018 / 15:39
2
answers

ASP.NET Save file in a folder

Hello friends I am trying to save a file inside a folder that I create dynamically, up to here there is no problem, the point is that when I try to pass the file already in my method I receive it Like Null , could someone tell me where I'm mi...
asked by 16.05.2018 / 21:04
1
answer

Validate texbox from 1 to 100

I'm doing a validation in which I can register numbers from 1 to 100, the more an error message comes out and the texbox is cleaned, it works perfect, when the user leaves that texbox he jumps the second message saying that introduces the number...
asked by 16.05.2018 / 18:38
2
answers

Get daughters entities from the main table

Good I'm doing a test, and I have two tables Products and Brands. The relationship between them is 1: M that is, a brand can be present or can cover several products, while a product only belongs to one brand. This is the code that links to the...
asked by 09.05.2018 / 23:09
1
answer

Consume an https service on asp.net c #

I would like you to help me I am trying to consume a service to my application asp.net c # a that the service I want to consume is .ashx but when I add the service reference I get an error like the image I attached. I would like yo...
asked by 27.04.2018 / 17:16
1
answer

Rename / Save image passed from Ajax to C #

I have the following code which shows an image in a thumbnail using jQuery, which my idea is to pass "the image" of ajax to the controller to do what I need $('#subirFoto').on("change", function (event) { $("#arrastreImagen").html("");...
asked by 26.04.2018 / 19:43
1
answer

How can I use a sql server view in asp.net core 2?

I did a view in sql server of several tables that I use very concurrent among them, my problem is that in asp.net core 2 I can only use the tables of my base with linq or EF from a context and their models that genre with Scaffold-DbContext, how...
asked by 22.04.2018 / 21:12
2
answers

how to make a query that compares two data of a table in LinQ

Hello developers I have a problem turns out that I am doing an update in linQ and for it I have to compare two data so that the update is correct (since one of these data is repeated in my table) but it turns out that linq does not let me compar...
asked by 30.04.2018 / 15:27
1
answer

How to rename the tables created by the EF by default?

Can you rename the tables created by the EF by default? When creating a project with some authentication mechanism, a number of tables corresponding to the logeo system are created automatically.     
asked by 19.06.2018 / 03:00