Skip to content

Instantly share code, notes, and snippets.

View mariobot's full-sized avatar
🔄
Working - Learning

Mario Botero mariobot

🔄
Working - Learning
View GitHub Profile
@mariobot
mariobot / IRepository.cs
Last active August 29, 2015 14:27
IRepository
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CodedHomes.Data
{
public interface IRepository<T> where T : class
{
@mariobot
mariobot / ChuletasDotNet.cs
Last active August 29, 2015 14:05
Chuletas .Net /*Pequeños conceptos y tips para desarrollar en .Net*/
//------------------------------ concatenar en el eval
<asp:Image ID="Image1" runat="server" ImageUrl='<%# "~/styles/images/" + Eval("value") + ".png"%>'
ToolTip='<%# Convert.ToDateTime(Eval("value")).ToString("dddd d, MMMM yyyy -- HH:mm:ss") %>' />
ImageUrl='<%# "~/fixed/showimage.aspx?img=" + Eval("im_image")%>'
ImageUrl='<%# Eval("im_image","~/fixed/showimage.aspx?img={0}")%>'
//----------------------------------- para dormir el proceso
Thread.Sleep(300); //en milisegundos