{"id":715,"date":"2010-01-24T01:13:11","date_gmt":"2010-01-24T01:13:11","guid":{"rendered":"\/post\/1388\/11\/04\/URL-Routing-d8afd8b1-ASPNET-4-Web-Forms"},"modified":"2010-01-24T01:13:11","modified_gmt":"2010-01-24T01:13:11","slug":"url-routing-%d8%af%d8%b1-asp-net-4-web-forms","status":"publish","type":"post","link":"https:\/\/mesbahi.net\/fa\/blog\/1388\/11\/04\/url-routing-%d8%af%d8%b1-asp-net-4-web-forms\/","title":{"rendered":"URL Routing \u062f\u0631 ASP.NET 4 Web Forms"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; margin: 0px 0px 10px 25px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"vs2010_logo\" border=\"0\" alt=\"vs2010_logo\" align=\"right\" src=\"http:\/\/mesbahi.net\/fa\/wp-content\/uploads\/sites\/3\/pictures\/migration\/vs2010_logo_3.png\" width=\"183\" height=\"98\" \/> <\/p>\n<p><font color=\"#36393d\"><strong>URL Routing \u0686\u06cc\u0633\u062a\u061f<\/strong><\/font><\/p>\n<p>\u0627\u0648\u0644\u06cc\u0646 \u0628\u0627\u0631 \u062f\u0631 ASP.NET 3.5 SP1 \u0645\u0627\u06cc\u06a9\u0631\u0648\u0633\u0627\u0641\u062a \u06cc\u0627\u06cc\u0646 \u0642\u0627\u0628\u0644\u06cc\u062a \u0631\u0627 \u0631\u0648\u0646\u0645\u0627\u06cc\u06cc \u06a9\u0631\u062f\u060c \u0642\u0627\u0628\u0644\u06cc\u062a\u06cc \u06a9\u0647 \u067e\u06cc\u0634\u062a\u0631 \u062f\u0631 ASP.NET MVC \u0645\u0631\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0642\u0631\u0627\u0631 \u06af\u0631\u0641\u062a\u0647 \u0628\u0648\u062f \u0627\u06cc\u0646\u0628\u0627\u0631 \u067e\u0627 \u0628\u0647 \u062f\u0646\u06cc\u0627\u06cc WebForm \u06af\u0630\u0627\u0634\u062a.<\/p>\n<p>URL Routing \u0628\u0647 \u0634\u0645\u0627 \u0627\u0645\u06a9\u0627\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0622\u062f\u0631\u0633 \u0647\u0627\u06cc \u062a\u0645\u06cc\u0632 \u062a\u0631\u060c SEO-friendly (\u0645\u0646\u0627\u0633\u0628 \u062a\u0631 \u062a\u0631 \u0628\u0631\u0627\u06cc \u062c\u0633\u062a\u062c\u0648\u06af\u0631\u0647\u0627) \u0648 web 2.0\u06cc \u0645\u06cc\u062f\u0647\u062f \u0628\u0647 \u0639\u0628\u0627\u0631\u062a \u0633\u0627\u062f\u0647 \u062a\u0631 \u0622\u062f\u0631\u0633 \u0647\u0627 \u062e\u0648\u0627\u0646\u0627\u062a\u0631\u060c \u0645\u0639\u0646\u06cc \u062f\u0627\u0631\u062a\u0631 \u062e\u0648\u0627\u0647\u0646\u062f \u0634\u062f\u060c \u0627\u0632 \u0627\u06cc\u0646 \u0631\u0648 \u0639\u0644\u0627\u0648\u0647 \u0628\u0631 \u06a9\u0627\u0631\u0628\u0631\u067e\u0633\u0646\u062f\u062a\u0631 \u0634\u062f\u0646\u060c\u0645\u0648\u062a\u0648\u0631 \u062c\u0633\u062a\u062c\u0648\u06af\u0631\u067e\u0633\u0646\u062f \u062a\u0631 \u0647\u0645 \u0645\u06cc \u0634\u0648\u062f. \u0628\u0631\u0627\u06cc \u0645\u062b\u0627\u0644 \u0622\u062f\u0631\u0633 \u0632\u06cc\u0631 \u0631\u0627 \u062f\u0631 \u0646\u0638\u0631 \u0628\u06af\u06cc\u0631\u06cc\u062f:<\/p>\n<p align=\"left\"><a href=\"http:\/\/www.mysite.com\/products.aspx?category=software\"><font color=\"#ff0000\"><strong><em>http:\/\/www.mysite.com\/products.aspx?category=software<\/em><\/strong><\/font><\/a><\/p>\n<p align=\"right\">\u0646\u0638\u0631\u062a\u0648\u0646 \u0686\u06cc\u0647 \u0622\u062f\u0631\u0633 \u0632\u06cc\u0631 \u0631\u0648 \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646\u0634 \u06a9\u0646\u06cc\u0645\u061f \u0628\u0647\u062a\u0631 \u0646\u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f\u061f<\/p>\n<p align=\"left\"><em><a href=\"http:\/\/www.mysite.com\/products\/software\"><strong><font color=\"#ff0000\">http:\/\/www.mysite.com\/products\/software<\/font><\/strong><\/a><\/em><\/p>\n<p align=\"right\">\u062f\u0631 ASP.NET 4.0 \u0642\u0627\u062f\u0631 \u062e\u0648\u0627\u0647\u06cc\u0645 \u0628\u0648\u062f \u0627\u0632 \u0627\u0645\u06a9\u0627\u0646 \u0641\u0648\u0642 \u0686\u0647 \u062f\u0631 \u0645\u0639\u0645\u0627\u0631\u06cc MVC \u0628\u0647\u0631\u0647 \u0628\u06af\u06cc\u0631\u06cc\u0645 \u0686\u0647 \u062f\u0631 \u0645\u0639\u0645\u0627\u0631\u06cc WebForms.<\/p>\n<hr \/>\n<p align=\"right\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; margin: 5px 0px 0px 20px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"checkmark_box_large_red\" border=\"0\" alt=\"checkmark_box_large_red\" align=\"right\" src=\"http:\/\/mesbahi.net\/fa\/wp-content\/uploads\/sites\/3\/pictures\/migration\/checkmark_box_large_red.png\" width=\"32\" height=\"45\" \/>&#160;<font color=\"#800000\" size=\"1\">      <br \/><strong>\u0686\u06af\u0648\u0646\u06af\u06cc \u062a\u0646\u0638\u06cc\u0645\u0627\u062a URL Routing \u062f\u0631 ASP.NET 4.0 MVC<\/strong><\/font> <\/p>\n<p>\u062f\u0631 ASP.NET 3.5 SP1 \u0622\u0645\u0648\u062e\u062a\u06cc\u0645 \u06a9\u0647 \u0686\u06af\u0648\u0646\u0647 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 URL Routing engine \u0622\u062f\u0631\u0633 \u0647\u0627 \u0631\u0627 \u0628\u0647 \u0633\u0627\u062f\u06af\u06cc \u0648 \u062f\u0631 \u0639\u06cc\u0646 \u06a9\u0627\u0631\u0627\u06cc\u06cc \u0648 \u0642\u062f\u0631\u062a \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u0645. \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0631\u0627 \u062f\u0631 \u0631\u062e\u062f\u0627\u062f \u0622\u063a\u0627\u0632 \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631 (Global.asax )&#160; \u0648 \u062f\u0631 \u0628\u062e\u0634 register\/map \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u062f\u0627\u062f\u06cc\u0645.<\/p>\n<p>\u0645\u062b\u0627\u0644 \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0628\u06cc\u0646\u06cc\u062f:<\/p>\n<p><a href=\"http:\/\/mesbahi.net\/fa\/wp-content\/uploads\/sites\/3\/pictures\/migration\/step1_thumb_5D48C8D9.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto\" title=\"step1_thumb_5D48C8D9\" border=\"0\" alt=\"step1_thumb_5D48C8D9\" src=\"http:\/\/mesbahi.net\/fa\/wp-content\/uploads\/sites\/3\/pictures\/migration\/step1_thumb_5D48C8D9_thumb.png\" width=\"470\" height=\"163\" \/><\/a>&#160;<\/p>\n<\/p>\n<hr \/>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; margin: 10px 0px 0px 15px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"checkmark_box_large_red\" border=\"0\" alt=\"checkmark_box_large_red\" align=\"right\" src=\"http:\/\/mesbahi.net\/fa\/wp-content\/uploads\/sites\/3\/pictures\/migration\/checkmark_box_large_red_1.png\" width=\"32\" height=\"45\" \/> <\/p>\n<p> <font color=\"#800000\"><strong>     <\/p>\n<p><font color=\"#800000\" size=\"1\">\u0686\u06af\u0648\u0646\u06af\u06cc \u062a\u0646\u0638\u06cc\u0645\u0627\u062a URL Routing \u062f\u0631 ASP.NET 4 WebForms<\/font><\/p>\n<p>   <\/strong><\/font>  <\/p>\n<p>\u062d\u0627\u0644 ASP.NET 4.0 \u0628\u0647 \u0634\u0645\u0627 \u0627\u06cc\u0646 \u0627\u0645\u06a9\u0627\u0646 \u0631\u0627 \u0645\u06cc \u062f\u0647\u062f \u062a\u0627 \u0627\u0632 \u0627\u06cc\u0646 \u0642\u0627\u0628\u0644\u06cc\u062a \u062f\u0631 WebForms \u0646\u06cc\u0632 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0646\u0645\u0627\u06cc\u06cc\u062f.<\/p>\n<p>\u0645\u062b\u0627\u0644 \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0628\u06cc\u0646\u06cc\u062f:<\/p>\n<p><a href=\"http:\/\/mesbahi.net\/fa\/wp-content\/uploads\/sites\/3\/pictures\/migration\/step2_thumb_1A897DA1.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto\" title=\"step2_thumb_1A897DA1\" border=\"0\" alt=\"step2_thumb_1A897DA1\" src=\"http:\/\/mesbahi.net\/fa\/wp-content\/uploads\/sites\/3\/pictures\/migration\/step2_thumb_1A897DA1_thumb.png\" width=\"470\" height=\"237\" \/><\/a> \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0648 \u0628\u0627\u06cc\u0646\u062f:<\/p>\n<p><a href=\"http:\/\/mesbahi.net\/fa\/wp-content\/uploads\/sites\/3\/pictures\/migration\/step3_thumb_06FC1E00.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto\" title=\"step3_thumb_06FC1E00\" border=\"0\" alt=\"step3_thumb_06FC1E00\" src=\"http:\/\/mesbahi.net\/fa\/wp-content\/uploads\/sites\/3\/pictures\/migration\/step3_thumb_06FC1E00_thumb.png\" width=\"470\" height=\"164\" \/><\/a> <\/p>\n<p><a href=\"http:\/\/mesbahi.net\/fa\/wp-content\/uploads\/sites\/3\/pictures\/migration\/step4_thumb_5E7D3BEB.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto\" title=\"step4_thumb_5E7D3BEB\" border=\"0\" alt=\"step4_thumb_5E7D3BEB\" src=\"http:\/\/mesbahi.net\/fa\/wp-content\/uploads\/sites\/3\/pictures\/migration\/step4_thumb_5E7D3BEB_thumb.png\" width=\"470\" height=\"133\" \/><\/a><\/p>\n<hr \/>\n<hr \/>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; margin: 0px 0px 0px 15px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"question\" border=\"0\" alt=\"question\" align=\"right\" src=\"http:\/\/mesbahi.net\/fa\/wp-content\/uploads\/sites\/3\/pictures\/migration\/question_3.jpg\" width=\"45\" height=\"45\" \/> <\/p>\n<\/p>\n<p><font color=\"#800000\" size=\"1\"><strong>\u0686\u06af\u0648\u0646\u0647 \u0628\u0627 \u0627\u06cc\u0646 \u0622\u062f\u0631\u0633 \u0647\u0627 \u06a9\u0627\u0631 \u06a9\u0646\u06cc\u0645\u061f<\/strong><\/font><\/p>\n<p>\u0627\u06a9\u0646\u0648\u0646 \u0628\u0627\u06cc\u062f \u0628\u062a\u0648\u0627\u0646\u06cc\u0645 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0645\u062a\u062f\u0647\u0627\u06cc \u0644\u0627\u0632\u0645 \u0647\u0645 \u0622\u062f\u0631\u0633 \u0647\u0627\u06cc \u0648\u0627\u0631\u062f\u0647 \u0631\u0627 \u0634\u0646\u0627\u0633\u0627\u06cc\u06cc \u06a9\u0646\u06cc\u0645 \u0648 \u0647\u0645 \u0622\u062f\u0631\u0633 \u0647\u0627\u06cc\u06cc \u06a9\u0647 \u0645\u06cc \u062e\u0648\u0627\u0647\u06cc\u0645 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u062e\u0631\u0648\u062c\u06cc \u0644\u06cc\u0646\u06a9 \u0647\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0646\u0645\u0627\u06cc\u06cc\u0645.<\/p>\n<p>\u0644\u0630\u0627 \u0645\u062a\u062f\u0647\u0627\u06cc () <em>Page.GetRouteUrl ()&#160; ,Response.RedirectToRoute <\/em>\u0645\u0648\u0631\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0642\u0631\u0627\u0631 \u0645\u06cc\u062f\u06cc\u0645.<\/p>\n<p><a href=\"http:\/\/mesbahi.net\/fa\/wp-content\/uploads\/sites\/3\/pictures\/migration\/step6_thumb_15E34D1A.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px\" title=\"step6_thumb_15E34D1A\" border=\"0\" alt=\"step6_thumb_15E34D1A\" src=\"http:\/\/mesbahi.net\/fa\/wp-content\/uploads\/sites\/3\/pictures\/migration\/step6_thumb_15E34D1A_thumb.png\" width=\"470\" height=\"47\" \/><\/a>&#160;<\/p>\n<p>\u0646\u06a9\u062a\u0647: \u062f\u0631 \u067e\u0633\u062a \u0628\u06a9 \u0647\u0627 \u0647\u0645 \u0628\u062f\u0648\u0646 \u0645\u0634\u06a9\u0644\u06cc \u0645\u06cc\u062a\u0648\u0627\u0646\u06cc\u0645 \u0627\u0632 \u0627\u06cc\u0646 \u0642\u0627\u0628\u0644\u06cc\u062a \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0646\u0645\u0627\u06cc\u06cc\u0645:<\/p>\n<p align=\"left\">&lt;form action=\u201d\/products\/software\u201d&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>URL Routing \u0686\u06cc\u0633\u062a\u061f \u0627\u0648\u0644\u06cc\u0646 \u0628\u0627\u0631 \u062f\u0631 ASP.NET 3.5 SP1 \u0645\u0627\u06cc\u06a9\u0631\u0648\u0633\u0627\u0641\u062a \u06cc\u0627\u06cc\u0646 \u0642\u0627\u0628\u0644\u06cc\u062a \u0631\u0627 \u0631\u0648\u0646\u0645\u0627\u06cc\u06cc \u06a9\u0631\u062f\u060c \u0642\u0627\u0628\u0644\u06cc\u062a\u06cc \u06a9\u0647 \u067e\u06cc\u0634\u062a\u0631 \u062f\u0631 ASP.NET MVC \u0645\u0631\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0642\u0631\u0627\u0631 \u06af\u0631\u0641\u062a\u0647 \u0628\u0648\u062f \u0627\u06cc\u0646\u0628\u0627\u0631 \u067e\u0627 \u0628\u0647 \u062f\u0646\u06cc\u0627\u06cc WebForm \u06af\u0630\u0627\u0634\u062a. URL Routing \u0628\u0647 \u0634\u0645\u0627 \u0627\u0645\u06a9\u0627\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0622\u062f\u0631\u0633 \u0647\u0627\u06cc \u062a\u0645\u06cc\u0632 \u062a\u0631\u060c SEO-friendly (\u0645\u0646\u0627\u0633\u0628 \u062a\u0631 \u062a\u0631 \u0628\u0631\u0627\u06cc \u062c\u0633\u062a\u062c\u0648\u06af\u0631\u0647\u0627) \u0648 web 2.0\u06cc \u0645\u06cc\u062f\u0647\u062f \u0628\u0647 \u0639\u0628\u0627\u0631\u062a &#8230; <a title=\"URL Routing \u062f\u0631 ASP.NET 4 Web Forms\" class=\"read-more\" href=\"https:\/\/mesbahi.net\/fa\/blog\/1388\/11\/04\/url-routing-%d8%af%d8%b1-asp-net-4-web-forms\/\" aria-label=\"\u062f\u0631\u0628\u0627\u0631\u06c0 URL Routing \u062f\u0631 ASP.NET 4 Web Forms \u0628\u06cc\u0634\u062a\u0631 \u0628\u062e\u0648\u0627\u0646\u06cc\u062f\">\u0627\u062f\u0627\u0645\u0647<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","footnotes":""},"categories":[2,7],"tags":[11,30],"class_list":["post-715","post","type-post","status-publish","format-standard","hentry","category-net","category-technical","tag-net","tag-net-4-0"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"\u0627\u0645\u06cc\u0646 \u0645\u0635\u0628\u0627\u062d\u06cc","author_link":"https:\/\/mesbahi.net\/fa\/blog\/author\/amin\/"},"uagb_comment_info":7,"uagb_excerpt":"URL Routing \u0686\u06cc\u0633\u062a\u061f \u0627\u0648\u0644\u06cc\u0646 \u0628\u0627\u0631 \u062f\u0631 ASP.NET 3.5 SP1 \u0645\u0627\u06cc\u06a9\u0631\u0648\u0633\u0627\u0641\u062a \u06cc\u0627\u06cc\u0646 \u0642\u0627\u0628\u0644\u06cc\u062a \u0631\u0627 \u0631\u0648\u0646\u0645\u0627\u06cc\u06cc \u06a9\u0631\u062f\u060c \u0642\u0627\u0628\u0644\u06cc\u062a\u06cc \u06a9\u0647 \u067e\u06cc\u0634\u062a\u0631 \u062f\u0631 ASP.NET MVC \u0645\u0631\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0642\u0631\u0627\u0631 \u06af\u0631\u0641\u062a\u0647 \u0628\u0648\u062f \u0627\u06cc\u0646\u0628\u0627\u0631 \u067e\u0627 \u0628\u0647 \u062f\u0646\u06cc\u0627\u06cc WebForm \u06af\u0630\u0627\u0634\u062a. URL Routing \u0628\u0647 \u0634\u0645\u0627 \u0627\u0645\u06a9\u0627\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0622\u062f\u0631\u0633 \u0647\u0627\u06cc \u062a\u0645\u06cc\u0632 \u062a\u0631\u060c SEO-friendly (\u0645\u0646\u0627\u0633\u0628 \u062a\u0631 \u062a\u0631 \u0628\u0631\u0627\u06cc \u062c\u0633\u062a\u062c\u0648\u06af\u0631\u0647\u0627) \u0648 web 2.0\u06cc \u0645\u06cc\u062f\u0647\u062f \u0628\u0647 \u0639\u0628\u0627\u0631\u062a&hellip;","_links":{"self":[{"href":"https:\/\/mesbahi.net\/fa\/wp-json\/wp\/v2\/posts\/715","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mesbahi.net\/fa\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mesbahi.net\/fa\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mesbahi.net\/fa\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mesbahi.net\/fa\/wp-json\/wp\/v2\/comments?post=715"}],"version-history":[{"count":0,"href":"https:\/\/mesbahi.net\/fa\/wp-json\/wp\/v2\/posts\/715\/revisions"}],"wp:attachment":[{"href":"https:\/\/mesbahi.net\/fa\/wp-json\/wp\/v2\/media?parent=715"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mesbahi.net\/fa\/wp-json\/wp\/v2\/categories?post=715"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mesbahi.net\/fa\/wp-json\/wp\/v2\/tags?post=715"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}