Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
More on quote behavior
Message
De
31/01/2016 20:48:43
 
 
À
26/01/2016 13:30:21
Information générale
Forum:
ASP.NET
Catégorie:
Visual Studio
Versions des environnements
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01630244
Message ID:
01630461
Vues:
64
Here is another example.

This is the end of a method in the top class of the framework, which is responsible for redirecting the user into a login page:
            ' Add the script
            lcHtml = lcHtml + "<SCRIPT>" + oApp.cCR
	    lcHtml = lcHtml + "if (window.parent.parent)" + oApp.cCR
  	    lcHtml = lcHtml + "{" + oApp.cCR
            lcHtml = lcHtml + "   window.parent.parent.location=""" + lcUrl + lcParameter + """" + oApp.cCR
            lcHtml = lcHtml + "}" + oApp.cCR
	    lcHtml = lcHtml + "else" + oApp.cCR
    	    lcHtml = lcHtml + "{" + oApp.cCR
	    lcHtml = lcHtml + "   if (window.parent)" + oApp.cCR
	    lcHtml = lcHtml + "   {" + oApp.cCR
            lcHtml = lcHtml + "      window.parent.location=""" + lcUrl + lcParameter + """" + oApp.cCR
            lcHtml = lcHtml + "   }" + oApp.cCR
	    lcHtml = lcHtml + "   else" + oApp.cCR
	    lcHtml = lcHtml + "   {" + oApp.cCR
            lcHtml = lcHtml + "      window.location=""" + lcUrl + lcParameter + """" + oApp.cCR
            lcHtml = lcHtml + "   }" + oApp.cCR
            lcHtml = lcHtml + "}" + oApp.cCR
            lcHtml = lcHtml + "</SCRIPT>" + oApp.cCR

            ' Force it to be executed now otherwise the page will load before executing this script
            oResponse.Write(lcHtml)

            ' Make sure to avoid any other execution of the application
            oResponse.End()

        End If

        Return True
    End Function
In there, some javascript code for the redirection into the top most window.

A few weeks ago, I had to change something in that class higher in the code. I opened the quotes into a line to update the text. This corrupted somes lines below in that class. I only found this today.

This was production code. On an error, I ended up with a blank page. I tried to figure out why this behavior was new. When I viewed the source, I saw the javascript was now case sensitive.

Well, guest what, when Visual Studio does that, usually, it would be within quoted text so the impact would not be that much. But here, javascript is case sensitive. So, it would not work at all.

So, now, we have several projects, where we cannot know when it is going to crash.

I haven't heard any confirmation yet this is fixed in Visual Studio. But, one thing for sure, if I update a line, open quotes to start typing text, I do not expect the designer to fix, as it sees fit, a bunch of lines below in the code.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform