asp if you do a jump to a different address

Updated on society 2024-04-11
4 answers
  1. Anonymous users2024-02-07

    This certainly can't be done with a select case or an if statement.

    You need to put these corresponding ** into the database, and then query the data table according to the corresponding id.

    This gives you the ** for an ID.

  2. Anonymous users2024-02-06

    id="id")

    select case id

    case id=252

    case id=285

    case id=324

    end select

    I don't know if it's correct to write like this in asp, it's been a long time.

  3. Anonymous users2024-02-05

    Either you can store it in a database, or if you don't use a database, you can only use a select case or if statement.

    If you say that there is a large amount of data, it is better to store it in the database!

  4. Anonymous users2024-02-04

    response redirect This method of jumping to a page is not fast, because it has to go back and forth (postback), but it can jump to any page, there is no site page limit (i.e. you can jump from Yahoo to Sina), and you can't skip login protection, but the slow speed is its biggest drawback! The redirect redirection mechanism is to send a request to the client to notify that it needs to jump to a new page, and then the client is sending a redirect request to the server, and it should be noted that all the data stored in the internal space will be lost after the jump, so you need to use the session

    Server transfer is fast and only needs to be postback once, but ......He must be under the same site, because it is a method of the server, in addition, he can skip the login protection, you can write a small program to try to design a jump from page one to page two, but to enter page two, you need to log in to form authentication, but if the jump statement uses transfer, then the login page will not pop up, the redirect request of this method occurs on the server side, so the URL address of the browser still retains the address of the original page!

    The sever execute method is mainly used for page imitation cooktop design, and it must be a jump to a page under the same site, and this method is used when you need to insert the output of one page into another aspx page, and most of it is in **, where a page exists on another page in a similar way to nesting.

    Summary: Use redirect when you need to redirect a user to a page on another server

    When you need to redirect a user to a non-aspx page, e.g. use redirect

    When you need to pass the query string as part of the URL to the server, because other methods can't do it, postback brings the data back to the server first, and uses redirect

    Transitions between aspx pages are required (no login involved) Use Transfer

    When you need to insert the output of an ASPX page into another ASPX page, use the execute method to make a large paragraph.

    Of course, forgot that there is also a hyperlink! Of course, I don't need to talk too much about this, but he's using hyperlinks when the user needs to decide when to jump to the page.

    By the way, how to use the redirect method to use kanji in the query string, because it is often the case that garbled characters occur because the url does not support kanji, and this time it needs to be converted.

    Here's a snippet referencing string message =server urlencode (welcome to the Racing column).

    Convert before using the query string.

    lishixinzhi/article/program/net/201311/11527

Related questions
9 answers2024-04-11

I have been doing ASP for half a year, and I feel the same way. >>>More

20 answers2024-04-11

Personally, I think it's okay to pull. As long as you genuinely like her. And she genuinely likes you, too. >>>More

9 answers2024-04-11

Parents always have a reason for their thoughts. After all, they see more than we do! Communicate with them why you don't agree, think about it calmly, don't be unhappy with your parents because of impulse, after all, they know yourself better than you, and in the final analysis, it is also for your good. >>>More

27 answers2024-04-11

Although falling in love is a matter of two people, everyone definitely wants the blessing of their family. In fact, love without the blessing of family members is often very tangled. Many people don't know what to do when they encounter this situation. >>>More

3 answers2024-04-11

Tips to insert different headers in word:

How to set different headers in one word document? Some friends said: It's too simple, isn't it just to open the "File Page Settings", and then click the "Layout" tab, and check the "Odd and even pages". >>>More