Regarding the collection in ASP, the six most commonly used objects in ASP are their properties, met

Updated on technology 2024-03-31
11 answers
  1. Anonymous users2024-02-07

    Hehe, this is the most common problem that every ASP programmer encounters, and it is also the most overlooked.

    The request fetches data from several sets in order, from front to back in order of querystring, form, and finally the object searches for the variables in these sets in this order, if there is a match, it is aborted, and the rest is ignored.

    Now let's break down your problem.

    Suppose there is a page ?id=111

    Here our page uses the get method. This is the case"id") and request("id"If you don't specify the request collection, it will first be searched from the querystring.

    And if our page is sent using the post method, then use"id"It doesn't work (he can only get it), but it has to be used"id"), and if you also use request("id"He can also get the data, but it is obviously slower to check the value of the querystring first.

    Here's an example of an inspection you can take a look at:

    if request("submit")<>"" then"Take directly:"& request("username") &"

    Get get:" & "username") &"

    Take post:" & "username") &"

    end if

    Make it a good habit to add the name of the collection to the end of the request.

  2. Anonymous users2024-02-06

    The submitted data of the bundle get method can also be said to be the data behind the url, such as? id=1

    id\"The result is 1

  3. Anonymous users2024-02-05

    Take a computer as an example, the computer has a motherboard, and the motherboard can look at a collection, and there are many things in it to do some work together. Attributes, every computer also has its attributes, such as what operating system? What chip? There are also various ways to operate a computer.

  4. Anonymous users2024-02-04

    It can be completely concise:

    function getnewitem(table,id,idstr,item)

    dim rsnew

    set rsnew = "")

    dim sql

    sql = "select * from " & table & " where " & id & " = " & idstr

    sql,conn,1,1

    if < 1 then

    getnewitem = 0

    elseif > 1 then

    getnewitem =

    elsegetnewitem = rsnew(item)end if

    set rsnew = nothing

    end function

    2) If "no item found in the set corresponding to the required name or ordinal" appears, it means that the parameter item you passed in is wrong, you may wish to check the item carefully, note that the item can only be a string, and there is a field corresponding to the item in the table table.

  5. Anonymous users2024-02-03

    The field name is incorrect.

    That is, the name of the field you provided, which was not found in the database!

  6. Anonymous users2024-02-02

    Attributes,Methods,There is nothing to do with the collection.,Attributes are the properties of the object itself Can you do it?,The method is the first to use it.,How to use it.,How do you find a relationship between them?,Isn't this your own death??

  7. Anonymous users2024-02-01

    That's a lot.

    Check one object at a time, and you can only know the relationship after knowing its usage.

  8. Anonymous users2024-01-31

    Look carefully, your model instance is definitely not in the modellist, delete the object from the collection on the remove and removeat two methods, one is. .net helps you find indexes, one is to delete the index directly.

  9. Anonymous users2024-01-30

    The list remove method is the string type object that you need to remove. Your model is a wonder thing.

    ilistlist1 = new list();

  10. Anonymous users2024-01-29

    This is. .NET framework.

    You can learn LINQ;

    list "entity" list = new list();

    ==12).tolist();

    Entity attribute typeid

  11. Anonymous users2024-01-28

    Is there a select for list?

    Why haven't I used it?

    DataTable has one.

Related questions
8 answers2024-03-31

The REPLACE in asp means: [count] replace; DOS External Commands: Supersede or Update Files!

10 answers2024-03-31

"msgbox ""The account is already in use"""

You can't use single quotation marks, but double quotation marks. >>>More

5 answers2024-03-31

select * from users where useraccount=" + "'" + username + "'" + "and userpwd=" + "'" + strmd5 + "'" >>>More

14 answers2024-03-31

The functions you want are all here, I won't list the specific syntax, you can go to the Internet to find the relevant usage. >>>More

8 answers2024-03-31

I told all the lies.

You believe them all. >>>More