| |

VerySource

 Forgot password?
 Register
Search
View: 701|Reply: 5

Super dishes, who will come! Please help me ~~ Thank you!

[Copy link]

5

Threads

6

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-1-22 14:00:01
| Show all posts |Read mode
Regarding the problem of value transfer across web pages:

If you use Response.redirect ("a.aspx? Id = 123");
       Request.QueryString ["id"];
Method, id = 123 will be displayed in the address bar.

How can I pass it without displaying it? I heard that there is a Request.Form method? In this case, how to write a Response?
Reply

Use magic Report

0

Threads

43

Posts

29.00

Credits

Newbie

Rank: 1

Credits
29.00

 China

Post time: 2020-2-1 17:36:01
| Show all posts
Response.redirect ("a.aspx");
Request.Form ["id"];
Reply

Use magic Report

0

Threads

58

Posts

32.00

Credits

Newbie

Rank: 1

Credits
32.00

 China

Post time: 2020-2-1 17:45:01
| Show all posts
Use session
Reply

Use magic Report

0

Threads

43

Posts

29.00

Credits

Newbie

Rank: 1

Credits
29.00

 China

Post time: 2020-2-1 18:27:01
| Show all posts
Request.Form ["<% = id.ClientID%>"];
Reply

Use magic Report

0

Threads

10

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-2-9 09:45:01
| Show all posts
There are many ways.
One. Response.redirect ("a.aspx? Id = 123"); Renamed Server.Transfer ("a.aspx? Id = 123");
two. Put form method = "post" then. Request.Form ["id"];
three. Set session ["id"] = 123, get string = session ["id"]. ToString ()
four. . . . . .
a lot of.
It is usually used without change. Unless it's important data! !!
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-2-9 19:30:01
| Show all posts
Learn.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list