Antonio,
Thanks very much for your quick reply!
Here is what I did:
1. In visual studio right click on DesktopModules\Blog to add a Web User Control named "TestUserControl.ascx".
In the design mode I just added several labels and text boxes. The first line of the source is as follows:
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="TestUserControl.ascx.vb" Inherits="DesktopModules_Blog_TestUserControl" %>
However I didn't want to have a code behind file as I just wanted to have the look and feel of the added web user control,
so I took out "CodeFile="TestUserControl.vb"". And when compiling it complained about "DesktopModules_Blog_TestUserControl". So I changed it to the following statement.
<%@ Control Language="VB" AutoEventWireup="false" Inherits="DotNetNuke.Modules.Blog.ViewBlog" %>
2. Added the following section to DNN_Blog.dnn
<module>
<friendlyname>Test_UserControl</friendlyname>
<cachetime>0</cachetime>
<controls>
<control>
<title>Test User Control</title>
<src>DesktopModules/Blog/TestUserControl.ascx</src>
<type>View</type>
</control>
</controls>
</module>
3. Package all the relatives files into a zip file
4. In DotNetNuke installed the Blog module that I just zipped. In a test page I added the Blog module, it displayed all the five original user controls, but it puked about my user control as follows:
Error: is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Modules.Blog.ViewBlog.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---
So what would be the correct procedure to add my own web user control to the existing Blog module?
Thanks,
Brent