In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces how Visual Studio 2008 registers web user controls in the Web.config file. The article is very detailed and has certain reference value. Interested friends must read it!
If the location of the web user control is moved in the future, then every page that uses the web user control needs to modify the registration instruction, which is a very troublesome thing. If the registration instruction is moved to the web.config file, then the path of the file will be changed much easier, any location change update can be completed in one location. Enter the following in Web.Config:
< configuration> < system.web> < pages> < controls> < add tagPrefix="MyControl" src="~/Controls/WebUserControl.ascx" tagName="MyButton"/> < /controls> < /pages> < /system.web> < /configuration>Once the web config is configured as above, you can use the web user control on any page of the project.
< body> < form id="form1" runat="server">MyButton ID= "MyUserControl" runat= "server" / > form >
< /body>I really didn't know that the web user control could be registered in Asp.net 's web.config. The design of this function is very user-friendly and thoughtful.
The above is all the contents of the article "how Visual Studio 2008 registers web user controls in Web.config files". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.