Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
bug in ASP.NET 2.0?!
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Sergei Shelukhin, post: 1986898"] I wrote ascx control that resides in A namespace. I had several controls from that namespace written as simple C# classes (without ascx part) and they worked ok with <%@ Register TagPrefix="tc" NameSpace="A" Assembly="A" %> However, ascx control refused to render - it just rendered to empty string. The interesting thing is that there were no errors, compile time or runtime, no warnings, and control methods did get called (I tried overriding render and placing a brekapoint there - it got hit), if I tried to render control into string in Page_Load it returned an empty string. The fix was as simple as adding the following declaration to the page: <%@ Register TagPrefix="tc1" TagName="MyControl" Src="~/Component/MyControl.ascx" %> and changing the control tag prefix accordingly. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
bug in ASP.NET 2.0?!
Top