Posts by Junior Porfirio • 1,230 points
45 posts
-
1
votes3
answers455
viewsA: LINQ with JOIN and Where clause, how to do?
To perform LEFT JOIN using Linq you need to use the Instruction Defaultifempty. The instruction Defaultifempty is used to avoid errors in empty collections replacing by a default value that can be…
-
4
votes1
answer1130
viewsA: Change Label in view in Asp.Net MVC Project
If you want to change the name of your form, Voce can use Dataannotations in its entities. To perform this setup, simply enter in your payment class the note Display, follows an example below:…
-
4
votes2
answers483
viewsA: How to take an object property in a Session?
Using objects in Session requires using a Cast. Follow one of the forms in the example below: @{var user = Session["Usuario"] as Usuario;} <h1>@user.Email</h1> Follow the code working on…
asp.net-mvcanswered Junior Porfirio 1,230 -
1
votes1
answer182
viewsA: Fill a Listview in Xamarin with data
There are several ways to load data and display in a Listview on Android. Let’s say you’re trying to implement, it would be the simplest, follow an example code this way. var Itens =…
-
1
votes3
answers338
viewsA: How to anchor a redirect in APS.NET MVC
This feature is called Ancora, to perform on a redirect in MVC, instead of Redirecttoaction, follows the correct code line: return Redirect(Url.Action("Index", "Home")+"#type");…
-
1
votes2
answers180
viewsA: ASP.net Javascript does not recognize Textarea if it has a runat="server" tag
To solve your problem, put in your javascript event call the following line project.Clientid to dynamically grab the ID name. <script type="text/javascript"> $(document).ready(function () {…
-
1
votes2
answers901
viewsA: How not to allow the user to access the previous login/registration page after logging in or registering
Just add in the login page builder to not store cache, I believe this solves your problem. For . net 4x. [OutputCache(NoStore = true, Duration = 0)] public ActionResult LoginRegister() { if…
-
2
votes3
answers1520
viewsA: Can I use an iPhone to test a Xamarin app?
To perform tests through the "simulator" of the iphone you will need to own a Mac or a Mac rental service such as Macincloud to perform the compilation of your application, using Xamarin Mac Agent…
-
1
votes2
answers801
viewsA: Update Textbox without Postback
The problem may be in the understanding of property Childrenastriggers. If the property is Childrenastriggers="false" it is necessary to inform Triggers. So you have 2 options or place the property…
-
0
votes1
answer70
viewsA: Xamarin Portable
Yes it is possible. Today there are two ways to share code in Xamarin. Portable Projects(to be replaced by . NET Standard) and Shared (SAP). For your scenario, access to Sqlite, iOS and Android Voce…
-
0
votes1
answer234
viewsA: Error while consuming Github API V3 using Httpclient or even Httpwebrequest
To use Httpclient recommend using async and await for the calls, which makes the code efficient for external calls, I performed a test and it worked, follow the code, remembering that it was…
-
1
votes1
answer177
viewsA: How to make a Binding data in a Listview in Xamarin.Android?
To display only the names in Listview coming from the bank, simply insert the following line into your code. lvUsers.Adapter = new…
-
2
votes3
answers12678
viewsA: How to create div with javascript
There are many ways to do this. It follows a possible shape I made quickly. $('<div></div>').attr("class","tudo").insertBefore(".esquerda"); $("div.esquerda").appendTo("div.tudo");…
-
2
votes1
answer249
viewsA: How to use an iOS simulator in a Windows 10 environment for a Xamarin.Forms iOS project
To compile and simulate an iOS application on Windows, unfortunately, you will need an Apple computer connected to the network, as Apple requires that your applications only be compiled on your…
-
3
votes1
answer475
viewsA: Send data from a partial view to a MVC controller
To solve this just take out of your index a Tag Form, this will solve your problem.
-
3
votes2
answers937
viewsA: How to solve JSON.parse problem using Ionic and Angularjs
The problem must be the format of your JSON file is wrong. When validating through the website https://jsonformatter.curiousconcept.com/, the error found is with regards to comma and simple quotes…
-
2
votes2
answers212
viewsA: Permissions management using Active Directory
To easily assign permissions to AD groups, you can include the following settings in Web.Config. This setting below shows which users or groups allow access to the application. Users…
-
0
votes1
answer23
viewsA: View notification does not work with mvvmhelper
If I understand your question, you are referring to a Viewmodel that is not updating in your View view view, correct? To accomplish this your Viewmodel must implement Inotifypropertychanged and in…
-
0
votes2
answers189
viewsA: Xamarin installation on Windows 7
It is possible to install Xamarin on Windows 7 as long as you have your system updated with Service Pack, however, I recommend you have Windows 10 Pro or Enterprise, as most Windows platform…
-
3
votes1
answer82
viewsA: I can’t do include
In this case Voce can follow 2 lines: var aparelhos = from ap in db.Aparelhos.Include("Fotos") select ap; To do so you need the Data.Entity namespace.. using System.Data.Entity; var aparelhos = from…
-
2
votes2
answers202
viewsA: Event conflict with jquery
To perform this type of change follow the following code: The aleracoes I realized was rather to use css, I used the show or ID function of jquery and click out I validated by typeof. Follow the…
-
1
votes1
answer100
viewsA: Xamarin Mac Agent Limited
This limited connection error and no layout visualization in Visual Studio is related to the fact that the environments have different versions of Xamarin. To fix this issue you will need to update…
-
0
votes1
answer34
viewsA: Picturebox.Image error <> My.resources.user_add
You are probably trying to include operators in objects. Try using it as follows: If Not Object.ReferenceEquals(imgAluno.Image, My.Resources.user_add) Then End If
-
3
votes2
answers319
viewsA: Document.getElementById('ID'). func(....) vs ID.func(...)
I believe that the only reason not to use the direct id element is to avoid conflicts, as all global variables, including the ids that are stored in browsers leaving this information "crowded"for…
-
0
votes1
answer127
viewsA: ASP.NET MVC Error when identifying style file
I believe your problem is related to @Url.Content that cannot be null. In the section that picks up the logo has this call, try to remove this snippet to validate if this is the problem. Page…
asp.net-mvcanswered Junior Porfirio 1,230 -
1
votes1
answer233
viewsA: Checbox Selected List View
If I understood your question, there are several ways to do this, one of the ways is to scroll through the listview, checking if it has checkbox enabled, and take its value, follow an example code:…
-
1
votes3
answers7003
viewsA: How to make Local Storage expire?
One way to accomplish this would be to add on the screen a function that validates mouse and key activities with a counter every minute, if it doesn’t make any movement in that 20 minute period it…
-
6
votes1
answer999
viewsA: Access Object Property with a string
If I understand your question correctly, you can use Reflection, follow a practical example to help you: Class public class Cidade { public string Nome { get; set; } } Static Method to Take Property…
-
2
votes1
answer121
viewsA: Ioc with Web Service
If I understand your problem, it must be because Webservice(asmx) does not allow constructors, because its implementation is via proxy (the one that is added as a reference to the Service in the…
-
4
votes2
answers10617
viewsA: How to change image when clicking?
If you want to learn more about the Jquery framework. Here is the running implementation of your fiddle. HTML: <p> <img alt=""…
-
1
votes2
answers2474
viewsA: How to use Chart.Js with ASP.NET MVC
I would advise you to implement your method as Jsonresult and take the data from Json and process it in your Chart.js in the view, according to this dotnetfiddle example.…
-
1
votes1
answer71
viewsA: What implementation would I use to initialize the data in the database using 1:N relationship?
If I understood your models correctly, it would be something so simple: var categorias= new List<Categoria>{ new Categoria{ CategoriaNome = "Medicamentos" }, new Categoria{ CategoriaNome =…
-
3
votes4
answers398
viewsA: Use of self-reference
The use of this is used in 3 situations: The most common is used in properties to distinguish method variables from class attributes, ex: public class Pessoa{ private String nome; public void…
javaanswered Junior Porfirio 1,230 -
1
votes1
answer50
viewsA: Print the absolute url in an Aspnetcore view
You have to separate the host and the path in your View, follow the code. @[email protected]
asp.net-coreanswered Junior Porfirio 1,230 -
2
votes2
answers638
viewsA: Insert checkbox dynamically by returning Json does not display Text?
Follow a code that I generated that can help you, dynamically generating Checkbox in MVC using Jquery, I hope it helps. $(function(){ $('#Categoria').change(function(){ $.ajax({ url:…
-
0
votes1
answer147
viewsA: Change color of Divs of the same class according to the text it contains in them (Jquery)
You can use the :contains tag itself, as an example I did. $(document).ready(function(){ $("div.divLista:contains('FREE')").css("background","red");…
jqueryanswered Junior Porfirio 1,230 -
0
votes3
answers115
viewsA: Page rendering Asp.net Disabledcssclass
You can use the Button Cssclass property and change it so that the bootstrap css is not rewritten. btnSalvar.Enabled = false; btnSalvar.CssClass = "btn btn-outline-secondary"; btnCancelar.Enabled =…
-
0
votes3
answers458
viewsA: Search between Jquery columns
You can use in Jquery the option :contains, which is possible to search the contents of your tags td: $(function(){ $("td:contains('(001)')").css("color","red"); }); Link fiddle :…
-
3
votes2
answers414
viewsA: How to reference an html button in C#
Try to do it this way : var button = myWebBrowser.Document.GetElementsByTagName("input") .Cast<HtmlElement>() .FirstOrDefault(m => m.GetAttribute("type") == "submit");…
-
1
votes5
answers1664
viewsA: I want to put the number of characters and put whether it even or odd
I believe this would be it: namespace Impar_ou_parr { class Program { static void Main(string[] args) { string Palavra; Console.WriteLine("Digite uma Palavra: "); Palavra = Console.ReadLine(); int…
-
1
votes1
answer792
viewsA: Set Image to Button inside Listview Xamarin Forms
To solve this scenario, you can implement an Ivalueconverter, which will be responsible for validating and displaying your image according to the desired rule, and displaying the images according to…
-
3
votes4
answers1566
viewsA: ASP.NET MVC input number
I took a look at your code, to fix change your methods_pt.js file to the following code. $.validator.methods.range = function (value, element, param) { var globalizedValue = value.replace(".", "");…
-
1
votes3
answers534
viewsA: How to access view components that are inside a Listview Xamarin Forms
To access on Xamarin.Forms the components created in the XAML file, you must set the property x:Name, as the example below: <ListView x:Name="DemoListView" /> To change its properties in code…
-
0
votes1
answer43
viewsA: Errors released on Android are not easily captured in Xamarinforms
Good afternoon Joaquim, Try updating Xamarin in your Visual Studio, as in version 4.3.1 if I’m not mistaken, they fixed an SIGSEGV-related error. Follow this material that can help you implement.…
-
2
votes1
answer693
viewsA: Xamarin has some limitation for creating APP for Android
Your question is very important for understanding Xamarin. Many believe that the Xamarin platform is not native, that they are mistaken, because Xamarin is native, being possible to accomplish…