CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of ADO
C#
var conn = new SqlConnection(CONN_STR);
var cmd = new SqlCommand("Select * from Employee", conn);
conn.Open();
cmd.BeginExecuteReader(ar =>
    {
        int affected = cmd.EndExecuteNonQuery(ar);
        cmd.Dispose();
        conn.Dispose();
    }, null);
by bnaya   January 14, 2012 @ 2:10pm
Tags: APM, DAL, ADO
37 Views
no comments
 
<!DOCTYPE html>
<html lang="es">
<head>
    <title>Problema de Física en JS</title>
        <script type="text/javascript">
            //Problema a resolver
            document.write('<p>Sobre un cuerpo de 36 kg que se encuentra en reposo, se aplica una fuerza durante 7 segundos hasta que alcance una velocidad de 21 m/s. <br /> Calcular: <ol><li>Aceleración</li><li>Espacio</li><li>Fuerza aplicada</li><li>Peso</li></ol></p>');
            
            //Datos iniciales a tener en cuenta
            var vi = 0; //Velocidad inicial
142 Views
no comments
 
C#
#region Get entity set name             
public string GetEntitySetName(Type entityType)
{
  if (entityType == null)
    throw new ArgumentNullException("entityType");
 
  if (!entityType.IsSubclassOf(typeof(EntityObject)))
    throw new ArgumentException("Only subclasses of EntityObject are supported.", "entityType");
 
  return GetEntitySetNameInternal(entityType);
by Shimmy Weitzhandler   May 18, 2011 @ 8:13pm
619 Views
no comments
 
<?php include("menu.php"); ?>
by jkr03513   October 28, 2010 @ 8:32pm
184 Views
no comments
 
Como faço para listar os tipos enumerados de força mais fácil e dinâmica num ComboBox?
 
Essa foi a pergunta de uma grande amigo meu hoje. Confesso que não tinha muita idéia de como fazer. Imagine a situação:
 
type
TMeuTipo = (Tipo1, Tipo2, Tipo3, Tipo4, Tipo5);
 
Como fazer isso aparecer em um ComboBox?
Bem, podemos transformar isso em Strings e então adicioná-lo ao Combo, mais ou menos assim:
by Adriano Santos   August 27, 2010 @ 12:02pm
318 Views
no comments
 
C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Configuration;
 
using System.Data.OleDb;
using System.Data.SqlClient;
using System.Data;
by Matt Slay   March 03, 2010 @ 12:56pm
374 Views
no comments
 
 
procedure TForm1.SearchButtonClick(Sender: TObject);
var  HurricaneName: string;
begin
HurricaneName := HurricaneSearchBox.text;
with ADOQuery1 do begin
  Close;
  SQL.Text := 'SELECT * FROM Huracanes WHERE Huracanes.Nombre =' + tblname;
  Open;
end;
by Joel   November 30, 2009 @ 5:53am
Tags: sql, adoquery
121 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate