Link to home
Start Free TrialLog in
Avatar of maidinhtai
maidinhtai

asked on

Reference to LoginView's child controls

I add a loginView control (named loginview1) to a webpage and then add a hyperlink (named hyperlink1) to the loginview control. How can I reference to hyperlink1 in code view mode. For example:
Loginview1.LoggedInTemplate.Hyperlink1.NarvigateURL = "http://" 'This doesn't work
Thank you.
ASKER CERTIFIED SOLUTION
Avatar of REA_ANDREW
REA_ANDREW
Flag of United Kingdom of Great Britain and Northern Ireland image

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
I think the VB counterpart is CType(LoginView1.FindControl("HyperLink1"),HyperLink)
SOLUTION
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