document.write("<div class=\"pastie\">\n");
document.write("  <link href=\"http://pastie.org/stylesheets/embed.css\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />\n");
document.write("  <link href=\"http://pastie.org/stylesheets/clean.css\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />\n");
document.write("  \n");
document.write("\n");
document.write("  \n");
document.write("  \n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("	\n");
document.write("	<div class=\"allcode\">\n");
document.write("		<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n");
document.write("		<tr>\n");
document.write("			<td>\n");
document.write("				\n");
document.write("				<pre class=\"textmate-source-numbers\">1\n");
document.write("2\n");
document.write("3\n");
document.write("4\n");
document.write("5\n");
document.write("6\n");
document.write("7\n");
document.write("8\n");
document.write("9\n");
document.write("10\n");
document.write("11\n");
document.write("12\n");
document.write("13\n");
document.write("<\/pre>\n");
document.write("			<\/td>\n");
document.write("		<td>\n");
document.write("		<pre class=\"textmate-source\"><pre class=\"sunburst\"><span class=\'keyword keyword_other keyword_other_special-method keyword_other_special-method_ruby\'>protected<\/span> void <span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>Button1_Click<\/span>(object sender, <span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>EventArgs<\/span> e)\n");
document.write("{<span class=\'meta meta_syntax meta_syntax_ruby meta_syntax_ruby_start-block\'><\/span>\n");
document.write("var query <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> (from p <span class=\'keyword keyword_control keyword_control_ruby\'>in<\/span> rptPeople.<span class=\'support support_class support_class_ruby\'>Items<\/span>.<span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>OfType<\/span><span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&lt;<\/span><span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>RepeaterItem<\/span><span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&gt;<\/span>()\n");
document.write("                  let o <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> p.<span class=\'support support_class support_class_ruby\'>Controls<\/span>[<span class=\'constant constant_numeric constant_numeric_ruby\'>1<\/span>] as <span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>RadioButton<\/span>\n");
document.write("                  let hid <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> p.<span class=\'support support_class support_class_ruby\'>Controls<\/span>[<span class=\'constant constant_numeric constant_numeric_ruby\'>3<\/span>] as <span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>HiddenField<\/span>\n");
document.write("                  where o.<span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>Checked<\/span>\n");
document.write("                  select <span class=\'keyword keyword_other keyword_other_special-method keyword_other_special-method_ruby\'>new<\/span>\n");
document.write("                  {<span class=\'meta meta_syntax meta_syntax_ruby meta_syntax_ruby_start-block\'><\/span>\n");
document.write("                        <span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>GivenName<\/span> <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> o.<span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>Text<\/span>,\n");
document.write("                        <span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>UniqueId<\/span> <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> hid.<span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>Value<\/span>\n");
document.write("}).<span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>Single<\/span>();\n");
document.write("<span class=\'support support_class support_class_ruby\'>Response<\/span>.<span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>Write<\/span>(query.<span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>UniqueId<\/span>);\n");
document.write("}\n");
document.write("<\/pre><\/pre>\n");
document.write("		<\/td>\n");
document.write("		<\/tr>\n");
document.write("		<\/table>\n");
document.write("	\n");
document.write("	<\/div>\n");
document.write("\n");
document.write("\n");
document.write("  \n");
document.write("  \n");
document.write("  <div class=\"credit\">\n");
document.write("    <div class=\"buttons\">\n");
document.write("      <a href=\"http://pastie.org/pastes/701064.txt\">\n");
document.write("      <img src=\"http://pastie.org/images/view.png\" height=\"20\" width=\"67\" /><\/a>\n");
document.write("    <\/div>\n");
document.write("  \n");
document.write("    <a href=\"http://pastie.org/701064\">Pastie #701064<\/a> linked directly from <a href=\"http://pastie.org/\">Pastie<\/a>.\n");
document.write("  <\/div><\/div>");

