Posts by Maicon Carraro • 8,881 points
269 posts
-
1
votes6
answers2938
viewsA: I can’t get the value of an Asp:hiddenField in c#, it’s always empty
I had the same problem and solved seeking the value of it that was sent along with the form in the request. var valor = Request.Form["meuHiddenField"]; or var valor =…
-
2
votes2
answers1015
viewsA: How to make a request by sending cookie data?
I never programmed Python, but looking at us Docs.python-requests.org I think you can do it like this: url = 'http://servidor/pagina.html' cookies = dict(info='the+flowers+are+on+their+way') req =…
-
5
votes2
answers271
viewsA: Can anyone identify the error in that code?
In addition to counter error, it is happening that when you recover the "counter" on the line var valor = sessionStorage.Contar it ends up returning the number as text, so when you try to do valor+1…
-
2
votes2
answers2721
viewsA: How to write in a text file concatenating with existing text in Java?
Add text to existing text you need to open the file with the mode APPEND. You can inform this in the Filewriter. FileWriter(String fileName, boolean append) Example: Writer arquivo = new…
-
1
votes7
answers2949
viewsA: How to use multiple SQL commands (in the case delete on ORACLE) in one line only on C#?
UPDATE* Why You Don’t Run Individual Commands? public string ExcluirIndicador(int codigo) { try { comand = connectionFactory.CreateCommand(); comand.Connection = connection; comand.CommandType =…
-
1
votes6
answers5869
viewsA: How to know the number of a week in each month
Try this method: public static IList<DateTime> obterSemanaDeCadaMes(int ano, int semanaDoMes, DayOfWeek dia) { int semana_atual = 1, mes_atual = 1; DateTime date = new DateTime(ano, 1, 1);…
-
10
votes3
answers13134
viewsA: How to make a dowload inline file available in html?
You can use MIME-type data:text/html Render HTML code when you click the link: <a…
htmlanswered Maicon Carraro 8,881 -
0
votes3
answers1824
viewsA: Access server without public IP
Samuel already tried to get his IP address through any website providing your external IP and trying to access it remotely? If you have no firewall configuration that can block the connection, I…
ipanswered Maicon Carraro 8,881 -
2
votes4
answers35413
viewsA: How to check events between 2 dates in Mysql?
If you are to compare the start and end of the interval with a single date then an alternative to the query is to use the BETWEEN, example: SELECT titulo FROM eventos WHERE '2014-02-03' BETWEEN…
-
21
votes3
answers70810
viewsA: What are the appropriate data types for columns like address, email, phone and mobile phone for SQL database?
For the address, email and phone/cell phone fields I recommend using VARCHAR because it has a variable size and correctly save the data. Why VARCHAR and not CHAR? SWEEP has a variable size according…
-
1
votes1
answer2151
viewsQ: Problem printing a report using Reportviewer
Problem I have several reports Report Services Client that when I try to print happens 2 possible errors: If not installed the rsclientprint.dll the following message appears when I try to print the…
-
13
votes4
answers8554
viewsA: How do LTRIM() and RTRIM() in Java?
You can use regex: Right Trim: String texto_filtrado = original.replaceAll("\\s+$", ""); Left Trim: String texto_filtrado = original.replaceAll("^\\s+", ""); Source:…
-
3
votes3
answers3924
viewsA: How to know the week of a given month?
Option 1: public static void obterDiasComIntervaloSemanal(DateTime data, int intervalo, int total_semanas, DayOfWeek[] dias) { int semana_atual = 1; while (semana_atual <= total_semanas) { if…
-
4
votes2
answers3054
viewsA: How to use special characters in strings?
In the ASP.NET path you have some 'shortcuts' to specify the path. Let’s assume that your project is on the following path C:\Projetos\TestandoOPath And you will use the code on the page that is on…
-
5
votes2
answers180
viewsA: Is there a plugin or CSS code generator for Shapes(Shapes)?
Paul you can use the CSS Shape Generator, it is in beta yet but is very useful and seems to be what you need.
cssanswered Maicon Carraro 8,881 -
10
votes3
answers14931
viewsA: How to style <select> tag
Try this: <style> .select-estiloso { /* <div> */ width: 240px; height: 34px; overflow: hidden; background: url(nova_setinha.jpg) no-repeat right #ddd; /* novo ícone para o <select>…
-
2
votes3
answers5030
viewsA: Keep zero after comma using the float type?
If the problem is displaying this value without zero after the comma then you can try using the String format to display the way you want it to: float valor = 1.00f; Console.WriteLine(valor); // 1…
-
0
votes4
answers10518
viewsA: Eclipse menus are gone
Try typing "Perspective" in Quick Access, choose "Java" instead (Perspective).
-
3
votes4
answers491
viewsA: How to get the name of the property to which a lambda expression refers?
This function tries to recover the name by casting it as Memberexpression, if it doesn’t work it does by Unaryexpression. public static string GetName(Expression<Func<object>> exp) {…