ASP to determine whether a file is present or not

Updated on technology 2024-04-01
6 answers
  1. Anonymous users2024-02-07

    yes, post ** and take a look.

    The fso file name with & can be found.

    Here's this part of my **, I didn't bring it in the template"&"No, but I tried.

    File. call loadfile("in&")

    function loadfile(filename)set fso = createobject("")if not then

    exp_msg("I didn't find the template file when I loaded the template! ")end if

    set f = ,1)

    file =

    set fso=nothing

    end function

    in& file.

    Feel free to type in some characters.

    Put the two files in the same directory and run it to see the characters in in&.

  2. Anonymous users2024-02-06

    To define ABC why?

    If it is not defined, abc is empty.

    So the judgment was wrong.

    dim abc

    abc=1 'It can also be a variable.

    if abc=1 then %>

    else><%end if%>

  3. Anonymous users2024-02-05

    In fact, it can be achieved the other way around, that is, you don't want to be entangled in the include sentence, you can add judgment to the include file, pass the value through the page, if the value is 1, the content is your original content, if the value is 2, the content of the call is like this, include only needs one sentence, you can avoid the dead knot of asp.

  4. Anonymous users2024-02-04

    First of all, when is abc 1 and when is 2

    Join me via request("abc"This get action is worth ?abc=1 This is the value of passing 1 to the abc after the past click.

    if request("abc")="1" then%>

    elseif request("abc")="2" then %>'Here, elseif is called when it must be equal to 2, and if else, it is called as long as it is not 1. Even if abc is empty, that is called. This does not achieve the desired effect.

    end if %>

  5. Anonymous users2024-02-03

    Read all the files first.,In the for loop.,Try it.。。。

  6. Anonymous users2024-02-02

    For similar program problems, I suggest you go to CSDN, the largest program exchange platform in China, where there are such experts as clouds, and his forum questions can be solved.

Related questions
5 answers2024-04-01

You see if you started the asp parsing file.

11 answers2024-04-01

I think the data type of asp should be the data type of vb. >>>More

24 answers2024-04-01

A declarative sentence that can judge true or false is called a proposition, a correct proposition is called a true proposition, and a false proposition is called a false proposition. >>>More

10 answers2024-04-01

The reaction between hydrogen and oxygen is generated, and the judgment of gas should not be verbose. >>>More

11 answers2024-04-01

The asp source ** is as follows.

ip="remote_addr") >>>More