Link to home
Start Free TrialLog in
Avatar of deNZity
deNZity

asked on

How to access value from login control txtbox asp.net 2

ASP.NET 2
Visual Studio 2005
win xp

Hi I want to retrieve the username from the login control txtbox when a user logs on
and store in a variable.

tried  

Dim username As String
        username = Login1.FindControl("UserName")

but get following error

Error      2      Value of type 'System.Web.UI.Control' cannot be converted to 'String'.      

D
ASKER CERTIFIED SOLUTION
Avatar of kraffay
kraffay

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of deNZity
deNZity

ASKER

thanks :)