Questions tagged as 'c#'

1
answer

Cost of processing between code and database

Among the many forms of development, there was a doubt about what will consume more of my processing between the same operation in different ways ... If I have a function that can be done directly in my database (a insert using a se...
asked by 27.04.2017 / 20:55
1
answer

.dbml connection - Visual Studio 2017 (C # + SQL Server 2016)

In Visual Studio 2012, there was an option to create the connection file with the DB in (Add > new Item) and then choose the dbml extension file. In Visual studio 2017, where is it? I remember it's something with (Connection for SQL). obs....
asked by 01.05.2017 / 03:25
2
answers

Read values from a column - C #

I need to read the values of a column called Code_Article and put them, but when the column is still empty, I run and give the error: p>    The object reference was not defined as an instance of a   object. Here is my code: conn.Open(...
asked by 28.04.2017 / 17:45
1
answer

Protecting methods of a DLL [duplicate]

I have a DLL that has several internal methods, I want to protect these internal methods so that they are called only by the DLL itself. Is there any way to define which methods can be called externally from the DLL?     
asked by 22.02.2017 / 20:25
1
answer

ReadLine does not ask for data entry

static void Main(string[] args) { Console.WriteLine("ESCOLHA UMA OPÇÃO"); Console.WriteLine("-----------------"); Console.WriteLine("1-Encriptar"); Console.WriteLine("2-Decriptar"); Console.WriteLine("...
asked by 19.02.2017 / 00:49
1
answer

Error in running update-database migration

I'm trying to run the creation of my database, but I'm getting this error below and I'm not understanding why:    The type 'Client' can not be mapped as defined because it maps inherited properties from types that use entity splitting or anot...
asked by 24.02.2017 / 21:42
2
answers

How to know which button called the page?

I have a page with 3 buttons that call the same page and wanted to know if you have how to see which of the 3 buttons called the page. These are Web Forms buttons. What I did was put them to add a value in a hidden field to know on the ot...
asked by 27.02.2017 / 19:17
2
answers

ASP.net JavaScript does not recognize the TextArea if it has a Tag runat="server"

I have a problem with my JavaScript. I am using a code that server to do the numbering in a TextArea when the user gives Enter, however, if that TextArea has the tag runat="server" Javascript does not recognize the box and simply d...
asked by 21.06.2017 / 16:51
1
answer

TopMost Windows Forms

I have two screens in Windows Forms that are enabled with topmost, but when the second window opens, the first one (also with top most) is underneath, but I need both windows to be over windows, but the window1 should always be on top of window2...
asked by 20.06.2017 / 22:18
1
answer

Why does not WebBrowser show reCaptchas?

I set to navigate normally on this site. But in addition to deforming the site's Textbox, it still does not display reCaptchas. The ScriptErros website. But other sites do, but it does not look like that. What can it be? FORM CHROME   ...
asked by 21.04.2017 / 03:24