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.
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.
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(…) opens ! And you know why ?
Just because you have to add a <base> tag in your head section of the page, like below :
<head>
….
<base target=“_self”>
….
</head>
I spent almost half a day to fix this, but I also learned it…. 🙂
0 Comments