Questions tagged as 'c#'

2
answers

Parameter name size influences the http request time?

Does an http request for a service have its performance (bandwidth consumption / internet / time) changed if the parameter names are large? Example. Request POST with the following parameters { "IdUsuario": 30735209, "IdProdutoBase": 2, "...
asked by 19.11.2014 / 17:12
1
answer

How to change terms in an Expression?

Based on the following response in: How to convert an expression tree to a partial SQL query? , I'm using a class inherited from ExpressionVisitor to try to treat some conditions in my expressions. Example usage: var pessoaId = 1...
asked by 22.11.2014 / 14:32
2
answers

Help with parameters TextBox / string

I have this method where I would like to bring IBGE. When I put the TextBox as a parameter, it usually comes up, but the problem is that I am using a Library and can not import the TextBox. So I replace the TextBox with a string, but that way it...
asked by 29.07.2015 / 13:19
1
answer

How to use Html.BeginForm with JavaScript / Ajax

I have a View to generate Report on my system and I'm using a BeginForm. The idea is when I submit the submit to my GridReport which is another View, load inside one that I have inside the ViewReport. I want to do it with Ajax, but I can not....
asked by 22.07.2015 / 13:56
2
answers

Passing data encrypted by URL in ASP.NET MVC

I need to pass a link, but I did not want to leave it too exposed, I would like to know how to Encrypt at least the id of the object. I created a class for Cryptography, but it generates "/" and this places it as a route in MVC.     
asked by 28.09.2015 / 22:08
1
answer

Remove EF dependencies without using the MyConfiguration class

I'm trying to create an application by removing all EF dependencies and leaving only the required layers: Repository and Application . I did a little project to test the operation before applying to the actual project to avoid complications,...
asked by 22.09.2015 / 20:22
1
answer

Firebird C # singleton pattern

I'm using the following function to connect to the database, I'm programming in C # in Visual Studio 2013. namespace WindowsFormsApplication1 { static class Conexao { private static String strConn = Properties.Settings.Default...
asked by 03.11.2015 / 15:23
1
answer

Create second column in DataTable

I have DataTable where with the code: DT.Column.Add("1ª", gettype(int32)) For I = 1 To 30 DT.Rows.Add(I) Next(I) This For enumerates column 1 from 1 to 30. 'DT is declared with a new DataTable , in...
asked by 11.11.2015 / 02:16
1
answer

How to use @Html.ActionLink to create links to a multi-route?

I would like to use the @Html.ActionLink to create the following link: http://localhost:59278/video/categoria/new-movies/3 Being that my control is: [Route("video/categoria/new-movies/{page?}")] public async Task<ActionResult> Index...
asked by 05.11.2015 / 18:09
1
answer

Using Onblur in Asp.Net with problems!

I need to format and validate a date field by using the OnBlur property of Javascript within the codebehind C #. The problem is that it performs the javascript function and does not return the value for the field. In relation to this I...
asked by 25.06.2015 / 17:01