Posts by Leonardo • 2,528 points
69 posts
- 
		6 votes1 answer172 viewsQ: Text around image/round divI’m in doubt on how to get the text around the round/div image. Follow the example: Maybe we could start like this: html <div id="texto-esquerdo"> <p> Lorem Ipsum é simplesmente uma… 
- 
		-1 votes2 answers181 viewsA: Problem with async taskThe problem was not in the code but in the proxy, which was blocking external access. 
- 
		1 votes2 answers181 viewsQ: Problem with async taskI’m banging my head to solve but I can’t, the mistake is An asynchronous module or handler completed while an asynchronous operation was still pending. source error: An unhandled exception was… 
- 
		1 votes1 answer549 viewsA: Disable IIS cacheI changed my Controller to carry out the consultation of the Course in the database, and not receive from elsewhere, thus staying: public ActionResult Index(string parametro) { var curso =… 
- 
		4 votes1 answer549 viewsQ: Disable IIS cacheI’m having problems with IIS cache (I think the problem is he), whenever I make any changes in the database, changes do not happen on the website, keeps the old data. Changes only appear when I turn… 
- 
		3 votes2 answers3501 views
- 
		1 votes2 answers945 viewsQ: Why can’t I update the framework?I’m trying to install a WebService on the client, which is Windows 7, but I’m not able to update the framework. I downloaded the framework 4.0 and 4.5 and it still doesn’t appear for me to activate.… 
- 
		0 votes1 answer1996 viewsQ: Error while trying to consume Webservice: Server did not recognize the header valueI am facing the following error when trying to read a Webservice: SoapFault - faultcode: 'soap:Client' faultstring: 'O servidor não reconheceu o valor do cabeçalho HTTP SOAPAction:… 
- 
		1 votes3 answers2379 viewsA: How to see how much memory occupies such a variable in C++? And how to use the define?You can find out how many bytes a certain variable occupies through the function sizeof(). This function takes a variable as argument, or the reserved words that represent the variables: char, int,… 
- 
		1 votes1 answer187 viewsA: How to add a Label inside a Textblock by code BehindI got it using the property Inlines of Textblock: First I created the Labels dynamically: var lblNumeroPergunta = new Label { Content = contNumeroPerguntas.ToString(), FontWeight = FontWeights.Bold… 
- 
		2 votes1 answer187 viewsQ: How to add a Label inside a Textblock by code BehindHow do I add these Labels within the TextBlock, for code behind? <TextBlock> <Label x:Name="NumeroPergunta" FontWeight="Bold" /> <Label x:Name="Pergunta" /> </TextBlock> What… 
- 
		3 votes1 answer426 viewsQ: How to improve the performance of a foreachI’m consuming a webservice, that has at least 5557 records. The problem is after consuming. I have to add in my database the records, and for that, I have to do a foreach, what ends up disturbing a… 
- 
		3 votes2 answers745 viewsQ: How to concatenate Strings into a Linq queryHow do I concatenate the column Sistemas, leaving Sistema, Sistemas 2? I have this appointment Linq: var fiscalizacoesBaixadas = (from tb_fiscalizacoes_campo in _context.TB_FISCALIZACOES_CAMPO join… 
- 
		23 votes2 answers1963 viewsQ: What is the purpose of the free() function?In which cases should it be used? There is an alternative? It is recommended to use? 
- 
		2 votes1 answer577 viewsA: Disable Masterpage Menu from contentPageOne possible solution, is you leave the <li> that will not be displayed within a Panel. <ul> <li class="liultimo"><a href="index.aspx" >ADM SYS</a></li>… 
- 
		1 votes1 answer64 viewsQ: Problem to the popular DatagridI’m making the population of a Datagrid, but I don’t know why you’re not showing. Result: Only empty lines are returned. Fiscalizacao.Cs public class Fiscalizacoes { private String Concessionaria {… 
- 
		3 votes2 answers79 viewsQ: Add CSS to the Grid RecordI’m trying to add a bold in a record on the grid, but it appears as "<b>Nome</b>" and not "Name" as it should. I’m doing it for code behind, through a LINQ Follow my method… 
- 
		2 votes1 answer1383 viewsQ: How to display a Double Chained Circular ListHow do I display the values entered in a Double Chained Circular List? Follow my code with my attempt: #include "stdafx.h" #include <stdio.h> #include <iostream> #include… 
- 
		5 votes1 answer1494 viewsQ: Structure of a database for 'Secret Friend'I’m creating a secret friend system for the family, where it will be possible to have: Registration of users with their data (ex: Tennis size, shirt, etc...) ; Groups of registered users; Generate a… 
- 
		0 votes1 answer301 viewsQ: Change the background color of Actionbar with TabactivityI’m having trouble changing the background. When I wear it like that, with the extends of TabActivity: public class HomeTabActivity extends TabActivity {... private android.support.v7.app.ActionBar… 
- 
		4 votes1 answer169 viewsQ: Different layout on another deviceMy layout looks different on small devices, already tried to add a ScrollView to solve this problem and I got no results. Follows the prints application running on different devices: Resolution 720… 
- 
		1 votes2 answers113 viewsQ: Error adding COUNT in CONCATWhen I try to add the COUNT it returns error, but when I shoot, the script works normal. Follow the error: Invalid use of group function Script: SELECT DISTINCT TB_PRODUTOS.ID_PRODUTO, CONVERT(… 
- 
		4 votes5 answers57768 viewsQ: Count equal records with SELECT DISTINCT and COUNTHow do I count the equal results and add the amount in front? For example: Currently the records of my table are like this: Id | Nome ------------ 0 | Teste 1 | Teste 2 | Teste I want to give a… 
- 
		0 votes2 answers769 viewsQ: Error "Unknown column" in Mysql queryCode: (SELECT TB_INGREDIENTES.ID_INGREDIENTE, TB_INGREDIENTES.INGREDIENTE, TB_INGREDIENTES.QUANTIDADE_INGREDIENTE_TOTAL, TB_INGREDIENTES.FLAG, TB_INGREDIENTES.ACRESCIMO,… 
- 
		1 votes1 answer199 viewsQ: Dynamically change the margin of a CheckboxThis attribute can be changed dynamically in java code? android:layout_marginTop I have a CheckBox dynamically generated, and I need him to have a margin. Java code: CheckBox cb = new… 
- 
		3 votes2 answers5853 views
- 
		4 votes0 answers682 viewsQ: Payment by Credit CardIt has how to make a payment system via credit card, but without using PayPal, PagSeguro, PagamentoDigital or Others? The Card Companies offer some kind of Code, API, or SDK?… 
- 
		4 votes1 answer4823 viewsQ: How do I export an . apk android in Android Studio?Every time I export the google app from that message: Even though I changed Androidmanifest.xml: android:versionCode="2" android:versionName="1.0.2" Procedure I’m doing: I’m exporting right?… 
- 
		0 votes1 answer1201 viewsQ: Dynamic notifications, through parameters, on AndroidI want to create a dynamic notification on Android, where I can change the title and the text that is displayed, through parameters. I’m actually doing it this way: Home class. @Override protected… 
- 
		2 votes2 answers348 views
- 
		2 votes2 answers348 views
- 
		5 votes1 answer98 viewsQ: Pass "visibility" as parameterHow do I pass as parameter a visibility and then set it? Ex: private void _setVisibility(View.VISIBLE a){ _viewLineStatus.setVisibility(a); } 
- 
		0 votes1 answer1521 viewsQ: How to take the margins of the Android layoutI want to remove those marginsazul for my line verde catch the layout and not be left with any margin, but without removing the padding of RelativeLayout It is the Actionbar vermelho who is with a… 
- 
		10 votes3 answers4991 viewsA: Back to Top of pageThe Button First let’s create the aspx button <asp:HyperLink NavigateUrl="#" runat="server" cssClass="scrollToTop">Topo</asp:HyperLink> Or in html: <a href="#"… 
- 
		10 votes2 answers439 viewsA: How to select data from different tablesI believe that’s what you want: tables: TB_USUARIO | TB_ENDERECO | TB_CEP | TB_CIDADE ------------|-----------------------|---------------|----------- ID_USUARIO | ID_ENDERECO | ID_CEP | ID_CIDADE… 
- 
		1 votes3 answers1803 viewsA: How to take the result of select and mount HTML?I believe that’s what you want: In this example I am using Mysql script js. <script type="text/javascript"> $(document).ready(function(){ data = $(this).serialize() + "&" + $.param(data);… 
- 
		2 votes2 answers994 viewsQ: Error 403 when trying to "synchronize project with Gradle"When I open Android Studio, it fails to synchronize the project with this "Gradle", it returns the following error in "Messages Gradle Sync" Error: Could not GET… 
- 
		0 votes2 answers780 viewsA: Error while consuming ASMX Web ServiceI found the error from that link: http://blogs.msdn.com/b/robert_mcmurray/archive/2013/08/20/connecting-the-windows-phone-8-emulator-to-web-api-applications-on-a-local-computer.aspx I disabled the… 
- 
		1 votes1 answer2405 viewsQ: Login failure for user "NT IUSR AUTHORITY"I have a Webservice application running on IIS, but how much I try to consume from this error: System.Exception: Login failed for user 'IUSR NT AUTHORITY' I tried to add this user in the database,… 
- 
		0 votes3 answers558 views
- 
		0 votes2 answers780 viewsQ: Error while consuming ASMX Web ServiceThat is the mistake: An exception of type 'System.ServiceModel.CommunicationException' occurred in System.ServiceModel.ni.dll but was not handled in user code Additional information: The remote… 
- 
		0 votes1 answer2218 viewsQ: Open Modal Popup from another aspx pageHow do I open a Modal Popup extender from another page? I am using a User Control to create this popup: Usercontrol ucModalInativar.ascx: <%@ Control Language="C#" AutoEventWireup="true"… 
- 
		3 votes1 answer1517 viewsQ: Select only one Radiobutton with RazorI have 2 Radio Buttons, and I would like when I mark one, the other to cancel. Follow the image of what is occurring: Code: @Html.RadioButton("teste", "teste", true) Teste… 
- 
		4 votes1 answer185 viewsQ: Why doesn’t the "Landscape" position resize the Longlistselector?Why when I put the phone in the Landscape position, the LongListSelectordoes not resize? Follow the image: Follows my XAML <Grid x:Name="ContentPanel" Grid.Row="1" HorizontalAlignment="Center"… 
- 
		4 votes1 answer551 viewsQ: How to smooth the transition between pages on windows phone?How I improve the transition page from page on Windows Phone? Because every time I change pages, it changes like "out of nowhere", it doesn’t appear smooth, like a normal transition. Has effects… 
- 
		3 votes1 answer107 viewsQ: Align Popup to CenterWhy can’t I line up at the center, that my popup? Look how he looks in XAML Design Follows my XAML: <Popup x:Name="popup" HorizontalAlignment="Center" VerticalAlignment="Center">… 
- 
		6 votes3 answers285 viewsQ: "Gambiarra" in C# with XML, I would like suggestions for improvementI have this code without the "gambiarra", which returns the list with the repeated values: var s = (from p in xmlDoc.Descendants("pais") let Nomepais = p.Element("nome-pais").Value let nomeconsulado… 
- 
		4 votes1 answer90 viewsQ: XML duplicating the reading of the resultsI have a XML: <paises> <pais> <nome-pais>África do Sul</nome-pais> <consulados> <consulado> <nome-consulado>Consulado da República da África do… 
- 
		4 votes1 answer178 viewsQ: How do I make an event when I click an Item?I wanted to know if there is a way, when clicking on an item, to perform an event/function, knowing that each item has its function. I’m using Longlistselector Código XAML <phone:LongListSelector… 
- 
		2 votes1 answer295 viewsQ: Error while reading XMLWhen I try to read the xml, return it to me: {System.Linq.Enumerable.WhereSelectEnumerableIterator<System.Xml.Linq.XElement,SSP.Class.ListaConsulado>} XML: <?xml version="1.0"…