Posts by Luiz Negrini • 1,424 points
67 posts
-
-1
votes1
answer55
viewsQ: Is it possible to post on facebook through my system?
Hello, the doubt is simple, I want to make an integration of my system with facebook. I would like to know the steps necessary for me to be able to post on my system and automatically it generates a…
-
0
votes0
answers89
viewsQ: Asynchronous Action Error (Async)
This action should send an Asynchronous email, all very simple so far, including using the same class in other projects with the same version of MVC. But to my surprise, this project does not run.…
-
3
votes1
answer198
viewsQ: Authorizeattribute in Controlller and Actions
When using an attribute (Authorizeattribute) developed by me (with use of Enums) it is not working as it should as follows: When used to memorize the Controller statement:…
-
1
votes1
answer271
viewsA: Entity framework Many-to-Many Ientitychangetracker error. How to resolve?
I changed my service to the following: public bool GravarNoticia(Noticia noticia, List<string> tags) { Noticia novaNoticia = null; using (_noticiaRepository) { try { novaNoticia = new Noticia…
-
2
votes1
answer271
viewsQ: Entity framework Many-to-Many Ientitychangetracker error. How to resolve?
I have a Many-to-Many relationship and my tables are correct about the relationship in the database. The problem is that my insertion works perfectly when you don’t use an existing entity in the…
-
1
votes0
answers136
viewsQ: Windows Phone: Sale with credit card
I need to carry out the sale with credit card through my application. I would not like the customer to enter his data on the phone, the sale would be made in person. It does not serve the sale for a…
-
2
votes1
answer3982
viewsQ: How to send complex object to Web API?
I need to pass a parameter to my Controller in the Web API which is a complex object, this object has some normal properties (the most complex is a Datetime). I’m doing it this way, but I can’t…
-
1
votes1
answer59
viewsQ: WCF for consumption in Silverlight application (Windows Phone 8.0)
I’m having trouble adding to Servicereference, it adds normally but when it will generate the class "Client" it finds the following error: No endpoints compatible with Silverlight 3 Were found. The…
-
3
votes1
answer145
viewsQ: Ignored await in asynchronous method c#
I need to use the return of an asynchronous method for validation but even with the use of "await" the method is still running before I receive the return of the function. var teste = await new…
-
2
votes2
answers829
viewsQ: Asp.Net MVC Validators passing through the controller
When we create a project in Asp.Net it by default inserts some validators to be used with Razor, @Html.ValidationMessageFor(model => model.property). I saw in different projects that these…
-
1
votes1
answer571
viewsQ: Asp.NET MVC checkbox list bind with string value
I have a checkbox list and need to bind values that are strings (@item.Selectedvalue) with my Ienumerable>. <div class="editor-field perfil-filtro-expander-todasAcoes"> <div class="metro…
-
0
votes2
answers834
viewsQ: jQuery fetch all checked checkboxes from a div through a click on button
I need to get all the checkboxes CHECKED of a <div> in which it has another <div> daughter that this, possess a <input type="checkbox"> via jQuery. Follows the structure: <div…
-
2
votes1
answer466
viewsQ: Asp.Net MVC does not run Jquery after calling Action through "url:"
I need to call an Action using Ajax and until then everything right, I make the request as follows: confirm: function () { $.ajax({ url: urlToDelete + id, success: function () { //window.location =…
-
2
votes1
answer3154
viewsQ: HTML list with image in UL
I need something like this: <input type="image" src="~/Images/meu-icone.png" style="max-height: 15px;" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true"…
-
5
votes3
answers605
viewsQ: Metro style checkbox
I need to change my checkbox to be identical to the following image: should look like this when it is marked, when it is not marked, remove the whole edge and figure at the end. I did not enter code…
-
3
votes2
answers1199
viewsQ: HTML with bootstrap responsive layout
I can not leave my layout as it should, the idea is to leave as follows: +-------------------------------------------------+ | logo | Menu Superior | | |------------------------------------+…
-
0
votes1
answer384
viewsQ: How to reset form status with model data?
I have a model in which fills the fields of a form (use Asp.net mvc and the view is typed), that is, I load the fields of this form according to the data of the database for the user to change in…
-
1
votes2
answers1307
viewsQ: Use Angularjs to pass parameter to Jquery
I need to change my web system’s Alerts template. For this I am using a Jquery plugin, however, I need to pass a parameter to my Jquery function that this, would be my model that is already used in…
-
0
votes1
answer107
viewsA: Angularjs with Guid in Asp.NET MVC
Declaration by the div <div class="table-responsive" ng-model="setorId" ng-controller="SetorController"> Call the controller setting the variable with the id of the current item. <tr…
-
0
votes1
answer107
viewsQ: Angularjs with Guid in Asp.NET MVC
I am using Angularjs for the first time and I would like to know why this is not possible, I notice that during the debug, there are several errors of Parse inside the angular min.js, I believe it…
-
1
votes1
answer502
viewsA: Ninject does not load dependencies. Asp.NET MVC C#
I solved the problem by loading all "Ninjectmodule" of my application hierarchy. I thought it was enough to just load the main module, so I created another static method within "Ninjectwebcommon"…
-
3
votes1
answer502
viewsQ: Ninject does not load dependencies. Asp.NET MVC C#
I’m using Ninjectwebcommom to work with Inject. I installed the package via Nuget and automatically it creates a class named "Ninjectwebcommon" in the App_start folder, as the documentation itself…
-
3
votes1
answer49
viewsQ: Name editing is confirmed in the database but does not happen in the listing
I am editing a column of the database and so far everything goes very well, but when I load the table that contains this column using Include, simply does not update the "Chauffeur", exchange the ID…
-
1
votes1
answer546
viewsQ: Problem loading data with Entity Framework using Include
I’m using the Entity Framework with the Mysql on my system and I need to make a specific query that includes a list of a type of Model (ApplicationUser), in this list each returned object has in its…
-
0
votes2
answers336
viewsA: Android: Problem searching last id inserted with Sqlitedatabase (ORM Lite)
As it says in logcat, the problem is that the configuration table was not created, I just uninstalled the app and installed it again to access the onCreate() of Databasehelper and thus create my new…
-
1
votes2
answers336
viewsQ: Android: Problem searching last id inserted with Sqlitedatabase (ORM Lite)
I am having a problem executing a query (with Ormlite) that adds the return to 'ultimaConfiguration' in which you should get the last 'id' inserted in the Configuration table. the method that…
-
0
votes1
answer569
viewsQ: Android: Error Running Application
I noticed that using the shortcut Alt+Insert and selecting for him to give me the constructors, he tries to create a constructor with each property private (cManager and mTextView). I remember that…
-
0
votes0
answers240
viewsQ: Android bug when running emulator project
I’m trying to run a project in Android Studio and this giving an error that I do not know how to solve. Gradle Console: > Executing tasks: [:app:generateDebugSources, >…
-
0
votes0
answers111
viewsQ: Xml components are not loaded into Activity
Editing: I just found out that if I comment on the lines that cause the error, it gets all black screen... IE, does not load the layout. I’m trying to get a Progressbar and a Textview so I can make…
-
1
votes0
answers81
viewsQ: Search controls in a separate class from the main activity
I need to search the controls to change values in the layout. But passing the context by parameter to the class it does not find the controls declared in xml returning null for each cast made. The…
-
3
votes1
answer1336
viewsQ: How to deserialize JSON using Gson with generic list?
I need to deserialize JSON for a generic list, but I’m having an error that I believe is in the conversion: Method call: AtualizarJSON at = (AtualizarJSON) DeserializaConsulta(AtualizarJSON.class,…
-
0
votes0
answers184
viewsQ: String.format() with error
I need to format the following string with the respective parameter, but this generating the following error: Caused by: java.util.Illegalformatconversionexception: %d can’t format java.lang.String…
-
0
votes1
answer42
viewsQ: How to implement generic data in this case?
I am using Ormlite in my application and want to implement a generic type in the following: public interface AdminDao extends Dao<T, Integer> { ... } where "T" would be the generic. Error:…
-
1
votes2
answers192
viewsQ: Android custom listview working but having problems
Hello, I am making a Binding and I have only one of the properties of my Model that are appearing in my listview. Follow the code: Adapter: public class ProjectAdapter extends…
-
1
votes1
answer254
viewsQ: Toast validation and seat insertion
I’m taking a risk on Android, I’m very beginner and I’m having problems with my first entry in the database. I also need to validate the fields of my form before sending. If possible, a touch of…
-
4
votes1
answer611
viewsQ: Dataannotation validating property with Javascript plugin. ASP.NET MVC
I need to validate a field of my model that has a text editor in Javascript. So far so good, because the problem only occurs in the registration that I do not receive in the parameter of the Action…
-
2
votes1
answer338
viewsQ: Create Web Service by repurposing code from an already published site. Good practices in Asp.NET MVC
I need to create a web service in JSON reusing as much code as my site has, but I don’t know how to do it, if I should add a Solution to my site project etc. I can’t abstract the idea, I need to…
-
2
votes2
answers7771
viewsQ: Pass parameter (a list object) from View (List type) to Controller. Asp.NET MVC
I own a view like "List<SimpleUser>" and I want to pass by parameter to my controller the object that is in my foreach, but this arriving null being done as follows: View: @{ ViewBag.Title =…
-
-2
votes1
answer888
viewsA: Viewbag losing reference after sending form. Asp.Net MVC
The problem was solved by removing the 2 Forms from inside another form that does not appear in the question, that is, we could not have 1 parent form with 2 others inside, at least in this case.…
-
-1
votes1
answer888
viewsQ: Viewbag losing reference after sending form. Asp.Net MVC
Hello, I have two Viewbags that are storing a list each, I click them in a form to make a select box, along with them has a Remove button. So far so good, but when I click on the button of the first…
-
3
votes2
answers1328
viewsQ: How to make a user helper logged in to Asp.NET MVC 4?
I need to implement a Helper for logged in user, ie a static class that returns information about the logged in user from context. The idea is to use the information both in Controllers how much in…
-
4
votes1
answer2820
viewsQ: Render pages within _Layout.cshtml of other types. Asp.Net MVC 4
I’m basically developing a kind of social network, but I’m having some problems rendering pages inside my _Layout.cshtml page. Html <ul class="dropdown-menu"> <li class="header">Você tem…
-
0
votes1
answer1135
viewsQ: How to pass parameters to the _Layout.cshtml view in Asp.Net projects
Hello, seeing as I have one Area control panel my layout basically changes only the center with the views, but I want to put functionalities in the part where the _Layout.cshtml, and for such…
-
4
votes1
answer3291
viewsQ: How to pass parameter from one Controller to another in Asp.Net
Hello, I have an object that I need to pass by parameter to another Controller through the RedirectToAction, used the TempData but after any page change it loses the reference, know of any solution…
-
0
votes1
answer563
viewsQ: How to pick up Radiobuttonfor value through Formcollection and save to SQL Server BD
I have a model with several booleans, I need to take their values through a Formcollection and save in the SQL database (does not accept Boolean, so the field is as bit). My View: <div…
-
2
votes1
answer1220
viewsA: Send "@Html.Beginform" to another area controller. Asp.Net
I solved the problem by setting the controller name inside the Area Loginprofessional, as it was the same name as what it had outside (the two were HOME) was happening confusion in the deploy, not…
-
5
votes1
answer1220
viewsQ: Send "@Html.Beginform" to another area controller. Asp.Net
I own a controller in a Area calling for "LoginProfessional", with the actions Index, Logon, Logoff. I make a RenderPage calling for the Index in Area root of the project, but when I click on the…
-
2
votes2
answers2389
viewsQ: Stored Procedure with output parameter being the Id of the last insertion. C#
Hello, I’m performing an insert in a table, but I need it to return the ID you just entered. I searched on the command OUTPUT but I couldn’t solve my problem. I need to do all this using procedures,…
-
2
votes1
answer1367
viewsQ: Get list of checkboxes in the controller in Asp.Net
How do I get a checkbox list like this: <div class="editor-field" style="overflow-y: auto; height: 150px;"> <label>Especializações:</label> @{ if…
-
0
votes1
answer1765
viewsQ: How to render Action by accessing controller in this case?
I’m using a ready template and I use the bootstrap, but the menu transaction is done through javascript animations and with the tag <Section> html, as follows: <section class="section"…