Posts by Edenilson Bila • 821 points
35 posts
-
0
votes1
answer48
viewsQ: Property with GET (Getteronly) with Iqueryable C#
I don’t know exactly what it’s called when it maps the return in the method like this, but I’ll try to explain, I have the following class for example: public class Venda(){ public decimal Valor…
-
0
votes0
answers86
viewsQ: Disable Identity Entity Framework temporarily at runtime
I need to synchronize 2 databases, One stays on the local machine and one on the server, I get the data I need by Api via Json, And it returns me the model with the data I need to insert.. However…
-
1
votes1
answer106
viewsQ: Foreach or for inside an Anynimous Type C#
I am mounting a return of an Api on JSON, And the comeback I ride in Anynimoustype I believe that’s what it’s called, in it I name the variables as they go to Json, but I needed to make a foreach to…
-
2
votes2
answers51
viewsA: Variable declaration
Car is a class created by (you) programmer, and in the statement there you are instantiating the Car class that should stay Carro carro = new Carro(); String, Boolean, and etc are primary (native)…
-
0
votes1
answer54
viewsA: Hello, my problem is that the email is being sent only when I check the email instead of showing the sender’s email shows the recipient’s
As I did the comment above, you are confused regarding Sender (Who is sending the email) and Recipient (Who will receive the email), in case the email that is informed in the txtEmail field, I…
-
1
votes2
answers5343
viewsA: How to run a jquery script when loading a page
Makes a Function with the validation of the type combo, Ai when the change you call this function, and once you load the form you can call too, Ai as soon as you load your view it will validate…
-
6
votes1
answer84
viewsA: Basic doubt in C# (Sounds)
Instead of using the direct path from the PC, creates a folder at the root of the project called "Sounds" all sounds that will use in the application you play it. When using the sound you search as…
-
4
votes1
answer59
viewsA: How to show the record that was most repeated in the MYSQL table?
Try the following, Where Columnupled Name would be the column that has John 5x and Table Name would be your table SELECT NomeColunaDuplicada, Count(*) as QtdRepeticoes FROM NomeTabela GROUP BY…
mysqlanswered Edenilson Bila 821 -
3
votes2
answers609
viewsQ: For/Foreach Sql Server For Each Separate Column Data
I need to execute a command SQL to update a table, the intention of this update would be to update a column with sequential number per company, e.g.: I have a table Sale in this table have the…
-
0
votes1
answer198
viewsQ: Modal Bootstrap does not exceed page end
I have a modal bootstrap and in it I display a table, However when this table returns many records the modal ends up overflowing out of the screen, And can not see the end of the modal as in the…
-
1
votes1
answer80
viewsA: Recover Sqlcommand as string
Sqlcommand is to execute commands like Insert, Delete and Update to retrieve information you can make the following way: //Pega a porta digitada pelo usuario var portaDigitada = txtPorta.Text;…
-
1
votes1
answer1462
viewsQ: Group duplicate Sql Server lines
I created the query where I have a table Products and another stock (1:N) need to add the stock of each product has in the stock table, I made the following query: select DISTINCT…
-
0
votes3
answers899
viewsA: Taking value from an array
I usually work like this, It would not be recommended to pick up the value with the each() just by returning from the whole list, In this case I put a id in each td as I did, and I take the value of…
jqueryanswered Edenilson Bila 821 -
1
votes1
answer192
viewsA: Pass Switch to Controller
In id your field is coming as null because in your view in the form there is no field as id, for this to work you can do as follows: @Html.HiddenFor(model => model.Id) Do it inside the Begginform…
-
1
votes2
answers682
viewsA: Transfer of Socket Files c#
I got it this way, I do not know if it would be the most correct but it was the only one that solved the problem, as the problem were files that exceeded 6kbs me instead of sending the whole file, I…
-
0
votes3
answers1272
viewsA: How to add multiple elements within jQuery’s html() function?
Instead of html(); use the jquery append() confome the example below, I created two separate Ivs and inserted the 2 in it with the append, just adapt to your method var div1 =…
-
1
votes1
answer32
viewsA: Sequenced names
In setTimeout call the write inside the Function as in the example below and the first flame does not need timeout, Soon will call directly it, and after 3 seconds will call the second method: var…
-
1
votes2
answers682
viewsQ: Transfer of Socket Files c#
I have the following situation, I need to transfer an xml from one application to another via network (Socket) set up the methods of client and server which I will post just below, The file is…
-
4
votes2
answers690
viewsQ: Return xml to preview browser Asp.net mvc
I have the following situation, I need to provide an XML file to be viewable in the browser, without the user needing to download the file, I do this by saving the file in a directory and then I…
-
0
votes3
answers1521
viewsA: Cannot implicitly Convert type 'string' to 'int'
Probably your Day Property is of type Int, when you take the value this.lblDay.Text; the default text is a string, so you cannot assign a string to an Int type, you would have to convert before the…
-
1
votes1
answer494
viewsQ: Pass value of equal properties, different classes
I need the next one I don’t know if you can do, so the question, I have two classes and in these two classes I possess exactly equal properties, as follows the examples: public class Cliente {…
-
2
votes1
answer108
viewsA: What is "! Mportant" for in CSS?
Serves to override the already assigned css for the element, Example: .corAzul{ background-color: blue !important; } .corVerde{ background-color: green; } <input type="text"…
-
4
votes5
answers590
viewsA: Remove chunk from a string
Try this: $retorno = explode("&","32137hyb8bhbhu837218nhbuhuh&3298j19j2n39")[0]; See Example here…
-
0
votes4
answers961
viewsA: how to generate an xml in memory
Use Stringbuilder to log in, I use this method and it works perfectly: StringBuilder xmlFormado = new StringBuilder(); //Estacia o Objeto XML XmlWriter arqXml = XmlWriter.Create(xmlFormado, null);…
-
3
votes1
answer459
viewsA: Run log method whenever Exception ASP.NET MVC (Exception Handling) occurs
People got it as follows: To capture errors in ASP.NET MVC in Global Asax you have to put the following method: The following link teaches how to use it in other application types:…
-
3
votes1
answer459
viewsQ: Run log method whenever Exception ASP.NET MVC (Exception Handling) occurs
I need to implement Error Log in my application ASP.NET MVC, My question is the following, is there any way I could trigger a method (This would be a method that would save the error log, send the…
-
1
votes1
answer426
viewsQ: Jquery Maskmoney Asp.net Mvc
I use the Jquery MaskMoney in my inputs to treat the decimais, so far so good, but I noticed that when I type values above 1,000.00 where the MaskMoney plays me the point(.) in value, When I save…
-
0
votes2
answers565
viewsA: Doubt with using jquery.maskMoney with Asp.net mvc
Next to work your input cannot be of the type Number, you can change it in Razor in the attributes ponde @type="text". In the code below I show an example of the working use, I input the class:…
-
1
votes2
answers48
viewsA: Show inputs by clicking "Include"
I think that would be what you need, I made the example below see if it meets you. Summary of the code: The inputs that you want to appear after clicking include, added the css class: scoped like…
-
3
votes3
answers1778
viewsA: Scaffolding error during View generation
This is really a mistake and troubled me for a long time, I solved it the following way only so it worked with me. You have to change where you are for example: public DbSet<OnsiteCourse>…
-
-1
votes2
answers711
viewsA: Installing a Winforms C# application on the client
About Access there is Access Runtime the version has to be the same of the office that you created the database ex: if you created the MDB in Access 2007 download the Runtime 2007.. This link has…
-
5
votes2
answers2764
viewsA: Windows Forms Start with Operating System
Good evening complementing the above answer, There is this method that I use in C# with it you can put to your application start with Windows or even remove it.. how this Voce can put that…
-
2
votes1
answer110
viewsA: How to change chart when changing date
Jquery Ajax research I use a lot to do this. And try to change the date Picker event to onSelect In your case it would look something like this: onSelect: function(dateText, inst) { $.ajax({ url:…
-
1
votes1
answer672
viewsA: Database - Images
Good evening, I don’t know React-Native, However what I know about storing images in the database, Daria to store them transforming them into Base64 depends on the language the method to do this...…
-
2
votes1
answer157
viewsQ: Communicate ASP.NET with Windows Forms
The problem is the following, I work with SAT-CFE and the communication with this is done via USB which makes it impossible for my web system to do direct communication with it. What I did, I…