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"
19 Views
no comments
/* 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"}); */
27 Views
no comments
// controller public ActionResult Index([DefaultValue(1)] int page) { if (Request.IsAjaxRequest()) return PartialView("PagedDataControl", model.Data); return View(model); } // .aspx
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="" />
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>
39 Views
no comments
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 {
423 Views
no comments
// tr => row and td => column <table> <tr> <td><a href= "http://caknife.com"/>Hello</a></td> <td></td> <tr> </table>
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>
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 = {
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/ *
257 Views
no comments
public static string GetRowClass(this HtmlHelper helper, AtwoodPost.Models.Page page) { return page.IsActive ? GetRowClass(helper, page.ListIndex) : "inactive-row"; }
68 Views
no comments
// 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();
85 Views
no comments
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
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
