{"id":1895,"date":"2007-03-22T22:46:09","date_gmt":"2007-03-22T21:46:09","guid":{"rendered":"https:\/\/yvespeneveyre8e29bf869d.wordpress.com\/2007\/03\/22\/showmodaldialog-net-and-the-tag\/"},"modified":"2007-03-22T22:46:09","modified_gmt":"2007-03-22T21:46:09","slug":"showmodaldialog-net-and-the-tag","status":"publish","type":"post","link":"https:\/\/www.peneveyre.com\/en\/2007\/03\/22\/showmodaldialog-net-and-the-tag\/","title":{"rendered":"showModalDialog, .NET and the  tag"},"content":{"rendered":"<p><P>When you have a lot of pressure on a project regarding the planning especially, sometimes, just a little thing that makes your developer life tougher is not supportable.<\/P><br \/>\n<P>It was the case this week, during a migration from an application written in ASP to .NET. I migrated several dialogs that were supposed to be displayed as modal dialogs. During the developments and the testing, everything went fine. No bugs.<\/P><br \/>\n<P>But, when integrated in the whole application, it simply did not work at all, just because my .NET web forms were displayed using the showModalDialog javascript function. In one of them, I had a datagrid with a column containing hyperlinks. What a surprise when you click on the link and that a page with the url javascript:__dopostback(&#8230;) opens ! And you know why ?<\/P><br \/>\n<P>Just because you have to add a &lt;base&gt; tag in your head section of the page, like below :<\/P><br \/>\n<P><SPAN>&lt;head&gt;<BR>&nbsp;&nbsp;&nbsp;&#8230;.<BR>&nbsp;&nbsp;&nbsp;&lt;base target=<SPAN>&#8220;_self&#8221;<\/SPAN>&gt;<BR>&nbsp;&nbsp;&nbsp;&#8230;.<BR>&lt;\/head&gt;<BR><BR><\/SPAN><\/P><br \/>\n<P>I spent almost half a day to fix this, but I also learned it&#8230;. \ud83d\ude42<\/P><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want to display a .NET web form in a modal dialog, this post may be useful for you&#8230;.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-1895","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.peneveyre.com\/en\/wp-json\/wp\/v2\/posts\/1895","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.peneveyre.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.peneveyre.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.peneveyre.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.peneveyre.com\/en\/wp-json\/wp\/v2\/comments?post=1895"}],"version-history":[{"count":0,"href":"https:\/\/www.peneveyre.com\/en\/wp-json\/wp\/v2\/posts\/1895\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.peneveyre.com\/en\/wp-json\/wp\/v2\/media?parent=1895"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.peneveyre.com\/en\/wp-json\/wp\/v2\/categories?post=1895"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.peneveyre.com\/en\/wp-json\/wp\/v2\/tags?post=1895"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}