Posts by Cleidson_eng • 358 points
12 posts
-
0
votes1
answer140
viewsA: Dropdownlist The Name '' does not exist in the Current context
Doing some tests using a similar code, first he was not able to obtain and load the Dropdownlist inside the 'Edititemtemplate'. So I used with Dropdownlist within the 'Itemtemplate'. Using the Event…
-
0
votes3
answers351
viewsA: Group by days interval using Linq
I used the response of Tiago S and remained as I wish, see reply on the link Dotnetfiddle Reply…
-
4
votes3
answers351
viewsQ: Group by days interval using Linq
How can I use interval grouping with Linq? var dados = new[] { new { Id = 0, dias=100, preco= 25, Nome="etc"}, new { Id = 1, dias=40, preco= 50, Nome="etc1"}, new { Id = 2, dias=50, preco= 55,…
-
2
votes3
answers1491
viewsA: How to replace the number of letters of a word with a character?
In addition to what has been answered previously you can use regular expression 'Regex' with the replace function, replacing the characters. string txt = "Primeiro Teste"; string forca=…
-
2
votes2
answers51
viewsA: Resolve error Value of 'X' is not Valid for 'Selectedindex', where X is any Index value
It seems that the value returned from Gridview should not be an existing index in the combobox. The return value of this column is actually an index or would be an identifier of each UF?…
-
3
votes5
answers4312
viewsA: What does Nan mean in Javascript?
The global property Nan is a special value meaning Not-A-Number (not a number). In this example, it is one of the situations that is returned the value 'Nan', in this case the conversion of a string…
-
7
votes5
answers1273
viewsA: Why Nan Nan == 0?
The global property Nan is a special value meaning Not-A-Number (not a number). Unlike all other possible values in Javascript, it is not possible to rely on equality operators (== and ===) to…
javascriptanswered Cleidson_eng 358 -
0
votes3
answers1314
viewsA: Format Field C#
You can use the following: int retorno = Convert.ToInt32("1000"); string.Format("{0:0,0}", retorno);
-
1
votes2
answers579
viewsA: Exception of type System.Nullreferenceexception
You can do it this way too: int cod_centro_custo = Session["cod_centrodecusto_usuario"] != null ?(int)Session["cod_centrodecusto_usuario"]:0;
-
2
votes2
answers1682
viewsA: Get data from each row of a column in C#
If you want to perform this action while loading the data you can use the event 'Onrowdatabound': gdvView.DataSource = Lista; gdvView.DataBind(); protected void GdvViewOnRowDataBound(object sender,…
c#answered Cleidson_eng 358 -
0
votes2
answers169
viewsA: Hide menu on login screen C#
I tested your code here and it works normally, but as it is not working on the server it costs nothing to check other possibilities. You can create a method in Master.Cs that gets true or false, in…
-
3
votes6
answers1056
viewsA: How to make a Split for when there is a letter in the string?
In addition to what has been answered previously you can use regular expression 'Regex' with the replace function, replacing the unwanted characters, in this case replace with a '-' dash, then just…