Question Locked

Controls not persisting from .NET 1.1 to .NET 3.5...

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have recently migrated an ASP.NET project from .NET 1.1 to .NET 3.5. I've gotten rid of most of the errors, but the textboxes from the login screen aren't persisting. In .NET 1.1, when the user clicked the Login button, the username and password values could be retrieved using this code:
Request.Form("ctrlLogin:txtLoginPassword")

However, this code in .NET 3.5 returns "nothing". I've also tried using Context.Items but got the same result. The code is identical so I'm at a loss as to why this is happening. The textboxes are dynamically created, yet the data persists in 1.1 and not 3.5. Is there a setting in 3.5 that needs to be activated?

Thanks

2 replies

by bryan.hampton

A co-worker helped me solve this issue. The problem is that in .NET 3.5, you use a "$" between the arguments instead of the ":" that .NET 1.1 used. When I changed the code to:

Response.Form("ctrlLogin$txtLoginPassword")

I got the value.

This discussion is closed to new replies.