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("14\n");
document.write("15\n");
document.write("16\n");
document.write("17\n");
document.write("18\n");
document.write("19\n");
document.write("20\n");
document.write("21\n");
document.write("22\n");
document.write("23\n");
document.write("24\n");
document.write("25\n");
document.write("26\n");
document.write("27\n");
document.write("28\n");
document.write("29\n");
document.write("30\n");
document.write("31\n");
document.write("32\n");
document.write("33\n");
document.write("34\n");
document.write("35\n");
document.write("36\n");
document.write("37\n");
document.write("38\n");
document.write("39\n");
document.write("40\n");
document.write("41\n");
document.write("42\n");
document.write("43\n");
document.write("44\n");
document.write("45\n");
document.write("46\n");
document.write("47\n");
document.write("48\n");
document.write("49\n");
document.write("50\n");
document.write("51\n");
document.write("52\n");
document.write("53\n");
document.write("54\n");
document.write("55\n");
document.write("<\/pre>\n");
document.write("			<\/td>\n");
document.write("		<td>\n");
document.write("		<pre class=\"textmate-source\"><pre class=\"sunburst\">using <span class=\'support support_class support_class_ruby\'>System<\/span>.<span class=\'support support_class support_class_ruby\'>Collections<\/span>.<span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>Generic<\/span>;\n");
document.write("using <span class=\'support support_class support_class_ruby\'>System<\/span>.<span class=\'support support_class support_class_ruby\'>Web<\/span>.<span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>Mvc<\/span>;\n");
document.write("\n");
document.write("namespace <span class=\'support support_class support_class_ruby\'>RadioButton<\/span>.<span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>Controllers<\/span>\n");
document.write("{<span class=\'meta meta_syntax meta_syntax_ruby meta_syntax_ruby_start-block\'><\/span>\n");
document.write("    <span class=\'keyword keyword_other keyword_other_special-method keyword_other_special-method_ruby\'>public<\/span> <span class=\'keyword keyword_control keyword_control_ruby\'>class<\/span> <span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>RadioListController<\/span> : <span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>Controller<\/span>\n");
document.write("    {<span class=\'meta meta_syntax meta_syntax_ruby meta_syntax_ruby_start-block\'><\/span>\n");
document.write("        <span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>/<\/span><span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'><\/span><span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>/<\/span>\n");
document.write("        <span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>/<\/span><span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'><\/span><span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>/<\/span> <span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>GET<\/span>: <span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>/<\/span><span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>RadioList<\/span><span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>/<\/span>\n");
document.write("\n");
document.write("        <span class=\'keyword keyword_other keyword_other_special-method keyword_other_special-method_ruby\'>private<\/span> <span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>List<\/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\'>RadioOption<\/span><span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&gt;<\/span> listRadionOption;\n");
document.write("\n");
document.write("        <span class=\'keyword keyword_other keyword_other_special-method keyword_other_special-method_ruby\'>public<\/span> <span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>RadioListController<\/span>()\n");
document.write("        {<span class=\'meta meta_syntax meta_syntax_ruby meta_syntax_ruby_start-block\'><\/span>\n");
document.write("            listRadionOption <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> <span class=\'keyword keyword_other keyword_other_special-method keyword_other_special-method_ruby\'>new<\/span> <span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>List<\/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\'>RadioOption<\/span><span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&gt;<\/span>();\n");
document.write("            listRadionOption.<span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>Add<\/span>(<span class=\'keyword keyword_other keyword_other_special-method keyword_other_special-method_ruby\'>new<\/span> <span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>RadioOption<\/span>(<span class=\'constant constant_numeric constant_numeric_ruby\'>1<\/span>, <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;name1&quot;<\/span>));\n");
document.write("            listRadionOption.<span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>Add<\/span>(<span class=\'keyword keyword_other keyword_other_special-method keyword_other_special-method_ruby\'>new<\/span> <span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>RadioOption<\/span>(<span class=\'constant constant_numeric constant_numeric_ruby\'>2<\/span>, <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;name2&quot;<\/span>));\n");
document.write("            listRadionOption.<span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>Add<\/span>(<span class=\'keyword keyword_other keyword_other_special-method keyword_other_special-method_ruby\'>new<\/span> <span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>RadioOption<\/span>(<span class=\'constant constant_numeric constant_numeric_ruby\'>3<\/span>, <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;name3&quot;<\/span>));\n");
document.write("        }\n");
document.write("\n");
document.write("        <span class=\'keyword keyword_other keyword_other_special-method keyword_other_special-method_ruby\'>public<\/span> <span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>ActionResult<\/span> <span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>Create<\/span>(string valueOfRadio)\n");
document.write("        {<span class=\'meta meta_syntax meta_syntax_ruby meta_syntax_ruby_start-block\'><\/span>\n");
document.write("            <span class=\'support support_class support_class_ruby\'>ViewData<\/span>[<span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;valueOfRadio&quot;<\/span>] <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> valueOfRadio;\n");
document.write("            <span class=\'keyword keyword_control keyword_control_pseudo-method keyword_control_pseudo-method_ruby\'>return<\/span> <span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>View<\/span>(listRadionOption);\n");
document.write("        } \n");
document.write("\n");
document.write("        <span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>/<\/span><span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'><\/span><span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>/<\/span>\n");
document.write("        <span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>/<\/span><span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'><\/span><span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>/<\/span> <span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>POST<\/span>: <span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>/<\/span><span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>RadioList<\/span><span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>/<\/span><span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>Create<\/span>\n");
document.write("\n");
document.write("        [<span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>AcceptVerbs<\/span>(<span class=\'support support_class support_class_ruby\'>HttpVerbs<\/span>.<span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>Post<\/span>)]\n");
document.write("        <span class=\'keyword keyword_other keyword_other_special-method keyword_other_special-method_ruby\'>public<\/span> <span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>ActionResult<\/span> <span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>Create<\/span>(int radio)\n");
document.write("        {<span class=\'meta meta_syntax meta_syntax_ruby meta_syntax_ruby_start-block\'><\/span>\n");
document.write("            try\n");
document.write("            {<span class=\'meta meta_syntax meta_syntax_ruby meta_syntax_ruby_start-block\'><\/span>\n");
document.write("                <span class=\'keyword keyword_control keyword_control_pseudo-method keyword_control_pseudo-method_ruby\'>return<\/span> <span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>RedirectToAction<\/span>(<span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;Create&quot;<\/span>, <span class=\'keyword keyword_other keyword_other_special-method keyword_other_special-method_ruby\'>new<\/span> {<span class=\'meta meta_syntax meta_syntax_ruby meta_syntax_ruby_start-block\'> <\/span>valueOfRadio <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> radio.<span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>ToString<\/span>() });\n");
document.write("            }\n");
document.write("            <span class=\'keyword keyword_other keyword_other_special-method keyword_other_special-method_ruby\'>catch<\/span>\n");
document.write("            {<span class=\'meta meta_syntax meta_syntax_ruby meta_syntax_ruby_start-block\'><\/span>\n");
document.write("                <span class=\'keyword keyword_control keyword_control_pseudo-method keyword_control_pseudo-method_ruby\'>return<\/span> <span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>View<\/span>();\n");
document.write("            }\n");
document.write("        }\n");
document.write("\n");
document.write("        <span class=\'keyword keyword_other keyword_other_special-method keyword_other_special-method_ruby\'>public<\/span> <span class=\'keyword keyword_control keyword_control_ruby\'>class<\/span> <span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>RadioOption<\/span>\n");
document.write("        {<span class=\'meta meta_syntax meta_syntax_ruby meta_syntax_ruby_start-block\'><\/span>\n");
document.write("            <span class=\'keyword keyword_other keyword_other_special-method keyword_other_special-method_ruby\'>public<\/span> int <span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>Id<\/span> {<span class=\'meta meta_syntax meta_syntax_ruby meta_syntax_ruby_start-block\'> <\/span>get; set; }\n");
document.write("            <span class=\'keyword keyword_other keyword_other_special-method keyword_other_special-method_ruby\'>public<\/span> string <span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>Name<\/span> {<span class=\'meta meta_syntax meta_syntax_ruby meta_syntax_ruby_start-block\'> <\/span>get; set; }\n");
document.write("\n");
document.write("            <span class=\'keyword keyword_other keyword_other_special-method keyword_other_special-method_ruby\'>public<\/span> <span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>RadioOption<\/span>(int id,string name)\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\'>Id<\/span> <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> id;\n");
document.write("                <span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>Name<\/span> <span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_ruby\'>=<\/span> name;\n");
document.write("            }\n");
document.write("        }\n");
document.write("    }\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/707632.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/707632\">Pastie #707632<\/a> linked directly from <a href=\"http://pastie.org/\">Pastie<\/a>.\n");
document.write("  <\/div><\/div>");

