Skip to content

Instantly share code, notes, and snippets.

View JakubLinhart's full-sized avatar

Jakub Linhart JakubLinhart

View GitHub Profile
@JakubLinhart
JakubLinhart / Alternative.js
Created April 24, 2012 18:46
Script registration labyrinth – startup scripts and $find (alternative)
Sys.Application.add_init(function () {
setTimeout(function () {
alert($find('Control1'));
}, 0);
});
@JakubLinhart
JakubLinhart / Alternative.aspx
Created April 14, 2012 17:00
Script registration labyrinth – startup scripts and $find (alternative)
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Alternative.aspx.cs" Inherits="ScriptRegistrationLabyrinth.Alternative" %>
<!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 runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
@JakubLinhart
JakubLinhart / AsynchronousPostback.aspx
Created April 1, 2012 22:17
Script registration labyrinth – startup scripts and $find (asynchronous postback)
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AsynchronousPostback.aspx.cs" Inherits="ScriptRegistrationLabyrinth.AsynchronousPostback" %>
<!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 runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
@JakubLinhart
JakubLinhart / ScriptManagerRegistration.aspx
Created March 11, 2012 21:40
Javascript registration via ScriptManager
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ScriptManagerRegistration.aspx.cs"
Inherits="ScriptRegistrationLabyrinth.ScriptManagerRegistration" %>
<!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 runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
@JakubLinhart
JakubLinhart / ClientScriptRegistration.aspx
Created March 11, 2012 21:34
Javascript registration via ClientScript
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ClientScriptRegistration.aspx.cs"
Inherits="ScriptRegistrationLabyrinth.ClientScriptRegistration" %>
<!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 runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">