This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@* | |
Diese Funktion ist Notwendig um die JavaScript library zu referenzieren. Bitte | |
im <head> der Webseite integrieren | |
*@ | |
@helper Init() { | |
<script src="http://static.pe.studivz.net/Js/id/v2/library.js" | |
data-authority="platform-redirect.vz-modules.net/r" | |
data-authorityssl="platform-redirect.vz-modules.net/r" type="text/javascript"> | |
</script> | |
<link rel="stylesheet" type="text/css" href="http://static.pe.studivz.net/Js/id/v2/library.css"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@using System.Text.RegularExpressions; | |
@* | |
Code by Kamran Ayub, from his post at | |
http://www.intrepidstudios.com/blog/2009/2/10/function-to-generate-a-url-friendly-string.aspx | |
just added German special characters | |
*@ | |
@helper Generate( string title, int maxLength = 50 ) | |
{ | |
var slug = title.ToLower(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@{ | |
var db = Database.Open("Kontaktdaten"); | |
var kontakte = db.Query("SELECT * FROM Kontakte"); | |
} | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title></title> | |
<meta http-equiv="X-UA-Compatible" content="IE=8" /> | |
<script type="text/javascript" src="bootidb.js"></script> | |
<script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.4.min.js"></script> | |
<script type="text/javascript"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="de"> | |
<head> | |
<meta charset="utf-8" /> | |
<title></title> | |
</head> | |
<body> | |
<article> | |
Dies ist ein Text der im Browser angezeigt werden soll. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@{ | |
Layout = "~/_SiteLayout.cshtml"; | |
Page.Title = "About My Site"; | |
} | |
<p> | |
This web page was built using ASP.NET Web Pages. For more information, visit the | |
<a href="http://www.asp.net">ASP.NET homepage</a>. | |
</p> | |
@if( WebSecurity.IsAuthenticated ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@functions | |
{ | |
public const string DatabaseName = "[DATENBANK-NAME-HIER-EINGEBEN]"; | |
public const string TableGuestbook = "Guestbook"; | |
public static string Result = string.Empty; | |
public static void InitializeDatabase() | |
{ | |
var database = Database.Open(DatabaseName); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@functions { | |
private static bool IsParam(string parameter) | |
{ | |
if( !string.IsNullOrEmpty( parameter ) ) | |
{ | |
return true; | |
} | |
else | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@helper ShowPosition(string outputElementId, string triggerElementId) | |
{ | |
<script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.5.1.min.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
$(document).ready( function() { | |
$("#@triggerElementId").click(function() { | |
if (navigator.geolocation) | |
{ | |
navigator.geolocation.watchPosition( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>HTML5 Video Demo</title> | |
<script type="text/javascript"> | |
var MAX_FRAMES = 9; | |
var PREVIEW_FACTOR = 6; | |
var currentFrame = 1; | |
document.addEventListener("DOMContentLoaded", createVideoPreview ); |
OlderNewer