Posts by Alisson Marqui • 1,128 points
38 posts
-
1
votes1
answer110
viewsA: Generate Unico Code in Sequence without Repeating MVC
As already answered in the mentioned question, you can use the SEQUENCE Sql Server to get sequential code without repetition. You can create it in Sql Server with the following command: CREATE…
-
2
votes2
answers32
viewsA: Timeout Connectiostring
Timeout property refers to the time limit on seconds to create the BD connection. But the correct name would be Connect Timeout. You can refer to the list of all connectionString properties for Sql…
-
0
votes1
answer138
viewsA: Insert a Partial View @Html.Partial into an iframe
Create an Action in your Controller to return this Partial View, and on href of his do iframe point to your action. Example: Controller public ActionResult Agd() { return PartialView("_AGD"); } View…
asp.netanswered Alisson Marqui 1,128 -
0
votes1
answer206
viewsA: Load page contents to href for modal
The method .html(htmlString) Jquery expects to receive an html string that will render. In your first example, you are passing this.href to him, he will take the content of href, in case the link,…
-
0
votes1
answer47
viewsA: Error mounting String with parameter . NET
The error occurs because the parameter is null, as you mentioned, and you are calling the String.IsNullOrEmpty but when passing the field in the method parameter you call the Trim, then the first…
-
1
votes1
answer144
viewsA: Retrofit Answer returning null with code 406 Not Acceptable
Your server is returning this error because it did not receive the Accept parameter in the header specifying which type of return is expected. In your Retrofit interface add the following:…
-
1
votes1
answer55
viewsA: I’m not getting to finish the Activitys
The flag Intent.FLAG_ACTIVITY_NO_HISTORY makes sure Activity doesn’t get into the history stack. So when changing between apps and back Android does not have the history of which Activity was open…
-
0
votes1
answer48
viewsA: Same url works sometimes yes and sometimes no
Your form is doing a POST in the Menuprincipal file, this file does not have an Onpost method for this reason you get the 400 error. When using F5 the browser tries to redo the last action, in case…
-
1
votes1
answer26
viewsA: Comparison of dates using Timespan.Compare()
Considering the above values: Parameter time: 07:00:00 Initial time: 06:00:00 Final time: 23:00:00 You need your if to be ((07 >= 06) && (07 <= 23)) changing this to your variables and…
c#answered Alisson Marqui 1,128 -
0
votes1
answer59
viewsA: Delete all Data by sending a new Android App Update
You will need to create this control in your app’s Start Activity to check the app version and delete what you want if you change the version This commented in the code how the control should work.…
androidanswered Alisson Marqui 1,128 -
1
votes1
answer89
viewsA: Problems with Linearlayout
The problem of displaying components is divided into the sizes placed on them. You have put a fixed size on the layerIt is ideal to use layout_width="match_parent" to take the total space…
-
1
votes2
answers87
viewsA: Hosting and favicon error 404
Giving a search I found this Issue on Postman’s Github where it is mentioned that this error comes from your hosting server, usually originated on free hosting servers, where they disable the use of…
-
1
votes3
answers62
viewsA: How to choose the page URL (vice versa)
You can annotate your method in Controller with the annotation [Route("/")] Example: [Route("menu")] public class DistrictController : ControllerBase { [Route("/")] public IActionResult Index(int…
-
3
votes2
answers134
viewsA: Deserialize array of C#objects
You are sending an array with array the format of your JSON is getting [ [], [] ] considering this format Jsonconvert expects you to do Deserializeobject for a list, example,…
-
1
votes3
answers132
viewsA: Choose Modal from variable
To do this would not be by the Model in the View, you need to use Viewbag or Viewdata to set the information you need in your Onpost() and receive it in your other View. Example: Controller public…
-
0
votes1
answer1079
viewsA: select max(id) of each* record
To get max(id) for each numberExtern, select with group by Example: select max(ID), NUMEROEXTERNO from BA_COBAN.DETALHELOJAARQCADASTRAL where NUMEROEXTERNOMATRIZ = '50494' Now use this select to do…
-
0
votes1
answer73
viewsA: How to read tags inside a string?
To take a string and render as HTML use Razor’s @Html.Raw. Example: @Html.Raw(HttpContext.Session.GetString("xmltojson"))
-
5
votes4
answers1546
viewsA: Take specific value from a JSON or XML
Convert JSON To convert JSON to object using the public Json.NET your model must follow the same structure as your JSON so that the component can convert. Classes and properties have to respect JSON…
-
8
votes1
answer775
viewsQ: How to have multiple languages in a single application?
Listening to a technology podcast on Nubank, CTO and Principal Engineer comment that they use Java, Kotlin, React Native and Flutter to develop the Android app and everything generates a single…
-
2
votes1
answer260
viewsA: Recyclerview click item 1 open Activity 1, click item 2 open Activity 2
I put your OnClick within the MyViewHolder and use the getAdapterPosition, as in the example below: public class MyViewHolder extends RecyclerView.ViewHolder { TextView titulo; View line; public…
-
1
votes1
answer279
viewsA: Search in Fullcalendar.js
You can create a function to pick up events from FullCalendar and add a class items you want to hide according to the filter, and call it every time your filter input is changed. Example of…
fullcalendaranswered Alisson Marqui 1,128 -
3
votes1
answer193
viewsA: block URL ID
From what I understood of your question, the user has permission to register, you just do not want him to be accessing the screen editing parameter in the URL, based on this I think of the following…
asp.net-mvcanswered Alisson Marqui 1,128 -
0
votes1
answer246
viewsA: Change the color of the Recycleview line
In the Adapter of his RecycleView create a variable to control the position it has selected in the list and initially set the value -1. In the onBindViewHolder define the onClicklistner to update…
-
0
votes1
answer148
viewsA: What is the Difference between Select and Run in a Procedure?
The select is intended to return data, so it must perform something that has a return, in the case of procedures there must be a suspend to be executed with select. Already the execute stored…
-
1
votes3
answers55
viewsA: Switch between results
Whereas the second select will not exist if it is complete in the first select, another way for you to do it would be to add in the Where select is not null. SELECT id, nome, idade, data_nascimento,…
-
1
votes1
answer424
viewsA: How to increase fullCalendar time
Duration of slots To split the one-hour period into 4 15-minute slots, use the property slotDuration. Example: slotDuration: '00:15:00', Link to Documentation. Start Time of the calendar To set the…
-
0
votes2
answers150
viewsA: How to configure custom Error 500 page?
In his Web.config let the <httpErrors> as follows. <httpErrors errorMode="Custom" existingResponse="Replace"> <remove statusCode="500" /> <remove statusCode="404" />…
-
1
votes1
answer68
viewsA: Open the APK settings via API
You can use the code below to display an Alert with the option to go to the APP settings AlertDialog dialog = new AlertDialog.Builder(SplashScreenActivity.this).create();…
-
0
votes1
answer47
viewsA: Procedure does not return the full column
Within a procedure or trigger the command select can only return 1 record. To do what you want you need to use for select as below. create or alter procedure VER_TODOS_DEST returns ( CIDADES…
-
0
votes1
answer248
viewsA: Fetch ip via sql
Thiago, the Firebird just as in other banks has internal tables for controls, through these internal tables you can get the information of connections, transactions and executed commands, etc. Use…
-
0
votes1
answer136
viewsA: Migration with Strange Characters?
You can make a Backup and a Restore from your database using the following commands from Gbak for correction of UNICODE. -FIX_FSS_D(ATA) fix malformed UNICODE_FSS -FIX_FSS_M(ETADATA) fix malformed…
-
1
votes1
answer2511
viewsA: Connectionstring property not initialized
The connected object you are passing in the Sqldataadapter parameter has not been instantiated. Try the following: public DataTable Localizar(String Valor) { DataTable tabela = new DataTable();…
c#answered Alisson Marqui 1,128 -
3
votes3
answers1531
viewsQ: Validate field after typing in ASP.NET MVC
I have a registration page in ASP.NET MVC with Entity Framework, this registration has an indication field, where the nickname of the user that indicated. I wanted after typing this field by the…
-
2
votes1
answer297
viewsA: Firebird + Entityframework with Visual Studio 2015
Close your Visual Studio and install the DDEX Provider for Visual Studio and the ADO.NET Data Provider, both can be downloaded at the following link:…
firebirdanswered Alisson Marqui 1,128 -
3
votes1
answer223
viewsA: How to create this process
to procedure to do what you wish would look like this: create procedure SP_CADRAM_AUTOMATICO as declare variable VRAMAL_DESTINO integer; begin for select distinct (RAMALDESTINO) from CADCHA where…
-
3
votes2
answers6427
viewsA: Export data from Firebird
Install the Firebird with server tool on the machine you want to open, and use the tool IBExpert to open the database. If you have not set a password on Firebird the password will be masterkey,…
-
4
votes3
answers381
viewsA: Loop to make edits invisible
You can sweep the property Components from your Form where all its components are stored and check which ones are Edit to change. Example: for I := 0 to Form1.ComponentCount - 1 do begin if…
-
5
votes1
answer301
viewsQ: Sync Android x Web
I am developing an application that will work offline on android and sync with a version web. I have a API that will mediate this synchronization. Currently the version android has a timestamp to…