Posts by Tiago César Oliveira • 2,855 points
74 posts
-
5
votes3
answers8147
viewsA: How to fix javascript encoding problem?
The problem is not the Javascript database, but the one on the page. Try using <meta charset="utf-8" /> in your section head: <html lang="pt-br"> <head> <meta charset="utf-8"…
javascriptanswered Tiago César Oliveira 2,855 -
1
votes2
answers1033
viewsA: Change a detachable PDF field
Yes, it is possible! You need to use the namespace iTextSharp.text.pdf. camposDict is a IDictionary traditional. Follow the implementation I use: public string PDFReplace( string path, // PATH do…
-
7
votes2
answers2181
viewsA: Pass Javascript data to C#method
The ID for ASP.NET elements generated on the server (runat=server) is updated at runtime. Use <%= lblLatitude.ClientID %> to reference the ID correct: var latitude = "<%=…
-
6
votes3
answers5305
viewsA: Convert string to utf-8
If you’re having problems with your browser, you’re probably using Wrong Match. Add the header <meta charset="utf-8" /> to the section head of your page, as below: <html lang="pt-br">…
-
1
votes2
answers343
viewsA: Asp.net MVC4 on IIS 6 - Page not found
I just posted a question/answer in this sense, see if it resolves for you! Basically, it’s a problem with Urlrewrite. Add this to your web.config in <system.webServer>:…
-
4
votes2
answers625
viewsQ: Web Api 2 - Routing not working
I created a web service REST using Web Api 2, and in development everything is functional. I am using a small variation of the default route: config.Routes.MapHttpRoute( name: "DefaultApi",…
-
1
votes2
answers625
viewsA: Web Api 2 - Routing not working
The problem is because IIS is failing to understand which URL rewriting engine to use. To solve it, we must add the following line in our web.config, in <system.webServer>: <modules…
-
1
votes1
answer534
viewsA: Pagination of images
Your question became very generic and at the end I understood that it serves any type of PHP paging that works with images. Searching, I found this link that has a snippet implementing what you…
-
11
votes3
answers236
viewsA: Check if a div contains a number
If you have only numbers inside the tag a, can use this: $("a").each(function() { if ($.isNumeric($(this).html())) { $(this).addClass("classeCss"); } }); UPDATE You can use cache to make the search…
-
7
votes4
answers4043
viewsQ: Best practices in using BD connections via Entity Framework
When defining the context class in the Entity Framework (example): public class Context : DbContext { public DbSet<Usuario> Usuarios { get; set; } public DbSet<Categoria> Categorias {…
-
2
votes2
answers521
viewsA: Can I use any programming language in Windows Azure? How?
Azure Web sites, that can run natively ASP.NET, PHP, NodeJS and Python (Thanks @Danimar for the information), and has virtual machines, which you can configure to your needs. There are several VM…
windows-azureanswered Tiago César Oliveira 2,855 -
0
votes2
answers189
viewsA: Data overwrite to cycle for
Use {async: true} in the ajaxSubmit() call, so the system will await termination (200 OK) of each request. $("#formSaveFile" + numID + "_" + DivNrFicha + "").ajaxSubmit({ type: "POST", async: true,…
-
1
votes5
answers727
viewsA: Return all CSS classes with Regular Expression
Follow implementation in pure JS: var texto = "div.classe1{background:red}.classe2 div a{background:#00f}.classe3.classe4{background:green}.classe5{background:#ff0}"; var retorno =…
-
2
votes2
answers996
viewsA: Credit System - Wordpress
I searched a bit to answer, and for me the best option I found is a plugin called User Credits. It meets the requirements you ask for, and some others more. It depends on the configuration you…
-
3
votes3
answers629
viewsA: Log into page using the bank ID in ASP.NET
You can use ASP.NET MVC, that automatically implements this for you. The default route of a MVC project (already created from the beginning) is as follows: routes.MapRoute( name: "Default", url:…
-
4
votes1
answer1060
viewsA: Schedule Tasks with Timer
The second parameter of schedule refers to the first execution, therefore it should be the informed period plus the sum of the second desired, as referenced below:…
javaanswered Tiago César Oliveira 2,855 -
9
votes3
answers1952
viewsA: How to remove a website from Google?
You can use a robots.txt with total denial: User-agent: * Disallow: / Over time, your site will be removed from the Google indexer. More tips here: http://davidwalsh.name/robots-txt…
googleanswered Tiago César Oliveira 2,855 -
3
votes4
answers2032
viewsA: Validation of forms with javascript
Update Based on the discussed so far, follows functional final version: http://jsbin.com/ruhocoru/16 <!doctype html> <html> <head> <meta charset="utf-8">…
javascriptanswered Tiago César Oliveira 2,855 -
2
votes5
answers708
viewsA: At what point in a project should the platform be chosen?
Each language solves a problem, but in 99% of cases the decision will be restricted to more common languages (let’s say between .net and Java). In this case, the decision should take into account…
-
2
votes1
answer159
viewsA: Sum of a Sqldatasource result
TotalADM = TotalADM + Convert.ToDouble( TotalADM + e.Row.Cells[1].Text); With this you are adding Totaladm twice. Do so: TotalADM += Convert.ToDouble(e.Row.Cells[1].Text);…
-
-1
votes2
answers690
viewsA: What is the cause of using SELECT null FROM RDB$DATABASE
This is a way to execute queries that return only one record. I don’t think Firebird has TOP 1 support. Here are some examples: http://www.tecnobyte.com.br/dica9.html?pagina=dica9.html If the…
-
4
votes2
answers262
viewsA: How to use fadein() in addClass()?
Follow Fiddle with what you wish: http://jsfiddle.net/hdg9p/1/ HTML <div>A</div> <div class="hide">B</div> <div class="hide">C</div> <div…
-
3
votes1
answer313
viewsA: Creating an App for Sharepoint using Dev, Angularjs and Restapi
Use dataType: "JSONP" in your ajax call! This will include the header required for cross Domain requests. Please note that you must use a version of jQuery higher than 1.7
-
2
votes2
answers725
viewsA: How to focus on a pop-up every 1 minute?
var p = window.open("about:blank", "_blank", "width=610,height=610"); p.location = "http://www.google.com"; setInterval(function(){ p.focus(); }, 60000); Make the call from var p before anything…
javascriptanswered Tiago César Oliveira 2,855