{"id":139,"date":"2010-07-06T16:32:00","date_gmt":"2010-07-06T20:32:00","guid":{"rendered":"http:\/\/madprogrammer76.wordpress.com\/2010\/07\/06\/posting-data-from-html-to-aspx"},"modified":"2013-12-15T21:20:01","modified_gmt":"2013-12-16T02:20:01","slug":"posting-data-from-html-to-aspx","status":"publish","type":"post","link":"http:\/\/andrewpallant.ca\/wordpress\/posting-data-from-html-to-aspx\/","title":{"rendered":"Posting Data From HTML to ASPX"},"content":{"rendered":"<p>Recently I had a need to have a web site post credentials to another web site.\u00a0\u00a0 The first site was standard HTML and the second site was DotNet (ASP.NET).<\/p>\n<p>In this example, we will be passing a user name and password to another site.<\/p>\n<p><b>Sending Web Site<\/b><br \/><span style=\"font-size:small;\">In your sending website, you will need a log in\u00a0 panel similar to the one below.<\/span><\/p>\n<pre style=\"background-color:#eeeeee;border:1px dashed rgb(153,153,153);color:black;font-family:Andale Mono,Lucida Console,Monaco,fixed,monospace;font-size:12px;line-height:14px;overflow:auto;width:100%;padding:5px;\"><code>    <br \/>        <br \/>        <br \/><br \/>        <br \/>        <br \/>    <br \/><\/code><\/pre>\n<p><b>Receiving Web Site<\/b><br \/><span style=\"font-size:small;\">In the form load of your DotNet (ASP.NET) site, you will need the following code to get the values from the request object and then pass to your log in routine.<\/span><\/p>\n<pre style=\"background-color:#eeeeee;border:1px dashed rgb(153,153,153);color:black;font-family:Andale Mono,Lucida Console,Monaco,fixed,monospace;font-size:12px;line-height:14px;overflow:auto;width:100%;padding:5px;\"><code>                NameValueCollection nvc = Request.Form;<br \/>                string userName = \"\";<br \/>                string password = \"\";<br \/>                if (!string.IsNullOrEmpty(nvc[\"txtUserName\"]))<br \/>                {<br \/>                    userName = nvc[\"txtUserName\"];<br \/>                }<br \/><br \/>                if (!string.IsNullOrEmpty(nvc[\"txtPassword\"]))<br \/>                {<br \/>                    password = nvc[\"txtPassword\"];<br \/>                }<br \/><br \/>                ExecuteLogin(userName, password);<\/code><\/pre>\n<div class=\"blogger-post-footer\"><img width='1' height='1' src='' alt='' \/><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Recently I had a need to have a web site post credentials to another web site.\u00a0\u00a0 The first site was standard HTML and the second site was DotNet (ASP.NET). In this example, we will be passing a user name and password to another site. Sending Web SiteIn your sending website, you will need a log &hellip; <a href=\"http:\/\/andrewpallant.ca\/wordpress\/posting-data-from-html-to-aspx\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Posting Data From HTML to ASPX<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[146,13,14,141,36,96],"tags":[176,177,120,252],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\r\n<title>Posting Data From HTML to ASPX - LDNDeveloper<\/title>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"http:\/\/andrewpallant.ca\/wordpress\/posting-data-from-html-to-aspx\/\" \/>\r\n<meta property=\"og:locale\" content=\"en_US\" \/>\r\n<meta property=\"og:type\" content=\"article\" \/>\r\n<meta property=\"og:title\" content=\"Posting Data From HTML to ASPX - LDNDeveloper\" \/>\r\n<meta property=\"og:description\" content=\"Recently I had a need to have a web site post credentials to another web site.\u00a0\u00a0 The first site was standard HTML and the second site was DotNet (ASP.NET). In this example, we will be passing a user name and password to another site. Sending Web SiteIn your sending website, you will need a log &hellip; Continue reading Posting Data From HTML to ASPX\" \/>\r\n<meta property=\"og:url\" content=\"http:\/\/andrewpallant.ca\/wordpress\/posting-data-from-html-to-aspx\/\" \/>\r\n<meta property=\"og:site_name\" content=\"LDNDeveloper\" \/>\r\n<meta property=\"article:published_time\" content=\"2010-07-06T20:32:00+00:00\" \/>\r\n<meta property=\"article:modified_time\" content=\"2013-12-16T02:20:01+00:00\" \/>\r\n<meta name=\"author\" content=\"andrewpallant\" \/>\r\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\r\n<meta name=\"twitter:creator\" content=\"@ldnDeveloper\" \/>\r\n<meta name=\"twitter:site\" content=\"@LdnDeveloper\" \/>\r\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"andrewpallant\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/posting-data-from-html-to-aspx\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/posting-data-from-html-to-aspx\/\"},\"author\":{\"name\":\"andrewpallant\",\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/0e7b5e71751000e8f66b17b69ef4ab97\"},\"headline\":\"Posting Data From HTML to ASPX\",\"datePublished\":\"2010-07-06T20:32:00+00:00\",\"dateModified\":\"2013-12-16T02:20:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/posting-data-from-html-to-aspx\/\"},\"wordCount\":105,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/f6f5bb1ac3e0c5a54a8b5ce35fd67b84\"},\"keywords\":[\"asp.net\",\"development\",\"HTML\",\"Web\"],\"articleSection\":[\"ASP\",\"C#\",\"C-Sharp\",\"Developement\",\"How To\",\"Web\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/andrewpallant.ca\/wordpress\/posting-data-from-html-to-aspx\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/posting-data-from-html-to-aspx\/\",\"url\":\"http:\/\/andrewpallant.ca\/wordpress\/posting-data-from-html-to-aspx\/\",\"name\":\"Posting Data From HTML to ASPX - LDNDeveloper\",\"isPartOf\":{\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/#website\"},\"datePublished\":\"2010-07-06T20:32:00+00:00\",\"dateModified\":\"2013-12-16T02:20:01+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/posting-data-from-html-to-aspx\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/andrewpallant.ca\/wordpress\/posting-data-from-html-to-aspx\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/posting-data-from-html-to-aspx\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/andrewpallant.ca\/wordpress\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Posting Data From HTML to ASPX\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/#website\",\"url\":\"http:\/\/andrewpallant.ca\/wordpress\/\",\"name\":\"LDNDeveloper\",\"description\":\"Learning, Growing and Sharing.\",\"publisher\":{\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/f6f5bb1ac3e0c5a54a8b5ce35fd67b84\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/andrewpallant.ca\/wordpress\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/f6f5bb1ac3e0c5a54a8b5ce35fd67b84\",\"name\":\"ldnDeveloper\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/andrewpallant.ca\/wordpress\/wp-content\/uploads\/2017\/05\/cropped-AAEAAQAAAAAAAAXQAAAAJDQxMGRlMzFjLWM4ODctNDk1NC05M2EyLWE1NDNhNTRiZjVlYw-2.jpg\",\"contentUrl\":\"https:\/\/andrewpallant.ca\/wordpress\/wp-content\/uploads\/2017\/05\/cropped-AAEAAQAAAAAAAAXQAAAAJDQxMGRlMzFjLWM4ODctNDk1NC05M2EyLWE1NDNhNTRiZjVlYw-2.jpg\",\"width\":512,\"height\":512,\"caption\":\"ldnDeveloper\"},\"logo\":{\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/image\/\"},\"description\":\"Andrew Pallant (@LdnDeveloper) has been a web, database and desktop developer for over 16 years. Andrew has worked on projects that ranged from factory automation to writing business applications. Most recently he has been heavily involved in various forms for ecommerce projects. Over the years Andrew has worn many hats: Project Manager, IT Manager, Lead Developer, Supervisor of Developers and many more - See more at: http:\/\/www.unlatched.com\/#sthash.8DiTkpKy.dpuf\",\"sameAs\":[\"http:\/\/www.andrewpallant.ca\",\"https:\/\/x.com\/LdnDeveloper\"]},{\"@type\":\"Person\",\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/0e7b5e71751000e8f66b17b69ef4ab97\",\"name\":\"andrewpallant\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/0.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/0.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"caption\":\"andrewpallant\"},\"url\":\"http:\/\/andrewpallant.ca\/wordpress\/author\/andrewpallant\/\"}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Posting Data From HTML to ASPX - LDNDeveloper","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/andrewpallant.ca\/wordpress\/posting-data-from-html-to-aspx\/","og_locale":"en_US","og_type":"article","og_title":"Posting Data From HTML to ASPX - LDNDeveloper","og_description":"Recently I had a need to have a web site post credentials to another web site.\u00a0\u00a0 The first site was standard HTML and the second site was DotNet (ASP.NET). In this example, we will be passing a user name and password to another site. Sending Web SiteIn your sending website, you will need a log &hellip; Continue reading Posting Data From HTML to ASPX","og_url":"http:\/\/andrewpallant.ca\/wordpress\/posting-data-from-html-to-aspx\/","og_site_name":"LDNDeveloper","article_published_time":"2010-07-06T20:32:00+00:00","article_modified_time":"2013-12-16T02:20:01+00:00","author":"andrewpallant","twitter_card":"summary_large_image","twitter_creator":"@ldnDeveloper","twitter_site":"@LdnDeveloper","twitter_misc":{"Written by":"andrewpallant","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/andrewpallant.ca\/wordpress\/posting-data-from-html-to-aspx\/#article","isPartOf":{"@id":"http:\/\/andrewpallant.ca\/wordpress\/posting-data-from-html-to-aspx\/"},"author":{"name":"andrewpallant","@id":"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/0e7b5e71751000e8f66b17b69ef4ab97"},"headline":"Posting Data From HTML to ASPX","datePublished":"2010-07-06T20:32:00+00:00","dateModified":"2013-12-16T02:20:01+00:00","mainEntityOfPage":{"@id":"http:\/\/andrewpallant.ca\/wordpress\/posting-data-from-html-to-aspx\/"},"wordCount":105,"commentCount":0,"publisher":{"@id":"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/f6f5bb1ac3e0c5a54a8b5ce35fd67b84"},"keywords":["asp.net","development","HTML","Web"],"articleSection":["ASP","C#","C-Sharp","Developement","How To","Web"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/andrewpallant.ca\/wordpress\/posting-data-from-html-to-aspx\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/andrewpallant.ca\/wordpress\/posting-data-from-html-to-aspx\/","url":"http:\/\/andrewpallant.ca\/wordpress\/posting-data-from-html-to-aspx\/","name":"Posting Data From HTML to ASPX - LDNDeveloper","isPartOf":{"@id":"http:\/\/andrewpallant.ca\/wordpress\/#website"},"datePublished":"2010-07-06T20:32:00+00:00","dateModified":"2013-12-16T02:20:01+00:00","breadcrumb":{"@id":"http:\/\/andrewpallant.ca\/wordpress\/posting-data-from-html-to-aspx\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/andrewpallant.ca\/wordpress\/posting-data-from-html-to-aspx\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/andrewpallant.ca\/wordpress\/posting-data-from-html-to-aspx\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/andrewpallant.ca\/wordpress\/"},{"@type":"ListItem","position":2,"name":"Posting Data From HTML to ASPX"}]},{"@type":"WebSite","@id":"http:\/\/andrewpallant.ca\/wordpress\/#website","url":"http:\/\/andrewpallant.ca\/wordpress\/","name":"LDNDeveloper","description":"Learning, Growing and Sharing.","publisher":{"@id":"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/f6f5bb1ac3e0c5a54a8b5ce35fd67b84"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/andrewpallant.ca\/wordpress\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/f6f5bb1ac3e0c5a54a8b5ce35fd67b84","name":"ldnDeveloper","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/image\/","url":"https:\/\/andrewpallant.ca\/wordpress\/wp-content\/uploads\/2017\/05\/cropped-AAEAAQAAAAAAAAXQAAAAJDQxMGRlMzFjLWM4ODctNDk1NC05M2EyLWE1NDNhNTRiZjVlYw-2.jpg","contentUrl":"https:\/\/andrewpallant.ca\/wordpress\/wp-content\/uploads\/2017\/05\/cropped-AAEAAQAAAAAAAAXQAAAAJDQxMGRlMzFjLWM4ODctNDk1NC05M2EyLWE1NDNhNTRiZjVlYw-2.jpg","width":512,"height":512,"caption":"ldnDeveloper"},"logo":{"@id":"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/image\/"},"description":"Andrew Pallant (@LdnDeveloper) has been a web, database and desktop developer for over 16 years. Andrew has worked on projects that ranged from factory automation to writing business applications. Most recently he has been heavily involved in various forms for ecommerce projects. Over the years Andrew has worn many hats: Project Manager, IT Manager, Lead Developer, Supervisor of Developers and many more - See more at: http:\/\/www.unlatched.com\/#sthash.8DiTkpKy.dpuf","sameAs":["http:\/\/www.andrewpallant.ca","https:\/\/x.com\/LdnDeveloper"]},{"@type":"Person","@id":"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/0e7b5e71751000e8f66b17b69ef4ab97","name":"andrewpallant","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/image\/","url":"http:\/\/0.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"http:\/\/0.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"andrewpallant"},"url":"http:\/\/andrewpallant.ca\/wordpress\/author\/andrewpallant\/"}]}},"_links":{"self":[{"href":"http:\/\/andrewpallant.ca\/wordpress\/wp-json\/wp\/v2\/posts\/139"}],"collection":[{"href":"http:\/\/andrewpallant.ca\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/andrewpallant.ca\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/andrewpallant.ca\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/andrewpallant.ca\/wordpress\/wp-json\/wp\/v2\/comments?post=139"}],"version-history":[{"count":1,"href":"http:\/\/andrewpallant.ca\/wordpress\/wp-json\/wp\/v2\/posts\/139\/revisions"}],"predecessor-version":[{"id":1129,"href":"http:\/\/andrewpallant.ca\/wordpress\/wp-json\/wp\/v2\/posts\/139\/revisions\/1129"}],"wp:attachment":[{"href":"http:\/\/andrewpallant.ca\/wordpress\/wp-json\/wp\/v2\/media?parent=139"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/andrewpallant.ca\/wordpress\/wp-json\/wp\/v2\/categories?post=139"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/andrewpallant.ca\/wordpress\/wp-json\/wp\/v2\/tags?post=139"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}