I have setup a fresh install of the latest DNN as per the wiki (Setting up development environment)
I am trying to develop a carousel module. In the settings ascx page in the template I have created a placeholder:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Settings.ascx.cs" Inherits="Christoc.Modules.BootStrap_Carousel.Settings" %>
<h2 id="dnnSitePanel-BasicSettings" class="dnnFormSectionHead"><a href="" class="dnnSectionExpanded"><%=LocalizeString("BasicSettings")%></a></h2>
<asp:PlaceHolder ID="PHsettings" runat="server" ></asp:PlaceHolder>
<asp:Button ID="lnkAdd" runat="server" OnClick="lnkAdd_Click" Text="Add Slide" />
I have created a custom Web User Control that include my configuration for each Slide of the carousel. When the user goes into the settings he can "Add Slide" for as many slides as he requires. The custom Web User Control is nothing more than a few textbox's and styling.
As required by Web Forms, I have am required to maintain my own ViewState for Web User Controls. I have been strugglign with this. So I did a simple test, and added a
ViewState["myTest"] = "this is a test";
and then a
object test = ViewState["myTest"];
after post back. When I debug it, the viewstate is null..
I havent changed any defuatts settings with DotNetNuke...