Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 21, 2007 12:50 PM by random0xff
Member
102 Points
211 Posts
Dec 21, 2007 09:39 AM|LINK
According to this post by Scott Guthrie I should just be able to refer to my repeater by its ID, but I can't.
The name 'Repeater1' does not exist in the current context
Contributor
7064 Points
1444 Posts
Dec 21, 2007 11:18 AM|LINK
Known fault in the MVC page view template.
Right click on the .aspx file and select Convert To Web Application, this will generate the .designer.cs (or .vb) file which will provide the control declarations.
Dec 21, 2007 12:50 PM|LINK
That's weird. It works now though, thanks!
random0xff
Member
102 Points
211 Posts
Can't access a repeater from code behind in a view
Dec 21, 2007 09:39 AM|LINK
According to this post by Scott Guthrie I should just be able to refer to my repeater by its ID, but I can't.
rjcox
Contributor
7064 Points
1444 Posts
Re: Can't access a repeater from code behind in a view
Dec 21, 2007 11:18 AM|LINK
Known fault in the MVC page view template.
Right click on the .aspx file and select Convert To Web Application, this will generate the .designer.cs (or .vb) file which will provide the control declarations.
random0xff
Member
102 Points
211 Posts
Re: Can't access a repeater from code behind in a view
Dec 21, 2007 12:50 PM|LINK
That's weird. It works now though, thanks!