What is wrong with the following code:
<%afname="header.asp"%><!?#include file ="<%=afname%>"?>

Answer Posted / pankajbisane

Will not work because ASP executes the #include directive
before it assigns a value to the variable.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of folders object of scripting.filesystemobject class in vbscript?

855


Mention what is the difference between vbscript and vba?

509


What aspects of vbscript make it safe so that a web page using vbscript cannot destroy or corrupt information on a user's computer?

575


Explain about vb script?

743


What is the scope of a constant declared using public?

551






How will you compare two strings in vbscript?

592


Write a code to print numbers from 5 to 0?

673


Explain the tristate constants in vbscript?

552


When to use function procedures and what are its characteristics?

547


Mention the rules for using option explicit statement?

480


Which command is used for writing text on a page?

572


What is the use of option explicit in vbscript?

542


Mention what is byref and byval parameters in vbscript?

575


What is the use of option explicit statement?

581


How are values assigned to the variables in the vbscript language?

567