Posts by rock.ownar • 355 points
25 posts
-
3
votes3
answers113
viewsA: Call date by javascript
If you already use pure javascript, there is no need to use Jquery, note that there is no need to use the global window object in onload, usually people use window.onload because they do not know…
-
-2
votes1
answer147
viewsQ: controller with the same name (home) in different areas
I have problem of ambiguity, when having controllers, with the same name as, Homecontroller in two areas: Admin and Backoffice is me presenting the problem of ambiguity, I’ve searched enough subject…
-
-1
votes1
answer124
viewsQ: I cannot perform a Redirecttoaction for an Area
Print of what I’ve accomplished, but it didn’t work, this is my Logincontroller. My structure, and I’m trying to point to the Patientecontroller/Index: One of the other options I tried was to add…
-
0
votes1
answer85
viewsQ: I cannot call an asynchronous method in the view
I’m trying to call this method asynchronous in the view but I can’t. private async Task LogOff() { RedirectToAction("Index", "Home"); await HttpContext.SignOutAsync(); } This is one of the ways I’m…
-
0
votes2
answers407
viewsA: Why does my onclick on an onload not work?
Guys, I found a way to solve, I ended up including the same inline code: <i class="fas fa-search" onclick="nomedafuncaoquetornaclicavel()"></i>
javascriptanswered rock.ownar 355 -
0
votes2
answers407
viewsQ: Why does my onclick on an onload not work?
I’m using this code however from the onclick it doesn’t work if I click on the "fa-search" element, but if I paste the same JS into the Chrome console it works as expected. Would you like to know…
javascriptasked rock.ownar 355 -
-1
votes1
answer488
viewsQ: How to perform a Left Join with LINQ C# using my SQL?
Example that works in SQL: select * from Doacoes inner join Projetos on Projetos.IdProjeto = Doacoes.IdProjeto left join Pedidos on Doacoes.IdDoacao = Pedidos.IdDoacao left join Recompensas on…
-
3
votes1
answer48
viewsQ: How to create a filter with all products in the second list except with products that returned in the first list
Perform a filter with the products in the second list, except those that were brought in the first list List List<string> listaProduto = new List<string>(); listaProduto.Add("Arroz");…
-
2
votes2
answers812
viewsQ: but this Dictionary requires a model item of type 'System.Collections.Generic.Ienumerable`1[Webapplication4.Models.modelExemplo]
I can not carry out enumerate, I switched to another reception of information in the View but I do not know how to correct, I checked other forms in Stackoverflow but I did not understand. Model:…
-
2
votes3
answers40
viewsQ: System.Nullreferenceexception in an attribute of type Stringbuilder
Why error occurs? How to fix? Model: public class modelExemplo { public StringBuilder listNewsletter { get; set; } } Controller: public ActionResult funcaodeteste() { modelExemplo obj = new…
-
3
votes1
answer187
viewsQ: There is no variable c#
This is C#’s mistake, or I’m doing something wrong because in my logic it should work perfectly. public partial class Form1 : Form { Banco Bbanco; Bbanco = new Banco(); }…
c#asked rock.ownar 355 -
1
votes1
answer47
viewsQ: Is it possible to do assignment with shorter object initializer?
Is there any way the third instance works with subtraction attribute? private void btnGrasieli_Click(object sender, EventArgs e) { /*Isto funciona Bbanco = new Banco(); Bbanco.Valor = Bbanco.Valor -…
c#asked rock.ownar 355 -
-1
votes2
answers742
viewsQ: I can’t get a variable from another namespace
A project is Webapplication and the other one is like Console: "Projectste" Nomedasolution Structure below: Business(Pasta) Businessdal(project) Arquivodal.Cs Console(project) Business.Cs //Project…
-
0
votes1
answer85
viewsQ: How to create an event for multiple elements?
Function: document.getElementsById("nome").onblur = function(){ //algum código aqui } note that in the above code I can only run for a single element, I would like to explicitly type 3 specific…
javascriptasked rock.ownar 355 -
0
votes2
answers323
viewsQ: Print div with appendchild
I’m trying to print with appendchild, without having to mount using Document.createelement, I know it’s possible but I don’t know how, with innerHTML works but it erases everything, follows below:…
javascriptasked rock.ownar 355 -
-1
votes1
answer48
viewsQ: Update by value difference per id
I am trying to perform an update through this select, where I see what are different data from the pen_registration table, but when trying to perform an update, it presents errors: [MYSQL] UPDATE:…
-
1
votes2
answers37
viewsQ: Update table according to column quantity
The registration table was not modeled correctly, but I need to do an UPDATE by SQL to perform this import, follow example: Note that the children of Bomi Bulsara, need to stay in [nameDoDependent1]…
-
0
votes1
answer30
viewsQ: I cannot use a query method when using a connection class
My kind of connection: class Connection{ private $host="localhost"; private $user="root"; private $password=""; private $dbname="test"; private function conectionDB(){ $conn = new…
-
1
votes1
answer66
viewsQ: How to recover all checkbox
In the code below, I have already tried to recover all the checkbox but I can’t bring anything, I would not like to put the ID, but recover numerous checkbox selected, how can I do? I put only 2 as…
-
0
votes1
answer22
viewsQ: Do not check PHP property value
I would like to instantiate a PHP connection and not show the values as example the user and password, if using print_r(new classname) is shown the values even using the private modifier. Is it…
phpasked rock.ownar 355 -
0
votes4
answers65
viewsA: After error in database insertion through c# I cannot insert remaining lines
Personal in the code itself I decided to put only a new select before running the Precedent, so I consulted if the data existed and could continue the Try catch using them even so the code stopped,…
c#answered rock.ownar 355 -
1
votes4
answers65
viewsQ: After error in database insertion through c# I cannot insert remaining lines
Hello, When executing list in . csv and inserting them in PROC by C# error is given on one of the lines, but I would like that after the error the execution continues, follows part: Try { Reader =…
c#asked rock.ownar 355 -
0
votes1
answer37
viewsA: What is the difference between running SQL SGBD and in an intermediate language (PHP, Java, C#)?
In fact what was happening was that after I gave an UPDATE in PHP, there was a last update right after, and the system was the last. Or by overwriting my own.
phpanswered rock.ownar 355 -
-3
votes1
answer37
viewsQ: What is the difference between running SQL SGBD and in an intermediate language (PHP, Java, C#)?
Hello, I need valuable information that I do not know how to justify could help me in the following scenario? PHP: When executing the SQL(UPDATE) statement by PHP and returning to the list of…
phpasked rock.ownar 355 -
2
votes3
answers849
viewsQ: How to go through each row of the database compare and update a specific column?
I have a table called PRODUCT and I need to make a comparison between two columns, the column DATA_INICIAL AND DATA_FINAL, for each row travelled, if the product is not in agreement should enter the…