469,626 Members | 997 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,626 developers. It's quick & easy.

Visual Studio is defining my *.ascx UserControls as Global.System.Web.UI.UserControl in the *.aspx.designer.vb files

I have several UserControls (*.ascx files) that I register in my Web.config
file under the <system.web><pages><controlselement. If I mistype the src
attribute in the Web.config file, the pages that use the UserControl will
add something such as the following to the *.aspx.designer.vb files:

Protected WithEvents mycontrol As Global.System.Web.UI.UserControl

This is obviously not correct, because Global.System.Web.UI.UserControl is
what the *.ascx file inherits from, the name of the class for the
UserControl that is created by the *.ascx file is something else. Therefore,
every time the src attribute gets changed or mistyped I have to go and
manually edit the *.aspx.designer.vb files. Why doesn't Visual Studio 2005
automatically fix the *.aspx.designer.vb files when I fix the src attribute
in the Web.config file? Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/
Jun 10 '07 #1
0 1215

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Vladimír Kolesnik | last post: by
2 posts views Thread by John Ninan | last post: by
reply views Thread by mivhaelveloz | last post: by
1 post views Thread by Carlo Razzeto | last post: by
11 posts views Thread by =?Utf-8?B?SmVycnkgQw==?= | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.