Posts by Ivan Teles • 717 points
36 posts
-
0
votes0
answers34
viewsQ: Push Notification iOS is not enough. Xamarin
I’m in the following situation, created inside the Apple App a Push Notifications service (Apns), and added it in firebase (Apns authentication key). Everything straight (at least I think it’s just…
-
0
votes1
answer252
viewsA: Validate Datepicker containing date only
Add to that, it should solve: [DataType(DataType.Time, UIHint("Time")] public DateTime Data { get; set; }
-
-1
votes2
answers46
viewsA: How do I complete information that is in a complex JSON type?
Do as Maycon said, your object has to have the same name with the same property with the identical names that will work.
-
1
votes1
answer55
viewsA: Function to include and exclude items according to table
Well, here’s what I’d do. Compare the two lists to know what to remove and what to add. see example: void Main() { var listaAtual = new List<int>{ 1, 2, 3, 4, 5, 6}; var novaLista = new…
asp.net-mvcanswered Ivan Teles 717 -
0
votes1
answer767
viewsQ: Bootstrap-3-Typeahead, list options based on search displaying another field
Using Bootstrap-3-Typeahead plugin performing the search based on what the user type and displayed the information from another column of the database. My server-side method performs the filter…
-
0
votes1
answer103
viewsQ: Bootstrap-3-Typeahead does not list options
am using Bootstrap-3-Typeahead plugin that should work simply. My server-side method is right, bringing the selection options but not a list. From what I read in git, it doesn’t even need extra css,…
-
0
votes2
answers128
viewsA: How to optimize the performance of my application when doing Httpclient resquisitions
Another option I recommend is at the start of the application you download the pro app images and solves your problem..
-
1
votes1
answer357
viewsA: Consuming a WEB API in Visual Studio
Luiz, despite being an API and online, the server blocks requests from outside for security reasons. For it to work in your global.asa file, try so. private void EnableCrossDmainAjaxCall() {…
-
0
votes1
answer75
viewsA: Access to client directory
Look, as far as I know without uploading is impossible because this is a security breach in case it could occur... What you can do is create a client for your user to install and this automatically…
-
0
votes1
answer426
viewsA: How to create a controller with data from another table in ASP.NET?
Look recommend you create your actions by receiving objects or instead of using formcollection. Da a lida em:…
-
-2
votes1
answer210
viewsA: Reload iframe inside a modal
Solved with the idea of @Leo Craccilolo using what is described here -> Manipulate an iframe through another iframe…
-
0
votes1
answer210
viewsQ: Reload iframe inside a modal
Look at my scenario. On the parent page I have 3 Ivs. modalFilha2, modalFilha2, modalFilha3 on which I will call according to the page I am. When I am in the father the links call the file1 and add…
-
1
votes0
answers154
viewsQ: Export using datatable with limitations
I’m using datatable in a project and it’s working 100%. What I need is that at the time of exporting to PDF and excel I do not want to export the columns in which I do not allow Sort and search,…
asked Ivan Teles 717 -
0
votes1
answer157
viewsQ: Filter list jquery datatble in enter event
How instant: myTable = $('#dynamicTableDesc').DataTable(); When trying to call the function: myTable.fnFilter(this.value); of error myTable.fnFilter is not a function and by calling:…
asked Ivan Teles 717 -
3
votes2
answers3695
viewsA: Using string interpolation C# 6
follow the expected return, a friend replied by email. using System; using System.Collections.Generic; public class Program { public static void Main() { var listaImoveis = new…
-
7
votes2
answers3695
viewsQ: Using string interpolation C# 6
With C# 6 and interpolation usage is better than concatenating string with data. As in the example. Instead of: var d = "19"; string.Format("{0} anos", d); looks much better $"{d} anos"; But using…
-
0
votes1
answer1027
viewsA: How do I put a controller next to each other with bootstrap
You can column the data as you did, see the example: https://jsfiddle.net/ivanteles/fhoznrzt/
-
2
votes3
answers2702
viewsQ: Dynamically populated option select list selected with Angularjs
I need to bring one select option with the selected option being filled dynamically. I have in my controller the filling of the list so: $scope.$watch('IdCategoria', function() {…
-
3
votes1
answer2279
viewsA: Load Datatable with Jquery and MVC 5
Adriano, I used your codes as an example and it worked, I don’t know how is your project structure. if you used the default VS template, then you are probably referencing the jquery file twice.…
asp.net-mvc-5answered Ivan Teles 717 -
1
votes1
answer147
viewsA: How to use or add aspx pages in an Asp.Net MVC project
It gives yes, the MVC project accept and runs the aspx pages quietly, just click the opposite button and add.…
-
0
votes1
answer87
viewsA: Problem with Asp.net MVC routes
A MVC application when placed inside another application does not even work, so it works to convert the internal application folder into an application.…
asp.net-mvcanswered Ivan Teles 717 -
2
votes2
answers412
viewsA: Error Saving EF Changes
Probably the error is occurring because some property should not be filled. Uses Try catch to debug and find error: try { db.SaveChanges(); } catch (DbEntityValidationException dbEx) { foreach (var…
-
1
votes1
answer233
viewsA: Doubts about the datagridview
From what I understand, you want to list the names of the related tables instead of your FK Id and for that you will have to use sql Inner Join to get the desired result. Da a lida em:…
-
1
votes2
answers313
viewsA: How to create an input grid in Asp.net C# - MVC5
Well, a simple way to do this, in your view you put various inputs with the same name. <input name="email" value="[email protected]" /> <input name="email" value="[email protected]" />…
-
0
votes2
answers303
viewsA: How to resolve ASP.NET MVC URL ID?
Dude, the best solution to your problem is to encrypt the pass value and decrypt when receiving on the other page. http://www.linhadecodigo.com.br/artigo/3078/criptografando-dados-com-csharp.aspx…
-
2
votes1
answer112
viewsA: Doubt about Asp.net mvc 5
No rolling, ASP.NET MVC 5 requires . NET 4.5. Version 4.0 only supports MVC 4.
-
1
votes2
answers1417
viewsA: Jquery and PHP POST method
Try this: $(document).ready(function() { $('#ativar').click(function(e) { e.preventDefault(); var valor = $(this).attr('value'); $.ajax ({ type: "POST", url: "alterar.php", data: {key: valor},…
-
2
votes1
answer3144
viewsA: Two charts on the same page with Chart.js
Try this: var pieData1 = [ { value: 300, color:"#F7464A", highlight: "#FF5A5E", label: "Red"}, { value: 50, color: "#46BFBD", highlight: "#5AD3D1", label: "Green"}, { value: 100, color: "#FDB45C",…
-
1
votes2
answers4212
viewsA: Prevent the action of reloading the page by clicking on the OK of ALERT JS
Your button is posting the form due to which it is being reloaded to the page. Tell you what, switch to: $('form').submit(function(){ var nome = $("#txtNome").val(); var CRM = $("#txtCRM").val();…
-
2
votes1
answer1103
viewsA: Remote connection, C# with SQL Server (2008)
Filipe, the process is very simple, I have this environment here. What you should do, in your friend’s PC, you have to release the connection port, I recommend using another without being the…
-
1
votes2
answers1421
viewsA: How do I convert a SQL Server backup file into . BAK for . CSV?
Dude, this type of conversion does not scroll, because sql bak file are actually native SQL statements like table creation, Inserts, etc..
sqlanswered Ivan Teles 717 -
0
votes1
answer77
viewsA: 301 redirect to dynamic domain
You could do it like this: <script runat=”server”> private void Page_Load(object sender, System.EventArgs e) { Response.Status = “301 Moved Permanently”;…
-
1
votes1
answer6798
viewsA: View database in Sqlite
Dude, you can download the file to your PC and view through an application like this: http://sqlitebrowser.org/ or try to view on android using this…
-
1
votes2
answers329
viewsA: BD ACCESS does not accept INSERT or UPDATE
Test something like that: OleDbConnection conn = new OleDbConnection(); conn.ConnectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;DataSource=|DataDirectory|/teste.accdb"; conn.Open(); string Name…
-
1
votes1
answer1626
viewsA: C# decimal field in the form
Good, first recommend using decimal instead of double in: public decimal ValorKM { get; set; } And remove this one dataType currency, thus facilitates and greatly your work. Second, in the view,…
-
5
votes1
answer752
viewsQ: Error with Asp.NET Web.API + Angularjs
I have my method C# thus [ResponseType(typeof(Categoria))] public async Task<IHttpActionResult> Post(Categoria model) { if (!ModelState.IsValid) { return BadRequest(ModelState); } if…