Posts by Marconi • 17,287 points
267 posts
-
6
votes1
answer162
viewsQ: Is there any risk of submitting form with HTML?
When inserting the text: Em 19 de maio de 2015 16:48, <asdfsadf> escreveu: and send the form I generated the following error: A potentially Dangerous Request.Form value was Detected from the…
-
2
votes2
answers738
viewsA: Create a link that when clicked caught your text
My suggestion is that you already preload your link by passing the values to the method Seleciona. See Working: $(function () { $('#tbl').append("<tr class=\"corpoTbl\"> <td…
-
3
votes2
answers207
viewsA: Program to show and hide in Javascript
Simplifying your code pass your div id in the method parameter mostraand esconde. <html> <!DOCTYPE html> <html> <body> <script type="text/javascript"> function…
javascriptanswered Marconi 17,287 -
50
votes4
answers82876
viewsQ: Not IN or Not EXISTS which to use?
I’ve seen some answers here with the use Not In and some with the use of Not Exists to answer the same question. I don’t know the difference between the two and would like to know about: Which of…
-
0
votes1
answer823
viewsA: Chart highcharts does not appear
Look if it can help you the code below. I only added the Jquery Reference. $(function () { Highcharts.data({ csv: document.getElementById('tsv').innerHTML, itemDelimiter: '\t', parsed: function…
-
2
votes1
answer1978
viewsA: how to open a json and popular file in a jquery datatable?
You can use the $.getJSON jquery to retrieve data. var url = "http://www.scarsphoto.com.br/teste/teste.json"; $.getJSON(url, function (data) { popularDataTables(data.d); }); Xmlhttprequest cannot…
-
7
votes1
answer1432
viewsA: How to get a List<string> C# and send to a JS variable?
You can use the $.Ajax jquery. Add the Jquery reference on your page, preferably at the end of the body as explained in this question. Access script to the C method# $(function () { $.ajax({ url:…
-
1
votes1
answer111
viewsQ: How to plot a Stackedcolumn100 chart?
I’m returning a bank query for a DataTable and using it to Json. I use the following method to Serialize my Datatable for Json. public static string ConvertDataTabletoString(DataTable dt) {…
-
4
votes1
answer4600
viewsA: How to leave the first Option disabled and selected?
Select2 is not javascript but a plugin using Jquery. Take a look at how you will have to put the scripts and Css below. <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">…
-
1
votes1
answer44
viewsA: Return data from one table if it does not exist in another
From what I understand you can use the ISNULL function. ISNULL(estabelecimento.email,usuario.email) Look if the link below can help you. https://msdn.microsoft.com/pt-br/library/ms184325.aspx…
-
0
votes1
answer723
viewsA: Store list in Viewstate
If you want to use this information on another page you should use the session and not the viewState, Viewstate keeps the information only on the page you are on. Use Session as follows. Assigning…
-
3
votes1
answer1048
viewsA: Pass an input value to an object array
You can do it like this: var objeto= new Object(); objeto.nome = $('#username').val(); objeto.senha = $('#password').val(); And if you need to create a JSON just have the object serialized. var json…
-
5
votes2
answers2205
viewsA: Send javascript object to php
You could Serialize an object for 'Json' and in php deserialize it. $(document).on("click", "#btn_cadastra_corretor", function(e) { e.preventDefault(); var objeto = new Object(); objeto.nome =…
-
1
votes3
answers1148
viewsA: Take a variable value from Sql Server
So I understand you want the result of your dynamically generated Query. If so, try instead of print. exec(@QueryString)
-
21
votes3
answers1556
viewsQ: SQL in the code or in the database?
I’m having a big doubt about where I should put mine query SQL, whether in code or bank. Currently I have a Procedure which is mounted according to the parameters I have, ie, filtros. Procedure…
-
17
votes2
answers618
viewsQ: How can we not allow indexing by search engines?
Those days I put my domain in Google and he got my Web Site and my System. I wish my System was hidden from Google and any other search engine. You could do that? And how to get indexing already…
-
70
votes3
answers204336
viewsQ: What is the difference between asynchronous and synchronous communication?
I’ve heard a lot about asynchronous and synchronous communication, but I don’t know what they really are. Could someone explain to me what the difference and how each one works? When and what should…
-
3
votes2
answers3515
viewsA: Remove more than one item from an array
The first parameter is the parti from which Dice will start to be removed, and the second how many positions will be removed. In my example I’m saying: Remove 1 element from position 1. See working:…
-
3
votes1
answer1236
viewsA: Help - C# how to update combobox? type autocomplete
At friend’s request @Luisfelipemicaidejesus I will put an example using autoComplete. <asp:TextBox ID="txtPesquisarHipotese" runat="server" Width="300px"></asp:TextBox>…
-
2
votes3
answers430
viewsA: Creating a table in html
You can use the colspan. colspan server to join more than one column. An example here.
-
1
votes2
answers199
viewsA: Block Control+V in dynamically generated Textbox fields
I got it by "class" as follows. $(function () { $(".numero").live('paste', function (e) { e.preventDefault(); }); });
-
3
votes2
answers199
viewsQ: Block Control+V in dynamically generated Textbox fields
I have a GridView where I have some TextBox that are generated according to the total lines of the same. I’d like to block the Control+V in all the TextBox. Use the Jquery 1.4, and from what I read…
-
2
votes2
answers508
viewsQ: What’s the difference between App.conf and Web.conf?
What is the difference between the App.conf and the Web.conf?
-
1
votes1
answer156
viewsA: Use jquery to control scrolltop
Look if it can help you. $(document).ready(function () { $(window).scroll(function () { if ($(this).scrollTop() > 31) { $(".menuFixo").css("top", "0"); }else { $(".menuFixo").css("top", "31px");…
-
1
votes2
answers1260
viewsQ: Consume Webservice from an external link
While consuming a webservice an external URL via the link in the browser http://api.postmon.com.br/v1/cep/30640-240 returns the following JSON message: {"complement": "from 9201 to the end -…
-
6
votes1
answer569
viewsA: How to iterate over a JSON file to appear in the Auto Complete listing?
Use JSON.parse(data.d) to turn your JSON into a list of objects and interact over it with the function $.map. The sucess ajax should look like this: success: function (data) { var dados =…
-
3
votes2
answers2810
viewsA: How to call a javascript function from an external file?
Remove the <%= %>. The <%= takes elements that are from the Server. If your Javascript function was directly on the page it would work. Put it that way and it will work:…
-
2
votes1
answer820
viewsA: Problems hiding/displaying div with Javascript
UpdatePanel is an update of a piece of the screen. If only a piece of the screen is updated you end up losing your Javascript/Jquery, losing the function that your Dropdown performs, take a read…
-
7
votes2
answers24802
viewsQ: Click on the Enter key
Could someone help me put the button click on the key Enter using Javascript or Jquery?
-
1
votes1
answer1041
viewsQ: How to create a Lambda expression with Group by and Order By
I’m having trouble creating a Lambda sentence with Group by and Order By Together. How to group by column Scope and Idescope, and sort by Idescope. Segue Sentença. public static List<Escopos>…
-
1
votes2
answers1253
viewsA: How to prevent duplicate registration/name change/social reason
Look what I would do in this case is put in the field of your table it as Constraint, so the bank didn’t let you enter a record with the same value. It would give you an error. You can catch this…
-
2
votes2
answers1179
viewsA: Insert image into SQL database SERVER2008 using image path
I recommend sending the image to a folder on the server, and in the database save only the address of that folder. Sending: if (Arquivo.HasFile) { if…
-
11
votes1
answer1783
views -
2
votes3
answers698
viewsQ: Unit tests with Nunit
I just installed in my project the "Nunit" for unit testing. Installed via Nuget, on the VS2013 console. I put the notes on top of my methods I went on Explorer test and gave a "Run ALL". This "Run…
-
1
votes1
answer2032
viewsQ: Exclusion of records in cascade tables
I have a "Terms" table that your ID is FK from "Thermosexpresso". As shown in the figure below. When I run the command "delete Terms Where Idtermo = 4" sql generates me the following error. The…
-
1
votes1
answer2518
viewsQ: Create function that returns random numbers in C
I need to create a function that returns random numbers without repetition between 2 intervals. I wanted to create a kind of a card game, where the cards are shuffled, and when they return they…
-
2
votes1
answer187
viewsQ: Button is triggered even disabled, what to do?
I have a linkButton that is disabled via server, so: lkExcluir.Enabled = false; Code: <asp:LinkButton ID="lkExcluir" runat="server" Text="[Excluir]" Font-Bold="true" OnClick="lkExcluir_Click"…
-
4
votes1
answer728
viewsQ: Error inserting Apostrophe in component using Auto Complete
I’m having trouble inserting the ' Apostrophe when I’m going to search for the component AutoComplete of Jquery UI. Jquery $("#<%=txtHipotePai.ClientID%>").autocomplete({ source:…
-
2
votes3
answers1146
viewsQ: How to stop running $.map?
How do I stop function execution $.map when a condition of if is true? With for I would wear a break thus: for (int i = 0; i < count; i++){ if (true) break; } And in function $.map jquery, as it…
-
1
votes1
answer533
viewsQ: How to make a lambda in?
I have a function convertStringListaInt parameter String. Example : String: 1,2. I’m converting this string into a List of the kind convertStringListaInt_Result owned by number(whole). How can I…
-
1
votes1
answer509
viewsQ: Problem going to the server when loading tinymce component
When I enter information into the tinymce component and click on any button that submits the form has generated the error. Error in Javascript runtime:…
-
4
votes2
answers5600
viewsQ: The underlying connection was closed: Unexpected error on a receipt
I have a web site that communicates with a WCF. This Wcf communicates with my "DAO" which is a Library class where I have the.edmx model for access to the bank. I referenced my DAO on WCF, and my…
-
3
votes1
answer569
viewsQ: How to iterate over a JSON file to appear in the Auto Complete listing?
I’m making an autocomplete, via AJAX, that enters the web service, "Search in the Database" and returns me a String in the format JSON. I have to transform the JSON below in a list to iterate on it.…
-
8
votes2
answers9392
viewsQ: Serialize object list for JSON: A circular Reference was Detected while serializing an Object of type
I’m trying to Serialize a list of objects to Json and have received the following error: An Exception of type 'System.Invalidoperationexception' occurred in Microsoft.Web.Extensions.dll but was not…
-
2
votes1
answer197
viewsQ: Update Entity framework version
I just upgraded my version of . Net 3.5 to 4.5.1. My Entity Framework was in version 3.5, I wanted to know if it already updates to the newer version after the exchange of framework.…
-
4
votes1
answer1812
viewsA: How to consume an "asmx" Webservice via Jquery Ajax
From all the research and the @Tiagosilva tips, I found that the annotation [System.Web.Script.Services.ScriptService] It was commented, that’s why the script did not consume the webservice.…
-
4
votes1
answer1812
viewsQ: How to consume an "asmx" Webservice via Jquery Ajax
I created a button that calls the search method Ajax to consume a Web Service Asxm. Because the Ajax does not consume the Web Service? <asp:Button ID="btnPesquisar" runat="server"…
-
1
votes1
answer96
viewsQ: Persist data in Profilecommon
I created a website. Asp.net C# I added in my web config this way <authentication mode="Forms" > <forms loginUrl="principal.aspx" name=".ASPXFORMSAUTH" /> </authentication>…
-
0
votes1
answer1053
viewsQ: Compiler Error Message: CS0433
Someone can help me with this mistake, I’m trying to create a profile with Profilecommon Build Error Description: Error when compiling a resource needed to meet this request. Examine the specific…
-
0
votes1
answer32
viewsQ: Problem when creating Profilecommon
I have the following problem when creating my profile, someone can help me in what may be happening? My web Config is configured as follows. <profile…