Posts by Renan • 159 points
10 posts
-
0
votes0
answers66
viewsQ: How to create page by arrow?
I’m trying to page by arrow, using ajax, but I’m not getting it... Normal page I got (which is showing the numbers) but with arrow, I’m not getting. jQuery: var paginacao = { iniciar:…
-
2
votes1
answer197
viewsQ: How to separate sequence of numbers in an array
For example, the user places in a textarea "1234 5678 1011 1213" I made a system that puts point and comma in each space, now I need to know how to store a digit sequence in an array, so I can make…
-
0
votes1
answer200
viewsQ: Undefined object reference for an object instance. '
Hello, In my code there is this error System.Nullreferenceexception: 'Undefined object reference for an instance of an object.', _oleCmd was null. How do I fix it? (I’m a C beginner#) using System;…
-
0
votes3
answers283
viewsQ: How to break line after 29 digits C#?
How do I make every 29 digits the line break? var hs = hs_codes.Text; var texto = new StringBuilder(hs.Length); var digito = true; foreach(var chr in hs) { if (char.IsDigit(chr)) { if (!digito)…
-
3
votes1
answer464
viewsQ: How to Replace Bar and Space by Dot and Comma in C#
I want to create a system that removes all bars and spaces per point and comma, for example 4587 / 5458 = 4587;5458 4587 5458 = 4587;5458 How can I create this system with C#? My code so far is like…
-
0
votes1
answer518
viewsQ: How to Replace Characters with Other with C#
For example: 4587 / 1235 / 7554 And then replaced 4587;1235;7554 Remove the spaces and in place of the bar, put point and comma, as it does in C#?
-
1
votes2
answers672
viewsQ: How to open the notepad with contents inside without saving?
I would like to know how to open the notepad using C#, with content generated through a string, but I don’t want you to be safe anywhere.
-
1
votes2
answers398
viewsQ: How to center a div with auto width?
I have a div inside the footer, but it is expandable in width, how do I center? I’ve used margin: 0 auto; but it wasn’t. <footer class="rodape"> <div class="centralizar"></div>…
-
2
votes4
answers12776
viewsA: PHP Check mobile device
<?php $iphone = strpos($_SERVER['HTTP_USER_AGENT'],"iPhone"); $ipad = strpos($_SERVER['HTTP_USER_AGENT'],"iPad"); $android = strpos($_SERVER['HTTP_USER_AGENT'],"Android"); $palmpre =…
-
1
votes1
answer2006
viewsQ: How to take data from an array and use Rand without repeating?
I’m doing a quiz, and I saved the answers in an array, I want these answers to appear randomly that doesn’t repeat in the quiz. I used the following code. <?php $times = array('', 'Corinthians',…