Posts by Dorathoto • 7,426 points
252 posts
-
1
votes2
answers609
viewsQ: manipulating Datatables.net data with Json [like manipulating json to display img in the column]
I am mounting a table with the JS framework Datatables I process the data via Server-side through the JSON in the first column I would like to display a photo,the name of this photo comes via JSON.…
-
2
votes2
answers84
viewsA: Return the path value
using System.IO; // manipular de diretorios DirectoryInfo dirInfo = new DirectoryInfo(@"C:\Documents and Settings\etc\etc "); // procurar arquivos …
-
1
votes1
answer49
viewsA: Control with Htmlcontrol or Htmlgenericcontrol inside Gridview
I found out with my own question. HtmlGenericControl icon = (HtmlGenericControl)e.Row.FindControl("icon_Nuvem"); Then I do the check I want and add the style itself and do not call an existing…
-
0
votes1
answer49
viewsQ: Control with Htmlcontrol or Htmlgenericcontrol inside Gridview
I have an html tag inside a gridview: <asp:GridView ID="GridView1" runat="server" ...etc..etc <i class="fa fa-cloud-upload fa-lg cinza" runat="server" id="icon_Nuvem"></i> ... When…
-
0
votes1
answer197
viewsA: Strange error on screen, debug does not show nda
I discovered the mistake. missing in the entity put [Serializable] But the strange thing is that I believe this mistake should be something like: Não foi possível seriarializar ou o objeto não é…
-
0
votes1
answer197
viewsQ: Strange error on screen, debug does not show nda
In Webform, this giving some error, that when debugging in Visual Studio (F5) it does not accuse any error, but when it comes out the result on the screen would be like an internal error(500)…
-
2
votes1
answer49
viewsQ: Static does not share values between web users
It is possible to use a property static without sharing values between different users? Sort of like Session? Ex: of the scenario: private static double valorRetorno; public CalculaValor() {…
-
2
votes1
answer31
viewsQ: Urlrewrite for photo name - Web
Today have the urls of my website images as: /images/tb/1280077_894mvzfxoojqb.jpg I would like to be able to rename this to the generated HTML Apartamento_em_SaoPaulo.jpg or something similar.…
-
3
votes2
answers5074
viewsA: Encoding ASP Classic
Always encode in UTF-8 never in ANSI. ASP Classic code: Response.AddHeader "Content-Type", "text/html;charset=UTF-8" Response.CodePage = 65001 Response.CharSet = "UTF-8 If you want the HTML code it…
-
5
votes2
answers296
viewsQ: How to make a LINQ/lambda and consume it in the view?
I have an object called Radio: public class Radio { public int RadioId { get; set; } public string StreamUrl { get; set; } public bool Ativo { get; set; } public bool Mp3 { get; set; } } I’m doing a…
-
3
votes1
answer152
viewsQ: Substring(string.Indexof) is returning unwanted parts
I’m capturing a music site. I would like to return only 2 artist information and the music. She is in this code snippet: <div class="nowOnAir"> <a…
-
1
votes1
answer135
viewsQ: filter jQuery.getJSON results
I’m making a jQuery.getJSON at the url http://api.vagalume.com.br/search.php And should JSON return: {"type":"notfound"} or {"type":"song_notfound","art":{"id":"3ade68b7ga05f0ea3","name":"William…
-
3
votes2
answers625
viewsQ: Read an XML in another domain
is it possible to read an xml in another domain? ex: http://mfmradio.fr/winradio/prog10.xml?player201507291645 did the code: <script type="text/javascript"> var i; var timer,timeout2;…
-
2
votes2
answers1891
viewsQ: json search with ajax in specific field
How to search for data in a JSON with AJAX ? I want to search a JSON field named tag and show another field (title and url) in a div. HTML: <div class="Minimizado top-menu-invisible hidden-mobile…
-
0
votes1
answer339
viewsQ: Create search tags for Select2
I’m using the library Select2. I’ll use it to search for help pages, but I need it to search for tags and not just for text in Option ex: Today: <optgroup label="Mountain Time Zone">…
-
0
votes1
answer53
views -
0
votes1
answer53
views -
2
votes2
answers576
viewsQ: @If inside a <body> tag
How to put a condition if within a tag <body>? While trying to make: @if (Request.Path.Substring(Request.Path.LastIndexOf("/") + 1).ToLower() == "default") { <body class="home" } else {…
-
2
votes2
answers207
views -
3
votes2
answers680
viewsQ: Submit button even when cancel
I have a button in ASP.NET webForm and even clicking cancel it sends the Submit. Example in Fiddle http://jsfiddle.net/dorathoto/qywvuhvq/ $(function () { $("[name='chk_IDDel']").change(function ()…
-
3
votes2
answers945
viewsQ: Bootstrap grid for form
How can I do a line break on a grid using bootstrap For mine is staying in columns to the right instead of falling, even if the sum of 12 columns Ivs. I believe I’m making mistakes and not…
-
1
votes2
answers1947
viewsA: iframe alternatives
Option 1 <embed src="noticia.html" width=100 height=100 /> Works, but according to W3C is for interactive content or media Option 2 Through Xmlhttprequest and post the content in a div.…
-
3
votes1
answer485
viewsQ: Upload system with rotate image automatically as in windows 8.1 or facebook
Today when viewing an image in windows 8.1 even if the image is lying down it automatically understands and shows correctly, in windows 7 appears the picture lying down. When sending this image to…
-
0
votes1
answer49
viewsQ: Wordpress content page, how to edit
I want to change the page that displays the content when you click on a post, the article itself. I want to put on this page a block of ads from Google Adwords and put a <div> and a PHP block.…
-
0
votes2
answers550
viewsQ: Check which page accessed previously and if positive display something
I need to make a check, that if the source is not coming from facebook with. cannot display a particular code. Only people who come from facebook with. you may see a certain code, if it comes from…
-
2
votes1
answer209
viewsQ: IF in Storedprocedure within a select, remove sp_executesql @query
I have a Storedprocedure that unfortunately only because of an IF has ceased to be a select and turned everything into a VARCHAR statement and then I run it, losing one of the main benefits of MSSQL…
-
2
votes1
answer46
viewsQ: Replace in Date inside a FOR
I want to return the last 12 months, the day should come as 01 and need month and year. ex: 2014-12-01 2014-11-01 NOTE: I put yyyy-mm-dd only by a pattern of mine. I’m doing like this: DECLARE…
-
1
votes1
answer1165
viewsA: Using Data Annotations to validate fields from an HTML page and Web API
First Dataannotation is the properties that lie on top of the fields of your model ex: [Required] [Display(Name = "User name")] [EmailAddress(ErrorMessage = "E-mail em formato inválido.")] A simple…
-
1
votes3
answers249
viewsA: How do you make sure the person who used the system is really her?
It is necessary to know how hardcore you want to be to really ensure that he is certain person. CASE 01: in a vote really needs to be it. Solution: Biometric Reader. CASE 02: Access to a page…
-
1
votes2
answers269
viewsQ: Regular Expression does not work correctly on webform
I have the following field and validator in ASP.NET Webform <asp:TextBox ID="txt_Senha" runat="server" CssClass="form-control" placeholder="Senha" TextMode="Password"…
-
0
votes3
answers5507
viewsQ: Comparing 2 password fields if they are equal
I have a password field and confirm password, I want to check if both are equal. NOTE: There is an OFF autocomplete for the email field $(document).ready(function () {…
-
0
votes2
answers254
viewsA: Retrieve part of a string (split or index)
I got through the link maniero string nome_dir = fileinfo.DirectoryName; string[] Valores = nome_dir.ToString().Split(new char[] { '\\' }); var palavra = Valores[7]; I think with regular expression…
-
1
votes2
answers254
viewsQ: Retrieve part of a string (split or index)
I have a folder structure like this: bco_img/3/foto_produto/ bco_img/3/foto_produto/tb/ bco_img/4/foto_produto/ bco_img/4/foto_produto/tb/ etc... I want to recover the folder /3/ after /4/ and also…
-
0
votes1
answer1269
viewsQ: Could not load file or Assembly '.. ' or one of its dependencies. - Add a blank space on web.config back to work for hours
I have an administrative panel made in webform Asp.net C#. For a few days now, it started giving problems of the type Could not load file or assembly 'chat_megacorretor.dll' or one of its…
-
0
votes2
answers405
viewsA: Map path of another Project
That images folder is in which location before your Asp code ? ex: root/ /arquivo.asp /Imagens/ if that’s the case, just diretorio = Server.MapPath("Imagens/") now if you were like this: root/ /etc/…
-
3
votes2
answers83
views -
3
votes2
answers83
views -
4
votes1
answer2742
viewsQ: Disable <Asp:Button after being clicked
Project in: Webform, C#, ASP.net I need to disable the button after being clicked. Today it is like this: <asp:Button ID="btn_Enviar" runat="server" CssClass="btn btn-primary" Text="Enviar"…
-
3
votes2
answers4848
viewsA: Time format: 12 vs. 24
Where the software is to be specified. Basing that the question is in Portuguese and to end this question. Brazil and Portuguese use 24h instead of 12h. Soon the best option is 13:00…
-
2
votes2
answers1050
viewsQ: Orphan records , checking in another table
I have a table of photos: tbl_fotos int_ID (Pk, int) int_IDProduto (int) str_foto (varchar(40)) and a table for products tbl_produtos int_ID (PK, int) I want to know how many photos there are…
sql-serverasked Dorathoto 7,426 -
2
votes1
answer2200
viewsQ: Check if you have any checkbox checked and enable button
How to do in Jquery, a function that checks if there is any checkbox selected, if there is one it enables the delete button, if there is more than 1 it puts the text in the plural. I made the…
-
3
votes3
answers28024
viewsA: SUBSELECT vs. INNER JOIN
According to the standard **Ansi 92** the correct is to use inner join instead of sub-query. Not so much for performance as for standardization. But I believe that the SQL engine is a little more…
-
1
votes1
answer53
viewsA: @Html.Partial in Webform
discovered. Web Form User Control, so you can insert a new html into an existing masterpage
-
0
votes1
answer53
viewsQ: @Html.Partial in Webform
Is there a way in Webform to use multiple @Html.Partial ? example the menu being a master page, the top another master page, the footer another master page? I know there is a Nestedmasterpage but if…
-
2
votes1
answer56
viewsQ: recover text from onmouseover statusbar
It is possible to recover text from status bar? on Windows.Form on VB6 could. I wonder if in C# it would be possible
-
3
votes2
answers9506
viewsQ: Validate Radiobutton with jQuery
I would like to do a validation via jQuery, to know if the client has selected some RadioButton Jsfiddle Demo It displays an Alert if it has not selected, but it still sends (submited), it should…
-
3
votes1
answer2344
viewsA: Change style of Windows Forms window
use dll System.Windows.Forms.Ribbon35.dll and at startup: private void InitializeComponent() { ribbon1 = new System.Windows.Forms.Ribbon(); this.components = new System.ComponentModel.Container();…
-
3
votes1
answer1021
viewsQ: Select [with aggregated functions] group by in Lambda
How do I convert the following select SELECT TOP (60) COUNT(*) AS QTD, SUM(Duration) AS Total, AVG(Duration) AS Media, MIN(Duration) AS Menor, LEFT(TextData, 80) AS TextData FROM Traces WITH…
-
6
votes2
answers3232
viewsQ: Limiting text in CKEDITOR
I’m trying to make a character limiter in Ckeditor, but I couldn’t find any way, <textarea> does not work when using CKEDITOR. I tried using the wordcounter plugin which now looks like only…
-
2
votes1
answer380
viewsA: Write file in . ASP with JAVASCRIPT conditions
The Problem: <script> if(1==2) { alert('entrou na condicao 1'); <% Response.Write("ASP: condicao01") %> } else { alert('entrou na condicao 2'); <% Response.Write("ASP: condicao02")…