Vladan, Thanks for the help. I'm new to Dnn Modules and this really has me stumped. I believe I have inhertited the PortalModuleBase correctly.
Imports
DotNetNuke
Imports
System.Web.UI
Imports
System.Web.UI.WebControls
Imports
System.Collections.Generic
Imports
System.Globalization
Imports
System.Text
Imports
System.Reflection
Imports
DotNetNuke.Entities.Modules
Namespace
PSLPD.Modules.OverTime
Partial Class ViewOverTime
Inherits DotNetNuke.Entities.Modules.PortalModuleBase
Implements DotNetNuke.Entities.Modules.IActionable
I am not sure what you are talking about with the .designer file, where would I find that?
Here is the control from the ascx page.
<
asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" CellPadding="4"
DataSourceID="ObjectDataSource_OTDetail" DataKeyNames="ID" ForeColor="#333333" GridLines="None"
Height="50px" Width="125px" BorderColor="Gray" BorderStyle="Ridge">
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<CommandRowStyle BackColor="#E2DED6" Font-Bold="True" />
<EditRowStyle BackColor="#999999" />
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
<Fields>
<asp:BoundField Fields Omitted to shorten Message
<asp:CommandField ShowEditButton="True" EditText="Sign-Up" />
</Fields>
<FieldHeaderStyle BackColor="#E9ECF1" Font-Bold="True" />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<HeaderTemplate>
You have Selected to Sign-Up for...
</HeaderTemplate>
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
<FooterTemplate>
<asp:Label ID="ShiftIsFilledMessage" runat="server" BackColor="Yellow" BorderColor="Red"
BorderStyle="Ridge" EnableViewState="False" Font-Bold="True" ForeColor="Red"
Text="This Shift is Already Filled!" ToolTip="The Shift is Filled, Select Another Shift from the OT Board." Visible="True"></asp:Label>
</FooterTemplate>
</asp:DetailsView>
The ShiftIsFilledMessage Label is in the FooterTemplate and I want to hide it on Page_Load and have only visible if a condition is met during the DetailsView1_ItemUpdating method.
Any help is greatly appreciated.
John