Posts by pnet • 14,727 points
909 posts
-
-5
votes2
answers13243
viewsQ: Rotary Banner with Bootstrap
How do I make a rotating banner with Bootstrap? I searched the Bootstrap documentation, but I didn’t see anything related to rotating banner. How do I do? In fact what I want is to keep you showing…
-
1
votes1
answer1210
viewsQ: Problems with dropdown menu with bootstrap
I have a dropdown menu on my page. When I select the menu the following problems occur: 1) Nothing is selected, that is, I choose the option, but do not select anything. 2) Even if nothing is…
-
0
votes2
answers91
viewsQ: Visual Studio 2013 only opens 2012 projects
Whenever I will create a new project on VS2013, I have no project option, just the option: WEB >> Visual Studio 2012. Then yes, I have several project options like MVC 3 and 4 and so on. How…
-
3
votes1
answer846
viewsQ: Take TD value and send as parameter
I have a table with two TD only (CNPJ and Social Reason). My controller has a method that takes 2 parameters (CNPJ or Reason). These parameters are sent via jquery. I am unable to do the following.…
-
3
votes1
answer6998
viewsQ: Align left and decrease distance between bootstrap controls
See the following image: Note that the first label (CNPJ) is very far from the margin and the most important for me. The distance between the label and the control is very large and the distance…
-
0
votes2
answers1764
viewsQ: Bootstrap alignment is not correct
I tried to do a bootstrap alignment, so that I had the label and next to it the control. Well, thinking that way, I opted for the class .form-horizontal. Well, when I rescan the site, the alignment…
-
1
votes2
answers1537
viewsQ: jquery method does not pass parameters to controller
Jquery does not pass parameters to controller. Empty values. Jquery: function GravaEvento() { var str = ""; var parametros = jQuery.parseJSON('{ "DE_Cnpj": "' + $("#txtCnpj").val() + '" ,…
-
6
votes3
answers42780
viewsQ: How to change date format in bootstrap from mm/dd/yyyy to dd/mm/yyyy
That’s the mistake you’re making: Uncaught Typeerror: Cannot set Property 'en-BR' of Undefined Insert some links to format the date, according to what I took on the net and even then the date is…
-
2
votes3
answers3089
viewsQ: Publication of MVC 4 site on IIS is giving error
I uploaded my published application to IIS and I can’t see in the browser. Before I was giving error of Forbidden(403) and now of Server Error(404). I’ve never uploaded an MVC site to the IIS. I…
-
1
votes1
answer1710
viewsQ: Pass parameters by jquery through a table
a question: I have a table and in it two columns, which are: CNPJ and Razão Social. Well, I need to do this: When I click on the column CNPJ, for example, should pass the value of CNPJ that is being…
-
1
votes1
answer292
viewsA: Place tabs inside a form
Solved. I created a jquery function for another set of tabs: $(function () { $("#subtabs").tabs(); }); And then I put my html that will create the tabs in the position where I want the tabs. That…
-
0
votes1
answer110
viewsA: CSHTML with tabs is leaving a horizontal line at the bottom of the page
The resolution of this post was made this way: <div id="tabs" style="border:none">
-
0
votes2
answers210
viewsA: Problems with the presentation of cshtml(Visual)
I solved the line problem. <div id="tabs" style="border:none"> => BORDER NONE
-
3
votes2
answers971
viewsQ: Paint top titlebar of a table with bootstrap
How do I paint the top title bar of a table made with bootstrap? To paint all thead TR. <div class="pull-right" id="tabela4"> <br /> <table class="table table-striped table-ordered…
-
-3
votes1
answer1703
viewsQ: Bring the last five in a row
I have a table of events. And each POS, an event is held, with the Event ID, Date, User and Type. Well, whenever I make a query, I populate an event grid. I would like to know, how to bring the last…
-
10
votes1
answer9035
viewsQ: Scroll bar on a table with bootstrap
I have a table, where I upload database information into it. It has two columns (CNPJ and Social Reason). The table I mounted with bootstrap. I would like her to have a maximum height and create a…
-
0
votes2
answers210
viewsQ: Problems with the presentation of cshtml(Visual)
I have a cshtml, which is shown like this: A sequence of filters that are fixed. When I click search, then I get the return of a method in the controller via json by a jquery function and in the…
-
6
votes1
answer142
viewsQ: Conversion error in a query
I made this consultation and in Where is giving this error: Cannot implicitly convert type 'System.Collections.Generic.IEnumerable<AnonymousType#1>' to…
-
4
votes1
answer12235
viewsQ: Resize <td> using bootstrap
Have how I create a table with Bootstrap and fix the size of each <td>? I would like to be able to make the cell size of a table more flexible with Bootstrap, it is possible?…
-
2
votes1
answer135
viewsQ: Difficulty positioning controls with bootstrap
I have a cshtml, that needs to position some controls. I positioned a table on the left side of the document. Now I need to position several controls labels next to the table and these labels one…
-
-1
votes1
answer110
viewsQ: CSHTML with tabs is leaving a horizontal line at the bottom of the page
I have a page with 4 tabs. It’s working. I happen to have a div for each tab. The end of the tab and the beginning of the other tab looks like this: ..... </div> </form> </div>…
-
2
votes1
answer1223
viewsQ: Complex query when passing parameters
I need to make a query, but I’m having a hard time. I have 5 filters on the page. Three of them come from three dropdown (select). I can only consider select if the text in them is different from…
-
3
votes2
answers9928
viewsQ: Tables with Bootstrap
I started yesterday with Bootstrap and I’m still on the learning curve. My need is a table with two columns, a form of a grid. In this table I have only two columns: CNPJ and Social Reason. And I do…
-
0
votes2
answers792
viewsQ: Position controls with bootstrap not aligning
I need to do the following: Label above and control below the Abels. I took the example of the page itself twitter bootstrap and it’s not working. Below my code: <div id="tabs-1"> <form…
-
0
votes1
answer292
viewsQ: Place tabs inside a form
I have an html document with tabs. That’s ok. Now, inside one of these tabs, I have a form, where I put my controls. I could not put, inside this form more tabs, so that would have a documanto and…
-
1
votes2
answers1647
viewsQ: How to position html elements with css
I have difficulty positioning controls, like: I have a Textarea and I would like to put a label next to it, next to the bottom right and below the label, a SELECT control. Well I have managed, but…
-
11
votes2
answers197
viewsQ: Nomenclature or language in lambda
We have that expression: var teste = meucotexto.minhatable.Where(x => x.meu_campo.....) How I read that part x => x.meu_campo Leio x is for x.meu_campo or x of x.meu_campo or something else?…
-
0
votes1
answer70
viewsQ: Method jQuery is not writing in BD
I have a routine to record in BD. With you in AJAX Success, fire a alert, but does not save. A button that calls the method, passes the parameters to the method in the controller and that method…
-
1
votes2
answers7019
viewsQ: Pass parameters through jquery to controller
I have a method in the controller(void) that receives some parameters(3). I am unable to pass to the method. The other times I did, passing to an object there, I have succeeded, with method…
-
1
votes2
answers104
viewsQ: When concatenating into LINQ returns error
I did this LINQ. In the concatenation between DDD and phone number, which I call phone 1 is giving dick. var agendamento = ( from pdv in db.T_PDV from tarefa in db.T_TarefaParceiro.Where(trf =>…
-
0
votes2
answers558
viewsQ: Jquery does not mount date correctly
I did that and MSG is: Invalid Date. I think it’s because everything has turned into a string. How do I bring only the numerical part on the date? In fact, I say this because I cannot return a date…
-
0
votes4
answers5635
viewsA: Make a regex to remove characters
I resolved so: var dtCadastro = data.agendamento.DataCadastro.substring(6, data.agendamento.DataCadastro.length - 2); var dtAgendanmento = data.agendamento.DataAgendamento(6,…
-
3
votes4
answers5635
viewsQ: Make a regex to remove characters
In a return of a jquery function, the date returned comes in this format. /Date(1401731794773)/ I would like to remove the invalid characters on that date, which are: /Date( and )/ I only need the…
-
0
votes1
answer194
viewsQ: Date is coming in wrong format
In a jquery function, I get a date in my View. It turns out that the date is coming like this: /Date(1402369200000)/ I know I need to do a cast or something, but I don’t know how to do it. Can…
-
1
votes4
answers2214
viewsQ: Bring a Max(Date) with LINQ
I have this Linq: var resultado = ( from pdv in db.T_PDV from tarefa in db.T_TarefaParceiro.Where(trf => trf.CNPJ == pdv.CNPJ).DefaultIfEmpty() from parceiro in db.T_OsParceiro.Where(prf =>…
-
1
votes1
answer309
viewsA: Left Join on the Linq is giving error in more than two tables
I remade my LINQ and now it worked. I did so: var resultado = ( from pdv in db.T_PDV from tarefa in db.T_TarefaParceiro.Where(trf => trf.CNPJ == pdv.CNPJ).DefaultIfEmpty() from parceiro in…
-
0
votes1
answer309
viewsQ: Left Join on the Linq is giving error in more than two tables
I did that last breath: var resultado = ( from pdv in db.T_PDV join tarefa in db.T_TarefaParceiro on pdv.CNPJ equals (tarefa.CNPJ) into _trf from g1 in _trf.DefaultIfEmpty() join parceiro in…
-
2
votes2
answers3544
viewsQ: Calling a jquery function when changing tabs
I have a jquery function that mounts an html. It turns out there is a View with 4 tabs. When selecting a particular tab, the function is called and of course, load the dynamic html to assemble the…
-
1
votes1
answer58
viewsQ: Feed view fields to controller
I have used a way to load fields in the view as follows: I make a method by returning a Json in the controller, then create a Jquery function that takes this return and feeds the view fields, in the…
-
3
votes2
answers1168
viewsQ: Positioning scripts and css links in an html document
I always put the CSS scripts and links at the top of the document in the head of the document. Now I realize that there is another concept where the calls to scripts and CSS, are at the bottom of…
-
2
votes1
answer116
viewsQ: Place a decision control inside a lambda expression
I’m building this consultation: private List<string> pegaInformacaoParceiro(string _osparceiro, string _cnpj) { List<string> lista = new List<string>(); WEBEntities db = new…
-
2
votes1
answer247
viewsQ: How to use Reflection
How and why to use Reflection? Is it very useful in everyday life? Its use offers some gain for the system itself?
-
71
votes4
answers25411
viewsQ: What is addiction injection?
I have heard a lot about addiction injection. The question is: How, when and what to use?
-
21
votes5
answers27254
viewsQ: Clear browser caching with Javascript
Is it possible to clear the cache of Firefox and Chrome browsers via Javascript? With Internet Explorer I can, but not mentioned above. Dude, it didn’t work, I think the problem occurs because save…
-
0
votes2
answers72
viewsA: Expression does not bring results, but there is data
I discovered the error. Lack of attention is fda. There is a && such and such, that this relationship is killing. Post solved. It lacked more observation on my part. It has to rise today and…
-
2
votes2
answers72
viewsQ: Expression does not bring results, but there is data
This is my direct sql query. select c.de_cnpj, c.DT_TransacaoV from T_CRM_StatusPDV c join T_PDV p on c.DE_CNPJ = p.CNPJ where DATEDIFF(DAY,c.DT_TransacaoV,GETDATE()) > 45 This is my lambda…
-
3
votes1
answer695
viewsQ: Error when calculating date difference in Entity with Linq to Entities
Before I was like this my expression: var resultado = db.T_CRM_StatusPDV .Join(db.T_PDV, t1 => t1.DE_Cnpj, t2 => t2.CNPJ, (t1, t2) => new { t1, t2}) .Where(dt =>…
-
0
votes1
answer295
viewsQ: Doubt on how to post a method to a web service, hide
What I’m going to ask I don’t know if it’s possible or how to do it. Well, I have a REST that so far is ok. There, they changed a rule here that directly affects the REST API. I have a method that…
-
7
votes1
answer183
viewsQ: Lambda with different contexts
Is there any way to join two or more tables using Lambda and two different contexts?
-
2
votes2
answers495
viewsQ: Lambda Expression X
Speaking in terms of overall performance (speed, integrity and etc...), using English expressions to query database, is better in the above terms or depends on?