Questions tagged as 'asp.net'

2
answers

Receive variable value in 'where in'

In my procedure I have the following variables: @Codigo VARCHAR(MAX),@cont as int, @DataPago as VARCHAR(10) Via C # application I'm passing the values as follows: y1.Parameters.Add("@Codigo", SqlDbType.VarChar).Value = "2,4"; y1.Pa...
asked by 23.10.2015 / 18:10
1
answer

How to dynamically grab the directory from the Content folder?

My question is the same as the title: how do I create a variable that points to the Content folder? I have a file there and I want to access it. I tried this way, but without success: StreamReader file = new StreamReader(@"~/Content/tb_ocup...
asked by 23.06.2017 / 00:28
1
answer

How to insert arrays inside angular objects?

Let's say I have a vehicle object that has the following attributes converting my C # class to Json: { "UsuarioId": 0, "TipoId": 0, "MarcaId": 0, "ModeloId": 0, "VersaoId": 0, "Quilometragem": 0, "AnoFabricacao": 0, "AnoModelo...
asked by 26.01.2017 / 02:14
1
answer

Generic class for CRUD

I have some common CRUD features in the database such as cadastrar , buscar um registro , buscar todos os registros , and excluir . For this, I am currently implementing a class manager each database table to perform the...
asked by 26.07.2016 / 14:58
2
answers

Azure Shared Application Service

Good morning everyone! I am developing an entertainment portal where you will have images and text (eg Earth or UOL) using ASP.NET and sql-server. I was analyzing about Azure and I had a question: Is the shared application service similar to the...
asked by 30.04.2016 / 16:01
1
answer

Problem with Jquery function

The function I created in Jquery, is not being called in the first click, it is only triggered in the 2nd. I'm using ASP.NET, C #, I need the panel component to start hidden, so by clicking on the p tag it appears and so calling the toggle () me...
asked by 27.05.2015 / 22:44
2
answers

Date field autocompletion in the application

I have a form in my C # ASP.Net application where I need to fill in an end date, but I want to standardize so that the end date is always 5 days after the start date. How to do this? I believe that a Javascript would solve, but I have no experie...
asked by 29.08.2014 / 20:57
2
answers

How to access from another computer the application running on localhost

I have a web application made in ASP.NET MVC 5, and I gave it a start in Visual Studio 2013, the address of the Index page was thus on the machine where it is running: http://localhost:51144/ . How do I get another network computer to a...
asked by 18.06.2014 / 14:44
1
answer

Field checkbox is not recognized marked

I have these two fields checkbox <label class="control-label col-md-3" style="text-align:left;">Tipo de Pedido</label> <div class="col-sm-3" style="text-align:left;"> <input type="checkbox" asp-for="Produtos...
asked by 15.10.2018 / 20:27
1
answer

List existing folders / subfolders and folders in a specific root folder

Is it possible via code to list the existing folders / files in a specific folder? Example And play this list on a grid / table on the WEB for the user to know if the folder he wants to create already exists?     
asked by 03.05.2018 / 15:18