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 html
<?php defined('SYSPATH') or die('No direct script access.');
 
    #################################################################
    #    tsubasa/1.0 (ver. codename: 'tenshi no tsubasa')            #
    #    Developed by Philip Patrick Butkiewicz (Yuuki/Bagnz0r)        #
    #    (C) 2010 Philip Patrick Butkiewicz & G Data Software.        #
    #################################################################
    
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
July 21, 2010 @ 2:51am
Tags: xhtml, php
19 Views
no comments
 
C#
/* Usage 
string test1 = StripTags("<p>George</p><b>W</b><i>Bush</i>", new string[]{"i","b"});
string test2 = StripTags("<p>George <img src='someimage.png' onmouseover='someFunction()'>W <i>Bush</i></p>", new string[]{"p"});
string test3 = StripTags("<a href='http://www.dijksterhuis.org'>Martijn <b>Dijksterhuis</b></a>", new string[]{"a"});

*/
 
 
 
by tarasn   March 31, 2010 @ 9:21am
Tags: php html
27 Views
no comments
 
C#
// controller
public ActionResult Index([DefaultValue(1)] int page)
{
   if (Request.IsAjaxRequest())
      return PartialView("PagedDataControl", model.Data);
 
   return View(model);
}
 
// .aspx
by andreabalducci   March 30, 2010 @ 10:19am
87 Views
no comments
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head id="ctl00_Head1" profile="http://www.w3.org/2005/11/profile">
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.6.0/build/reset/reset-min.css" />
<link rel="shortcut icon" href="/favicon.ico" />
    <link href="/css/style.css" rel="stylesheet" media="screen,projection" type="text/css" />
   
<title></title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <meta name="description" content="" />
by vosti   March 26, 2010 @ 5:22am
54 Views
no comments
 
<span style="color:red">Hello</span> // makes font color red
<span style="font-family:Arial">Hello</span> // makes font type Arial
<span style="font-size:12px">Hello</span> //makes font size 12px
 
You can also use them in one place :
 
<span style="color:red;font-family:Arial;font-size:12px">Hello</span>
by Aaron   January 24, 2010 @ 3:11pm
Tags: html
39 Views
no comments
 
C#
public enum StyleConditions {
   IE6OrLess, IE7OrLess
}
 
public static class HtmlHelpers {
   #region Image
   public static string Image(this HtmlHelper helper, string route, string action, int id, int height, int width, int imageType,
      string altText, string cssClass) {
      var urlHelper = new UrlHelper(helper.ViewContext.RequestContext);
      var imageUrl = urlHelper.RouteUrl(route, new RouteValueDictionary(new {
by Richard Kimber   January 20, 2010 @ 1:16pm
423 Views
no comments
 
// tr => row and td => column
 
<table>
    <tr>
         <td><a href= "http://caknife.com"/>Hello</a></td>
         <td></td>
     <tr>
</table>
by Aaron   January 07, 2010 @ 9:39am
Tags: html
34 Views
no comments
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Html Template</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 
    <style type="text/css">
    
    </style>
    
by jwwishart   November 04, 2009 @ 7:32pm
190 Views
2 comments
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Redirect Link Using jQuery</title>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> 
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script>
    <script type="text/javascript">
        
        // Custom Library Function
        var Library = {
by jwwishart   November 04, 2009 @ 5:34pm
121 Views
no comments
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Simle Html Template</title>
 
    <script type="text/javascript">
        /*
         * jQuery JavaScript Library v1.3.2
         * http://jquery.com/
         *
by jwwishart   November 03, 2009 @ 9:01pm
257 Views
no comments
 
C#
public static string GetRowClass(this HtmlHelper helper, AtwoodPost.Models.Page page)
        {
            return page.IsActive ? GetRowClass(helper, page.ListIndex) : "inactive-row";
        }
by Rob Conery   August 31, 2009 @ 11:38pm
68 Views
no comments
 
C#
 
// Renders ANY control into HTML
public static string RenderControl(Control ctrl)
{
    StringBuilder sb = new StringBuilder();
    StringWriter tw = new StringWriter(sb);
    HtmlTextWriter hw = new HtmlTextWriter(tw);
 
    ctrl.RenderControl(hw);
    return sb.ToString();
by Groove Commerce   August 27, 2009 @ 11:32am
85 Views
no comments
 
C#
private const string blankTarget = "_blank";
private const string selfTarget = "_self";
 
/// <summary>
/// Open html page specified by Uri in specified target.
/// </summary>
/// <param name="uri"></param>
/// <param name="target">"_blank", "_self", "_top", "_parent", window or frame name.</param>
private static void openHtmlPage(Uri uri, string target) {
        if (String.Equals(target, selfTarget)) {
809 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