| |

VerySource

 Forgot password?
 Register
Search
View: 672|Reply: 7

Help, pass value problem

[Copy link]

1

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-3-3 15:30:01
| Show all posts |Read mode
I have a 1.aspx page and this page has an <iframe src = 2.aspx>
1.Aspx got a querystring: a
Now I want to pass the value of a to 2.aspx

may I handle it in this way?
<iframe src = "2.aspx? a = <% = Request.QueryString [" a "]%> </ iframe>
Reply

Use magic Report

1

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-5-15 12:45:01
| Show all posts
Come take a look at people, wait online
Reply

Use magic Report

0

Threads

29

Posts

23.00

Credits

Newbie

Rank: 1

Credits
23.00

 China

Post time: 2020-5-15 20:15:01
| Show all posts
Give it a try, if not, you can declare a public variable in cs, you can assign Request.QueryString ["a"] to the variable, using <% = variable%>
Reply

Use magic Report

1

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-5-15 22:00:01
| Show all posts
It just doesn't work. The problem is that the .cs file is now invisible. The package
Reply

Use magic Report

0

Threads

6

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-5-15 22:45:01
| Show all posts
Agree with the third floor
Reply

Use magic Report

1

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-5-16 09:00:01
| Show all posts
So can reqeust.querystring ["a"] only be used in .cs files?

Can't it be used in aspx?
Reply

Use magic Report

2

Threads

10

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

Post time: 2020-5-17 00:00:01
| Show all posts
Same use
Reply

Use magic Report

1

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-5-17 09:45:02
| Show all posts
Why not?
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