| |

VerySource

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

"Redirect" is not a method group and cannot be assigned a value? What should I do?

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-2-17 16:00:01
| Show all posts |Read mode
string url;
url = "findstu_in.aspx? stuid = '" + stuid + "'&stuname = '" + stuname + "'";
Response.Redirect = (url);


Error Message: "Redirect" is not a method group and cannot be assigned a value
I believe I understand what I want to do
Reply

Use magic Report

0

Threads

322

Posts

115.00

Credits

Newbie

Rank: 1

Credits
115.00

 China

Post time: 2020-4-20 18:15:01
| Show all posts
Response.Redirect (url);
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-4-20 19:30:02
| Show all posts
Halo, I know pull, sorry, really tmd idiot
Reply

Use magic Report

2

Threads

7

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-4-20 20:00:01
| Show all posts
string url;
url = "findstu_in.aspx? stuid = '" + stuid + "'&stuname = '" + stuname + "'";
Response.Redirect (url);

The landlord try this to see if it works
Reply

Use magic Report

0

Threads

41

Posts

13.00

Credits

Newbie

Rank: 1

Credits
13.00

 China

Post time: 2020-4-24 23:00:01
| Show all posts
Haha, Redirect is a method, you should not use the assignment symbol "="
Reply

Use magic Report

0

Threads

8

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 Invalid IP Address

Post time: 2020-4-26 21:30:01
| Show all posts
Response.Redirect (url);
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