Morpheusweb.it - Risorse per webmaster: script, ASP.NET, C#, Visual Basic .Net, tutorial, asp, javascript, css, php, html, java, ADO, VBScript, forms, frames, Active Server Pages, Dynamic HTML, database, gratis per webmaster e webdesigner

Variabili valorizzate

Per vedere se una variabile è valorizzata o meno.
per farre il controllo utilizziamo la funzione IsEmpty.


<%
var2="ho un valore"
if IsEmpty(var2) then
  Response.write "var2 <b>non</b> è stata valorizzata<br>"
else
  Response.write "var2 è stata valorizzata<br>"
end if
if IsEmpty(var1) then
  Response.write "var1 <b>non</b> è stata valorizzata<br>"
else
  Response.write "var1 è stata valorizzata<br>"
end if
%>


Scarica il Codice...


Stampa la pagina


 








Inizio pagina

risorse per webmaster