Link to home
Start Free TrialLog in
Avatar of dba123
dba123

asked on

'string' does not contain a definition for 'Controls' and no extension method 'Controls' accepting a first argument of type 'string' could be found

after converting my project in VS 2008, I get an error when trying to add the literal control PageTitle

Error    1    'string' does not contain a definition for 'Controls' and no extension method 'Controls' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
this.Title.Controls.Add(new LiteralControl(this.PageTitle));

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Göran Andersson
Göran Andersson
Flag of Sweden 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
Checking back to see if you got it to work?