How to use an asp page to call a parameter to another page to display

Updated on technology 2024-05-07
9 answers
  1. Anonymous users2024-02-09

    of Links to pass text.

    on your Mac, add at the beginning.

    txt="id")

    Add where you want to output test.

    txt"Or add <%=txt%> and you're good to go!

    If you still have any questions, you can send me a message and ask me!

  2. Anonymous users2024-02-08

    , enter: <%test="id"%> is used to accept the ID value passed from the page.

    Then where you want to display the ID value, enter: <%=test%>

  3. Anonymous users2024-02-07

    You can start by receiving test

    Then use the output.

  4. Anonymous users2024-02-06

    Hehe,Thank you, masters,I want to extend this question,Excuse me,If you want to use a link to call two id content to display separately,How to write the ** in the two pages? Thank you.

    Love asks 1975

  5. Anonymous users2024-02-05

    Elementary questions, no, study hard

  6. Anonymous users2024-02-04

    It's pretty simple, I don't know if I learn ASP??? Doubt.

  7. Anonymous users2024-02-03

    I don't quite understand what exactly your question means, but I give you a few suggestions.

    1. Answers on the first floor can also be answered with cookies or session.

    2. Pass it with a form.

    3. Pass with hyperlink (this method of transmission has a disadvantage, that is, the parameter value passed to the second page will be displayed in the address bar, obviously so these parameters must be encrypted, otherwise the security of the program will be .......))

    Let's talk about the first type first, take session as an example:

    , specify the parameter value in .

    session("Variable name") = value.

    read session

    session("Variable name")%

    This method has an advantage, that is, as long as there is a page that assigns a value to the variable, it can be called in any page under **, unless there is a program to clear the value of the variable, otherwise it will always exist, by default the session is valid for 20 minutes, and it will expire after 20 minutes, of course, you can also specify it yourself.

    The second way is to use the form to pass the split type.

    This type of flexibility is relatively high, and the values in the form can be entered by the user or specified by themselves, which means that they can be fixed or varied. For example:

    Page. Page.

    The name of the text box")

    This method is relatively more than the content of the pass, and the file name can be followed by a specific variable, such as action="?a=1&b=3"

    The third is a hyperlink, which is usually used in pages that display data, such as a news list in a news system, and when you click on the corresponding news item, you can browse the content of that news. In addition to linking pages, you must specify a field value that is unique to any record in the data table, such as field id.

    The file name of the linked page is equivalent to, as for this page is used to display the specific content of the news, and the voucher that queries the corresponding record in the data table to see if the conditions are met is the value of the ID followed by the link from the page. Let's look at the example, I think you should be confused too.

    %rs("newstitle")%

    A link like the one above is a page that accepts parameters, to the parameters that are followed by this link? id=<%rs("newsid"%This ** with? You can understand the sign as a connecting symbol, id is a variable, the = sign is an assignment, and the specific variable value is <%=rs("newsid"This should not be difficult to understand.

    If there is already a link in the page that passes the value of the friend to this page, then the next step is to get the value passed from this page, and then use it.

    id"The purpose of the method in the preceding sentence is to get the arguments passed in the hyperlink, ("id"The id in the page is a variable followed by the link, that is to say, page 2 obtains the parameter value passed from page 1, and the variable name must be the same, otherwise the variable value cannot be obtained in the page.

    Uh, it's too much, I'm confused......

  8. Anonymous users2024-02-02

    If you pass with a form, Orange Beam can use a hidden type pass. Like what.

    Accept the page jujube Wu Yu face can read the stool roll to take the value of name 12345

  9. Anonymous users2024-02-01

    Use cookies or a session is fine.

    The first page of the ridge sets the amount of stupidity, the second page reads the variables, and then clears the variables to prevent the history from leaking into the next direct visit to the second page.

Related questions
7 answers2024-05-07

I guess I'll have to convert this myself.

17 answers2024-05-07

%if request("username")="" then%>elseset rec="")

sql="select * from user where username = '"& request("username") &"'" >>>More

12 answers2024-05-07

Use the old red envelopes left over from the family, and the steps are as follows: >>>More

11 answers2024-05-07

Is it to jump somewhere on this page to add an anchor.

15 answers2024-05-07

Fresh, delicious, tempting, red, green, tender, watery, fresh, delicate, crisp, refreshing, fresh, verdant. >>>More