Questions tagged as 'asp.net'

2
answers

Difference between ADO.NET and Dapper

What are the differences between the ORM's? When to use one and when to use the other? What are the disadvantages of each?     
asked by 19.07.2018 / 02:32
2
answers

Is it necessary to open and close a connection when entering data?

In% insert% in an Excel spreadsheet is it necessary to open and close the connection? I have analyzed the following, depending on how much logging can take up to 1h30 to make *loop* que faz .    Example : The procedure returned 44...
asked by 11.10.2017 / 15:09
3
answers

Capturing the user's real IP

How do I capture the real IP / Public IP of the user who is accessing the application? The IP of the computer I can capture normally, but I want to know the public IP of that client.     
asked by 03.09.2015 / 22:23
2
answers

Doubt about the error "Error converting data type varchar to float"

   Error converting data type varchar to float This error is occurring when I make a Update in a table, below the code: SqlCommand cmd = new SqlCommand("UPDATE Notas SET nota = '" + nota.nota + "' WHERE idMateria = '" + nota.idMater...
asked by 09.12.2015 / 03:02
2
answers

Difference between button types

What's the difference between the following components? <button type="button">Click Me!</button> <asp:button ID="cmdAvancar" runat="server" >Click Me!</asp:button> <input type="submit" value="Submit"> I say for...
asked by 09.02.2017 / 19:02
2
answers

Asp.net WebForms. Timeout error exceeded in SQL Server. How to solve?

In an ASP.NET WebForms application that uses SQL Server 2008 a search field that works with AJAX requests method asmx . To avoid mass requests I added a delay method in the keyup method of input $("#txtPes...
asked by 20.08.2014 / 22:19
3
answers

Enter page using the bank ID in ASP.NET

I need to make a page that can be accessed in the following format: www.exemplo.com/id/123qwe This 123qwe is the ID of a line in the database, where I will get all the data to fill the page. So far I've been able to...
asked by 24.02.2014 / 14:15
1
answer

How to configure Web API with multiple Get

I need to provide in my web api three forms of query: First Get with all records "GetAll", the second GET by the id and a third GET with filtering options, sent by the client eg Name contains the letter " the "and address contains the word" brid...
asked by 15.07.2016 / 19:55
2
answers

Format mask for CNPJ

I need to format a mask for CNPJ. Until then it is done, but the company default is to format with space instead of point. This is the code I am using. valorDoTextBox = valorDoTextBox.replace(/^(\d{2})\.(\d{3})(\d)/, "$1.$2.$3") Someone...
asked by 30.07.2015 / 21:15
2
answers

How to catch Exception generated by a method whose access is not authorized by a given user profile

How can I send the user a message that the operation he wants to do is not allowed? I have in my View a button that calls a Javascript function <button id="btninicio" onclick="salvaApontamento();">Inicio</button> This sal...
asked by 13.07.2015 / 16:09