Posts by pnet • 14,727 points
909 posts
-
4
votes1
answer162
viewsQ: Problems with logic to bring data from a list or table
I did several posts here and solved almost all problems. However I understood that the problem was in the logic that I set up to bring the result. I know I’m asking a lot, but I’m trying and I…
-
1
votes1
answer118
viewsQ: Make a foreach that does not repeat the same data
I have this foreach, in a table with more than 5000 records. There are only 6 types of business unit. I would like that in the foreach and Ingl, when a type of UN appears, it loads and then does not…
-
-1
votes2
answers568
viewsQ: How I do a foreach inside the View in a Viewdata
Those are my Viewdata on the controller: public ActionResult Acao() { RupturaEntities db = new RupturaEntities(); var _listaUnidade = Enumerable.Empty<object>(); var _listaFamilia =…
-
0
votes1
answer74
viewsQ: Doubt on how to set the type to return a list
I need to return some lists to my view. I am using Viewdata. But there is a problem, when declaring the variable, I do not know what type to put. I did it in the form below and is giving the…
-
1
votes1
answer594
viewsQ: Return more than one data list in the view
In my Return View(), is there a way for me to return two or more lists? These lists are the result of a.
-
-1
votes1
answer104
viewsQ: Foreach result behaves unexpected
I have been working on a page, where I need to create a treeview system with checkbox and this is consuming a lot of my time and leaves me worried about the project’s SLA. In the controller, there I…
-
0
votes1
answer278
viewsQ: Grouping in foreach and view does not work
I created and set a variable to control the following. My LINQ returns 5,000 lines today. This variable, it’s there to avoid repeating the same thing, like. Let’s say Linus gives me 400 ID=1 motif.…
-
0
votes1
answer210
viewsQ: Nest <ul> tag in another <ul> tag with foreach
I have this foreach, which I did with your help here at SOPT. I cost to make it work, but it worked. Only I did it with just one knot. What I’m going to need is this. I have a father knot, inside…
-
0
votes1
answer615
viewsQ: Take Model in View with values from the database
I have that class: public class MontaArvoreAcao { public int IDRuptura { get; set; } public DateTime DataRuptura { get; set; } public int IDMotivo { get; set; } public string Motivo { get; set; }…
-
0
votes2
answers4814
viewsQ: Foreach within a cshtml(view) from a controller
I made a code using Linq and jQuery. Turns out you’re giving me a problem I can’t solve, which is creating a Treeview dynamically. Then I had another idea. To do the foreach right in the View…
-
2
votes1
answer141
viewsA: ASP.Net MVC application does not connect to the bank
Dude, I made a simple login screen with MVC and worked like this. Build in the controller a method that would take the bank logged in guy, like you do. Then he would serialize the information…
-
0
votes3
answers647
viewsQ: Dynamically load from the bank and mount a treeview in cshtml I’m not getting
is as follows. I am not getting satisfactory results in assembling a tree using checkbox as in a treeview. Well, when I put the fixed data works very well. But when I bring the BD data, that’s where…
-
1
votes1
answer619
viewsQ: How to concatenate fields in the Line and rename
I made a Burst and it is not working concatenation and renaming it. See: var monta_arvore = (from rup in db.Ruptura from apr in db.Apresentacao.Where(ap => ap.Codigo_Apresentacao ==…
-
1
votes1
answer760
viewsA: Javascript error - Uncaught Typeerror - Unable to resolve
I put a $ inside the Function and it worked, but I don’t know if it would be right. It was like this my Function: $(document).ready(function ($) { ... });…
-
0
votes1
answer760
viewsQ: Javascript error - Uncaught Typeerror - Unable to resolve
Give me the following error: Uncaught Typeerror: Undefined is not a Function. I still can’t fix it. I’ve already changed jquery versions and nothing. I looked for quote errors, semicolon and still…
-
0
votes1
answer817
viewsA: Difficulty placing checkbox in treeview with or without bootstrap
That example I downloaded worked. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="content-type"…
-
0
votes1
answer817
viewsQ: Difficulty placing checkbox in treeview with or without bootstrap
This is my treeview: @*Daqui para baixo, tudo se relaciona com a treeview*@ <div class="well" style="width:100%; padding: 8px 0;"> <div style="overflow-y: scroll; overflow-x: hidden;…
-
4
votes1
answer1395
viewsQ: Controller message to view
I did that: [HttpPost] public void CadastraUsusario(string _nome, string _usuario, string _email, string _nivel_acesso, bool _ativo) { using (RupturaEntities db = new RupturaEntities()) { Usuario…
-
2
votes1
answer790
viewsQ: Open a folder on the user’s machine and open a file (csv,txt or xls)
How do I open a folder on the user’s machine? I need to open the folder and upload a csv, txt or xls file. I use MVC5 That would be about it. A button that clicks in the folder and then I click that…
-
1
votes1
answer629
viewsQ: Difficulty positioning table on screen with bootstrap - layout only
I need to make a layout on my page, as follows. That I have three textbox controls, one at the bottom of the other and picking the other side all the rest with a table. See below how I need. I tried…
-
0
votes1
answer78
viewsQ: Save fk right after pk is generated with Entity
I have a system and this system has some tables that are associative. As soon as I write the main table in the comic book, I need to make sure that that new generated PK is recorded in three other…
-
0
votes2
answers485
viewsA: Foreach within a cshtml
I resolved so: <ul class="list-group checked-list-box" id="check-list-box"> @{ Ruptura.Models.RupturaEntities db = new Ruptura.Models.RupturaEntities(); var result_ap = db.Apresentacao…
-
0
votes2
answers485
viewsQ: Foreach within a cshtml
It is giving error the way I did foreach. If I put @ gives error in parser. If I withdraw gives other errors. How do I do? Below me full code. @model Ruptura.Models.RupturaEntities @{ ViewBag.Title…
-
1
votes1
answer289
viewsQ: Checklistbox when dynamically loaded does not mount the check’s
When it was manual, the check’s(the check boxes) were all ok. As I now mounted via jquery and controller, no longer assembles the check’s, is like a listbox without being able to make selection. See…
-
7
votes2
answers4616
viewsQ: Login with network user(AD)
I need to log the user into my system, with the user who is logged in to the company network. I’ve never done this and I’m having doubts about how to get users on AD. I’m doing research on the net…
-
1
votes1
answer597
viewsQ: Pick up value on a checkbox checked item
I have this checklistbox. <div class="col-md-6"> <h3 class="text-center">Unidade de negócio</h3> <div class="well" style="max-height: 300px;overflow: auto;"> <ul…
-
-2
votes1
answer189
viewsQ: Checklistbox using bootstrap
I need to create a checklistbox using bootstrap. I tried several ways and could not. I searched on the bootstrap site and the examples there, I did not cosegui also do here in my project. I need…
-
0
votes3
answers1185
viewsA: icone does not stand next to input bootstrap
Dude, I just solved a positioning problem with bootstrap and it was a certain class in bootstrap css. I advise you to change your bootstrap class. I saw that the padding class Brand(My case) had a…
-
0
votes3
answers3156
viewsA: Position image to the right and top
It really was the Brand. That’s the line. ......... .navbar-brand { float: left; padding: 0;//@navbar-padding-vertical @navbar-padding-horizontal;-- font-size: @font-size-large; line-height:…
-
2
votes3
answers3156
viewsQ: Position image to the right and top
With that code, I can keep the image right: <a class="navbar-brand navbar-right"><img src="~/Images/ache.jpg" /></a> But this image is inside a menu bar. I have an image and I…
-
1
votes2
answers9397
viewsQ: Place image in bootstrap menu
As I put an image in the right corner of a menu bar with bootstrap. Below the code of my Layout(Master) <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta…
-
-3
votes1
answer46906
viewsQ: How to change menu colors?
When we create a menu with Bootstrap, it by default, creates a black band throughout the menu area. It looks beautiful like this. However, in the company I’m in, the predominant color is magenta, so…
-
1
votes2
answers384
viewsQ: Create menu type, but with (+) sign (Treeview)
Use Bootstrap 3.1, Entity 6.1, Visual Studio 2013, MVC5, Jquery and etc... Well, I need to make a query, so that when the screen is loaded, it can carry some information, such as medicine…
-
5
votes2
answers124
viewsQ: How I give a Sort on my dropdownlist
How do I give a Sort to my dropdown? This is my dropdown. How do I give a Sort to it? Calling to the Dropdown <select class="form-control col-sm-6" name="cbxCodTipo"…
-
3
votes3
answers12809
viewsQ: Error while running my MVC application
That is the mistake: Linha 1: <%@ Application Codebehind="Global.asax.cs" Inherits="Util.MvcApplication" Language="C#" %> I had created another project called Util and started to give this…
-
3
votes1
answer1261
viewsQ: Map associative tables in the Entity
This has already happened. When I use an associative table in Entity, these tables usually don’t have PK. When this happens, I can’t map them. How can I map this type of table?
-
1
votes2
answers340
viewsA: Error in converting dates during an Index
Solved: ..... select Convert(DateTime,Substring(stg.DATA,0,10))==>> Aqui resolvi ,mot.MOTNM_CODIGO AS RUPTURA ,1 AS ORIGEM ,pdv.PDVCH_CODIGO AS CODIGO_PDV ,apr.APRCH_COD_ACHE AS CODIGO_EAN…
-
1
votes2
answers340
viewsQ: Error in converting dates during an Index
I need to load a table into a database with data from another table and another database. It turns out that in the Datetime field is giving a conversion error, because the data of the other table is…
-
1
votes4
answers2318
viewsA: Table load of a different seat
Solved. use [Rup] insert into tabela(campos) value select campos from stg_rup.tabela where.....
sql-serveranswered pnet 14,727 -
1
votes4
answers2318
viewsQ: Table load of a different seat
I have a bank called STG_RUP and another called RUP. I created some entities in the RUP and I need to feed these entities with data from the entities that are in STG_RUP. How do I do this? The…
sql-serverasked pnet 14,727 -
3
votes2
answers1034
viewsQ: Log in with network user
When opening the page I am building, the user who is logged in by the network, he or she will login to the page with this user, but without having to open a page for this, that is, my system will…
-
0
votes3
answers567
viewsA: How to assign values to Bootstrap buttons
You can also create a function in jquery that calls your page and on the button call that function like this: Jquery: function chamaInicio(){…
-
1
votes1
answer96
viewsQ: Validating response in controller is giving error
Need to validate the answer in my method in the controller. For this I need an if. Why does the method not consider the return within an IF? Thus: public JsonResult ValidaLogin(string _email, string…
-
0
votes1
answer4278
viewsQ: My view does not starta
This is the Error that gives: Erro de Servidor no Aplicativo '/'. Não é possível encontrar o recurso. Descrição: HTTP 404. O recurso que você está procurando (ou uma de suas dependências) não pôde…
-
4
votes1
answer1387
viewsQ: Login screen with Membership and mvc5
How do I login using Membership and mvc 5? By the way, how do I use Membership?
-
1
votes1
answer2222
viewsQ: Positioning controls with bootstrap
I’m having a hard time positioning controls on the bootstrap page. I wish I wasn’t resorting to external CSS resources, because that would take away the reason of being bootstrap. What I mean is: 1)…
-
-2
votes1
answer1115
viewsQ: Table shows neither rows nor columns with bootstrap
I’m trying to make a table with bootstrap. It turns out that some things don’t work. The size of the TD’s are always the same. I can’t create rows to separate rows and columns, like a grid. I took a…
-
2
votes2
answers149
viewsA: Combo does not load with calling via jquery
I resolved so: window.onload = function () { PreencheCombo(); }
-
1
votes2
answers149
viewsQ: Combo does not load with calling via jquery
I’m trying to fill a dropdown menu that when Torina is placed on a button this works. But since I want this fill-in to happen automatically as soon as the document is loaded into jQuery.ready() for…
-
2
votes1
answer1709
viewsQ: Function not defined with javascript
I made a cshtml and in it there is a button that calls my function that inserts in the BD. It turns out that when I click the button, it gives me this error: Uncaught Referenceerror: Insert…