Questions tagged as 'c#'

1
answer

Keep a user logged into the views

I am trying to realize that when I register a user, his username appears in the header of the page. All this in ASP.NET. I have done the validation and I verify that the user really exists, but now I want him to show me his name in the header....
asked by 23.05.2018 / 09:43
1
answer

Why do I get error table id = MainContent_table - Ajax. When trying to do lazy loading?

What I want to do is a datatable with a weak load, that will load the data according to what is being asked. Code of c #: public partial class ConsultarEvidencia : System.Web.UI.Page { private int conta = 0; public strin...
asked by 22.05.2018 / 21:24
0
answers

Help with getting data from two excel sheets and compare them

Hi, I'm doing an application to read excel sheets, and I need to know if what I'm doing is the best or if someone else comes up with another idea, tell me before I get into this. I explain the process, first I take the excel file and I transf...
asked by 22.05.2018 / 21:57
3
answers

visual C #. Validate data inserted in textbox

I look for the way to validate data entered into a textbox which is used to get the value entered and take it to mathematical formulas. Now create a function which the user can only enter numbers (0-9), and the characters ".", "," And "-" to wri...
asked by 23.05.2018 / 15:33
0
answers

remote validation and bootstrap datepicker conflict

Good morning. It is a web application MVC 5 c #. I installed the datepicker bootstrap and it works very well in Spanish, after making some fixes with globalize.js. The issue is that then I created a remote validator and there is a conflict. W...
asked by 21.05.2018 / 23:39
2
answers

How to validate data entry in C # console

I have a doubt in the validation of data entry in C #, for example, in an exercise of calcuclar a sum in C # console mode, as it prevents the execution from hanging and let it run when inserting letters. For example with this code that takes...
asked by 22.05.2018 / 00:23
0
answers

DataGridView with property ColumnHeadersVisible false does not allow selecting cell CheckBoxColumn c #

I have a DataGridView which has no DataSource associated, but it is filled manually. With two columns: Column 1: seleccion Column 2: descripcion . dgrid.Rows.Add(new object[] { true, "ADMINISTRACIÓN"}); d...
asked by 18.05.2018 / 19:18
1
answer

Duplicate UserControl in C # WindowsForms

I have a UserControl, but I need to create several of those, I tried to make an instance, but it shows me an error. Code: 'MyControl Control = new MyControl (); The error is In Both MyControl and it is as follows:    Error CS0246 The type o...
asked by 20.05.2018 / 18:36
0
answers

How to detect when an asp textbox changes its content without pressing any key?

What I want to do is that when a textbox changes its content it performs an action, but the user will never see the textbox will be filled automatically, so there will never be a typing for the textbox change. Form 1: jQuery('#some_text_box...
asked by 19.05.2018 / 17:59
1
answer

Why would my table generated by html generic in c # put it as text and not as an html element?

Currently I want to generate a few rows in a table depending on the images I have stored in a location, only when I want to concatenate everything with a innerhtml it is generated as text by the structure of the table. This is se...
asked by 18.05.2018 / 14:54