FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WEBDEV 2024
→
WebDev 22 Page Initialisation Code runs twice
WebDev 22 Page Initialisation Code runs twice
Débuté par Anthony, 12 oct. 2017 20:47 - Aucune réponse
Connectez-vous…
Anthony
#1
Membre enregistré
4 messages
Posté le 12 octobre 2017 - 20:47
Hi,
I have initialisation code running twice which in effect runs SQL functions within procedures twice so I thought I would test it in a new WB 22 app 1 page no other code and to me it runs twice.
1 page the only code in the init of the page is:-
s
MySessionTest
is string
=
GetGUID
(
)
x
is int
=
0
Trace
(
s
MySessionTest
+
CR
)
LOOP
(
5
)
x
=x+
1
Trace
(x)
END
Which results in:-
{e3272487-8fcc-4c6a-acff-b4b8cadbdba4}<\r><\n>
1
2
3
4
5
{aecc108f-7d97-4498-be8d-31dde25662ab}<\r><\n>
1
2
3
4
5
I load the page once in the browser and to me its running the init code twice.
I noticed it on a web app that uses MS SQL in procedures which are called in the init code of the page, I can see on the MS SQL profiler its running the select statement twice.
So ignore the SQL version which I am not showing here why in this example would it run the page init code twice?
Is it expected that the init code runs twice? if so I have to remove my code from the init but how can I call it once on page load?
Thanks
Tony
Signaler
0
0
→ Revenir à WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte