Posts by pnet • 14,727 points
909 posts
-
0
votes2
answers917
views -
2
votes3
answers221
viewsQ: How I dynamically put and take out a href
I got this href: <a href="/UpLoads/<%# Eval("DsPathDocumento")%>" class="linkUpload"><%# Eval("NmTipoDocumentoDown")%></a> What I want is that I create a link only when I…
-
1
votes1
answer502
viewsQ: Windows Immediate Window is gone
Window Immediacy Windows disappeared and I can’t restore it anymore. The condition does not appear in the Edit Menu of Visual Studio 2010.
-
1
votes1
answer86
viewsQ: Instruction throw is making the system inconsistent
I have a Try.. catch and catch the fellow who did let only throw. catch(){throw;} Well, my intention is to treat all that exceptions and not just let throw. But since I just got here at the company,…
-
3
votes2
answers518
viewsQ: How I debug a method in a Web Service . asmx
I have a call in my application, which goes to a WS and executes a method and returns me. How do I debug the WS?
-
1
votes0
answers859
viewsQ: Error of multiple redirects
Before I didn’t make that mistake when I killed the session. The mistake is this: How do I fix. Esta página da web tem um loop de redirecionamento RecarregarOcultar detalhes A página da web em…
-
0
votes3
answers1728
viewsA: Back to page you called
I think the problem was in Linkbutton. I changed it and it worked. <a href='javascript:history.go(-1)'>Voltar a pagina Anterior</a>
-
0
votes3
answers1728
viewsQ: Back to page you called
Is there any way I can make a code on a button come out, make me return to the page you called? Fixing the page does not give, because this page(query process) is called several other. I did this…
-
0
votes1
answer63
viewsQ: Calling a page with Redirect is giving error
That’s the mistake you’re making: Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack. And that’s the full call code on my master. protected…
-
0
votes1
answer158
viewsA: Assign value to variable of type Hiddenfield is giving error
I started running and suddenly no longer gave the exception. It remains the same thing, as in the first post: if ((vhdfCdTipoUsuario != Session["DsTipoUsuario"]) && (Session["DsTipoUsuario"]…
-
-1
votes1
answer158
viewsQ: Assign value to variable of type Hiddenfield is giving error
I have this statement: HiddenField vhdfCdTipoUsuario = null; I have this assignment: vhdfCdTipoUsuario = (HiddenField)e.Item.FindControl("hdfCdTipoUsuario"); If I do this, it makes that mistake: if…
-
2
votes2
answers116
viewsQ: How to debug to know which database or table are running with Asp.Net
I’m 10 days into my new job, and I’m having some difficulties - which is normal, depending on the difficulty. I have a Table inside a Repeater, which is powered by a Procedure. Like I do with Debug,…
-
5
votes2
answers7885
viewsQ: Grab parameters passed by url on another page
I have this call to another page, passing 2 parameters. Response.Redirect("/frmPVFichaCadastral.aspx?CdProcesso=" + vhdfCdProcesso.Value + "&CdTipoUsuario=" + vhdfCdTipoUsuario.Value) How do I…
-
2
votes2
answers4303
viewsA: How to remove a mapping in visual studio at tfs
I did so. I grabbed the tfs server and right-clicked it and appeared to me in its popup menu the Remove Map option. I did this and it worked.
-
1
votes2
answers4303
viewsQ: How to remove a mapping in visual studio at tfs
How do I remove a mapping done by VS 2010 Ultimate in tfs? I need to do this, to map correctly as it is wrong.
-
0
votes2
answers311
viewsA: Difficulty to handle button event in the itemcommand of the Peater
I did so: Type vintTipo = e.CommandSource.GetType(); if (vintTipo == typeof(Button)) { //Aqui faço coisas } else { //Aqui faço outras coisas }
-
0
votes2
answers311
viewsQ: Difficulty to handle button event in the itemcommand of the Peater
I have a table in a Repeater. In this table I have a Button and a Linkbutton. It turns out I need to pick up which click event was fired from the button or the linkbutton. I tried to make an if, but…
-
0
votes1
answer34
viewsQ: Difference between repeater_itemdatabound and repeater_itemcommand
What is the applicability and difference between repeater_itemdatabound and repeater_itemcommand in a Peater?
-
3
votes1
answer224
viewsQ: Direct button click into table item_databound
I have a table inside a Repeater. In this table there is a button. What I want is when I click this button, it triggers the Repeater event: rptGerenciaProcessos_ItemDataBound, just that. How do I do…
-
0
votes1
answer838
viewsQ: Radiobutton returning selected status only
Follows the code: <asp:RadioButtonList ID="rdlCpfCnpjAvalista" CssClass="cPFCNPJRadioButtonList" runat="server" RepeatDirection="Horizontal" AutoPostBack="false"> <asp:ListItem Text="CPF"…
-
0
votes2
answers1301
viewsQ: Doubt about Request.Form
What is Request.Form? How do I interpret these lines? if (Request.Form["chkTornarObrigatorio"] != null) ventRegPendencia.IcDocObrigatorio = int.Parse(Request.Form["chkTornarObrigatorio"]);…
-
1
votes1
answer482
viewsQ: Fill a jquery combobox
See is not popular a combo, I do. The combo is populated, then I need to take the id and show in the combo the text referring to that ID. The ID I have in my table, all that remains is to show the…
-
0
votes1
answer90
viewsQ: Property is coming as Undefined
In the controller I have a lambda that returns me three fields. When I run in jquery it tells me that the property is Undefined. I think it’s the way I try to take the amount. Can someone give me a…
-
0
votes1
answer274
viewsQ: Difficulties in feedback a Textbox and a Combobox with jQuery
I have no difficulty in passing any value from my View to my controller via jquery. Now the opposite I get nothing. I tried so: $('#meutextbox).val() = data.minha_result_da_controller.meu_campo; So…
-
0
votes3
answers755
viewsA: Can you click on a <TD> and get the value of another <TD> Hide?
I resolved so: $(this).parent().find(".idusuario").text()
-
0
votes3
answers755
viewsQ: Can you click on a <TD> and get the value of another <TD> Hide?
One with 4 , being an Hide. Is there any way I can click on any and take the value of this Hide and send it to my controller? That way I get the value of the is being clicked.…
-
1
votes2
answers1245
viewsA: Take the value of a <TD> tag by jquery and send to Controller method
Problem solved by another colleague: $('#nmUsuario').on("dblclick", ".clique", function() { CarregaDados($(this).text()); }); function CarregaDados(ajaxParameter) { $.ajax({ url:…
-
1
votes2
answers1245
viewsQ: Take the value of a <TD> tag by jquery and send to Controller method
How do I take the value of a tag when I double-click it and take that value and move to a method in my controller. Double click function is working. $('#nmUsuario').on("dblclick", '.clique',…
-
0
votes2
answers392
viewsQ: Function does not enter ajax success with jquery
I cannot enter the success of ajax with this function. The function works, that is, calls the double click. The first Alert is ok, but the second is not fired. $('#nmUsuario').on("dblclick",…
-
0
votes2
answers583
viewsA: click on table and load the information on the screen
I solved as follows. I created a function for the double click and call on each double click . That way it worked. Instead of using Document.ready I used a function being called from within the tag…
-
1
votes2
answers583
viewsQ: click on table and load the information on the screen
This is my table: <div class="col-md-13"> <table data-url="data1.json" data-height="500" data-sort-name="name" data-sort-order="desc" class="table table-striped table-bordered">…
-
3
votes1
answer624
viewsQ: Reload page with MVC
I made a function in the model and the call in the controller. Then, I go to jquery and the write command in the BD is successfully executed. It turns out, when I finish recording, the screen…
-
3
votes1
answer972
viewsQ: Set main page on IIS
When we deploy to IIS with an MVC 5 application, I need to set the homepage, right? In my case I have the folder Views => Home => Index.cshtml. In my case, I go to Default Document and how do…
-
2
votes1
answer135
viewsQ: Date with bootstrap does not run in my project
I need to place a component to select dates in a filter in my project. As I use bootstrap, I need to place dates with this component. It turns out the examples I picked up on the internet, I…
-
5
votes1
answer673
viewsQ: How I get the sql that Linq generates by debugging VS2013
How do I get the sql that Linq generates by debugging VS2013? How do I do this? I did it and it didn’t work public static List<MontaArvoreAcao> CriarListaArvoreUn(string _uf, string _cidade,…
-
0
votes1
answer73
viewsA: Difficulty in filtering information
I remembered that via jquery I do it. It’s already solved. Function..... $.ajax({ url: '/Controller/Action', ...... data: JSON.stringify({ _uf: $('#cbxUf').val(), _cidade: $('#cbxCidade…
-
1
votes1
answer66
viewsA: Linq does not return data. There is data in the table and I return by query
I solved it. I removed Distinctby() from the main LINQ. I still don’t understand the difference between Distinct and Distinctby. I have been looking for books about LINQ and Lambda and I haven’t…
-
0
votes1
answer66
viewsQ: Linq does not return data. There is data in the table and I return by query
I tried to make a LINQ very similar to my query. This is my query. select * from PDV where tipo_PDV = 'R' and UF = 'DF' and Cidade = 'BRASILIA-DF' This is my LINQ var resultado_rede_descricao =…
-
-1
votes1
answer73
viewsQ: Difficulty in filtering information
I know my problem is logical and it must come from me, I know, but sometimes a light, not a code ready, but the pointing of a path helps us a lot. 1) I have 6 Combobox in my View that make the…
-
-2
votes1
answer341
viewsQ: lambda expression gives conversion error
This is my lambda ring: public JsonResult CarregaDescricaoRede(string _tipo_rede, string _uf, string _cidade) { var resultado_rede_descricao = (from _pdv in db.PDV .Where(r => r.Tipo_PDV ==…
-
0
votes1
answer71
viewsQ: How do I delete this method
I can’t call the methods: DeleteOnSubmit and also the method: DeleteObject. See below my code and how I delete it. public static void deletaRuptura(int _idmotivo) { RupturaEntities db = new…
-
-1
votes2
answers809
viewsQ: Pass parameters via jquery to my model
I’ve always passed paramatros to my controller like this: url: '/Minha_Controller/Minha_Função', .... Now I need to pass parameters directly to My Model and I don’t know how to do it. I have this…
-
1
votes2
answers1731
viewsQ: I can’t restore my backup
I backed it up once and it all worked out. Now more tables, views w wtc have been created and I need to update the database. As the bank is at a network address and for security, we have no way to…
-
1
votes1
answer196
viewsA: How do I put a Count in a string that returns a list
I solved it like this. I created a field in my Model Montaarvoreacao, called Somatorio. Then in Brasili I did: Somatorio = gr. Count() My breath: var _listaPdv = ( from r in db.Ruptura join a in…
-
1
votes1
answer196
viewsQ: How do I put a Count in a string that returns a list
I need to make a count, for the following situation. See the image below, that I have repeated some pharmacies, see their CNPJ(066253003681 and 06626253001476). They are repeated because they are on…
-
5
votes1
answer1794
viewsQ: Only get user name in AD
With this code, I bring everything, Dominio/User. ViewBag.User = System.Security.Principal.WindowsIdentity.GetCurrent().Name; I would like to bring only the user name. I can take all this, and take…
-
1
votes1
answer54
viewsA: Linq brings result but does not obey Join
Solved. I made the differentiation in the View itself and now it worked. Look how it was: <ul> @foreach (var item in Model) { if (_motivo != @item.Motivo) { _idmotivo = @item.IDMotivo; <li…
-
1
votes1
answer54
viewsQ: Linq brings result but does not obey Join
We’re getting closer. With this code, it almost worked. Then I switched the Distinct() for DistinctBy() and did not repeat, but still not obeying the IDMotivo. What comes in Linnum does not match…
-
3
votes2
answers1101
viewsQ: Distinct in the Plains does not work
I did this Illumination on my model: public static List<MontaArvoreAcao> CriarListaArvoreAcao() { RupturaEntities db = new RupturaEntities(); var _listaUnidade = ( from r in db.Ruptura join a…
-
1
votes2
answers2031
viewsQ: Problems with types and conversions when filling a page
That is the mistake: An exception of type 'System.InvalidCastException' occurred in App_Web_fjskumyk.dll but was not handled in user code Additional information: Não é possível converter um objeto…