after the validation, set some shared information, for example, in a Session variable, so the main page will know the status of the login. But I still think my above suggestion is a better approach
also see
Building a custom ASP.NET login control
http://www.caparea.net/Downloads/109.aspx
can you say it more clearly?
Now I am using a login control and validate the user info within this control.
After the valid user login, I want to refresh the main page together with the login control.
But the problem lies in only the control reload itself and the main page retain its status.
So can you help me?
you don't want to build a dependency between your 用户控件 and the container page, expose some properties and an event, so the container page can subcribe to your event and update its own interface