-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathProductEdit.ascx
213 lines (211 loc) · 22.3 KB
/
ProductEdit.ascx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<%@ Control Language="c#" AutoEventWireup="True" Codebehind="ProductEdit.ascx.cs" Inherits="DotNetNuke.Modules.Store.WebControls.ProductEdit" targetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<%@ Register TagPrefix="dnn" TagName="TextEditor" Src="~/controls/TextEditor.ascx"%>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<%@ Register TagPrefix="dnn" TagName="SectionHead" Src="~/controls/SectionHeadControl.ascx" %>
<%@ Register TagPrefix="dnn" TagName="URL" Src="~/controls/URLControl.ascx" %>
<asp:Panel ID="pnlCategoriesRequired" runat="server">
<div class="dnnFormMessage dnnFormWarning"><asp:label ID="lblCategoriesRequired" runat="server" ResourceKey="CategoriesRequired"></asp:label></div>
</asp:Panel>
<div class="dnnForm" id="tblProductForm" runat="server">
<fieldset>
<div class="dnnFormItem">
<dnn:label id="lblCategory" runat="server" controlname="cmbCategory"></dnn:label>
<asp:DropDownList id="cmbCategory" Runat="server" DataTextField="CategoryPathName" DataValueField="CategoryID"></asp:DropDownList>
<asp:RequiredFieldValidator id="valRequireCategory" runat="server" ControlToValidate="cmbCategory" resourcekey="valRequireCategory" ErrorMessage="* Category is required." InitialValue="-1" SetFocusOnError="True" CssClass="dnnFormMessage dnnFormError"></asp:RequiredFieldValidator>
</div>
<div class="dnnFormItem">
<dnn:label id="lblManufacturer" runat="server" controlname="txtManufacturer"></dnn:label>
<asp:TextBox id="txtManufacturer" Runat="server" MaxLength="50"></asp:TextBox>
</div>
<div class="dnnFormItem">
<dnn:label id="lblModelNumber" runat="server" controlname="txtModelNumber"></dnn:label>
<asp:TextBox id="txtModelNumber" Runat="server" MaxLength="50"></asp:TextBox>
</div>
<div class="dnnFormItem">
<dnn:label id="lblModelName" runat="server" controlname="txtModelName"></dnn:label>
<asp:TextBox id="txtModelName" Runat="server" MaxLength="50"></asp:TextBox>
<asp:RequiredFieldValidator ID="valRequireModelName" runat="server" ControlToValidate="txtModelName" ErrorMessage="* Model name is required!" resourcekey="valRequireModelName" Display="Dynamic" SetFocusOnError="true" CssClass="dnnFormMessage dnnFormError"></asp:RequiredFieldValidator>
</div>
<div class="dnnFormItem" id="trSEOName" runat="server">
<dnn:label id="lblSEOName" runat="server" controlname="txtSEOName"></dnn:label>
<asp:TextBox id="txtSEOName" Runat="server" MaxLength="50"></asp:TextBox>
<asp:linkbutton id="cmdSuggest" CssClass="dnnSecondaryAction" runat="server" CausesValidation="false" resourcekey="cmdSuggest">Suggest</asp:linkbutton>
<asp:RegularExpressionValidator ID="valRegExSEOName" runat="server" ErrorMessage="Invalid character(s)!" ControlToValidate="txtSEOName" SetFocusOnError="True" ValidationExpression="[_a-zA-Z0-9-]*" Display="Dynamic" CssClass="dnnFormMessage dnnFormError"></asp:RegularExpressionValidator>
</div>
<div class="dnnFormItem" id="trKeywords" runat="server">
<dnn:label id="lblKeywords" runat="server" controlname="txtKeywords"></dnn:label>
<asp:TextBox id="txtKeywords" Runat="server" Height="50" MaxLength="1000" TextMode="MultiLine"></asp:TextBox>
</div>
<div class="dnnFormItem">
<dnn:label id="lblSummary" runat="server" controlname="txtSummary"></dnn:label>
<asp:TextBox id="txtSummary" Runat="server" Height="50" MaxLength="1000" TextMode="MultiLine"></asp:TextBox>
</div>
<div class="dnnFormItem">
<dnn:label id="lblRegularPrice" runat="server" controlname="txtRegularPrice"></dnn:label>
<asp:TextBox id="txtRegularPrice" Runat="server" Width="100" MaxLength="25"></asp:TextBox>
<asp:RequiredFieldValidator id="valRequireRegularPrice" runat="server" ControlToValidate="txtRegularPrice" ErrorMessage="* Regular price is required." resourcekey="valRequireRegularPrice" Display="Dynamic" SetFocusOnError="True" CssClass="dnnFormMessage dnnFormError"></asp:RequiredFieldValidator>
<asp:CompareValidator id="valRegularPrice" runat="server" ErrorMessage="Error! Please enter a valid price." resourcekey="valRegularPrice" Type="Currency" ControlToValidate="txtRegularPrice" Operator="DataTypeCheck" Display="Dynamic" SetFocusOnError="True" CssClass="dnnFormMessage dnnFormError"></asp:CompareValidator>
</div>
<div class="dnnFormItem">
<dnn:label id="lblUnitPrice" runat="server" controlname="txtUnitPrice"></dnn:label>
<asp:TextBox id="txtUnitPrice" Runat="server" Width="100" MaxLength="25"></asp:TextBox>
<asp:RequiredFieldValidator id="valRequireUnitPrice" runat="server" ControlToValidate="txtUnitPrice" ErrorMessage="* Price is required." resourcekey="valRequireUnitPrice" Display="Dynamic" SetFocusOnError="True" CssClass="dnnFormMessage dnnFormError"></asp:RequiredFieldValidator>
<asp:CompareValidator id="valUnitPrice" runat="server" ErrorMessage="Error! Please enter a valid price." resourcekey="valUnitPrice" Type="Currency" ControlToValidate="txtUnitPrice" Operator="DataTypeCheck" Display="Dynamic" SetFocusOnError="True" CssClass="dnnFormMessage dnnFormError"></asp:CompareValidator>
</div>
<div class="dnnFormItem" id="trVirtualProduct" runat="server">
<dnn:label id="lblVirtualProduct" runat="server" controlname="chkVirtualProduct"></dnn:label>
<asp:CheckBox id="chkVirtualProduct" Runat="server" AutoPostBack="True" OnCheckedChanged="chkVirtualProduct_CheckedChanged"></asp:CheckBox>
</div>
</fieldset>
<asp:PlaceHolder id="trVirtualProductSection" runat="server">
<h2 id="fshDownloadInfos" class="dnnFormSectionHead"><a href="#"><asp:Label ID="shDownloadInfos" runat="server" ResourceKey="DownloadInfos">Download Informations</asp:Label></a></h2>
<fieldset>
<div class="dnnFormItem">
<dnn:label id="lblProductFile" runat="server" controlname="urlProductFile"></dnn:label>
<dnn:URL id="urlProductFile" runat="server" EnableViewState="true" width="300" ShowDatabase="false" ShowFiles="true" ShowLog="false" ShowNewWindow="false" ShowNone="true" ShowSecure="false" ShowTabs="false" ShowTrack="false" ShowUpLoad="true" ShowUrls="false" ShowUsers="false" UrlType="N" />
</div>
<div class="dnnFormItem" id="trErrorProductFile" runat="server" visible="false">
<asp:Label ID="lblErrorProductFile" runat="server" resourcekey="lblErrorProductFile"></asp:Label>
</div>
<div class="dnnFormItem">
<dnn:label id="lblAllowedDownloads" runat="server" ControlName="txtAllowedDownloads"></dnn:label>
<asp:TextBox id="txtAllowedDownloads" Runat="server" Width="100" MaxLength="25"></asp:TextBox>
<asp:RequiredFieldValidator id="valRequireAllowedDownloads" runat="server" ControlToValidate="txtAllowedDownloads" ErrorMessage="* Allowed Downloads is required." resourcekey="valRequireAllowedDownloads" Display="Dynamic" SetFocusOnError="True" CssClass="dnnFormMessage dnnFormError"></asp:RequiredFieldValidator>
<asp:CompareValidator id="valAllowedDownloads" runat="server" ErrorMessage="Error! Please enter a valid number." Type="Integer" ControlToValidate="txtAllowedDownloads" Operator="DataTypeCheck" resourcekey="valAllowedDownloads" Display="Dynamic" SetFocusOnError="True" CssClass="dnnFormMessage dnnFormError"></asp:CompareValidator>
</div>
</fieldset>
</asp:PlaceHolder>
<asp:PlaceHolder ID="trProductDimensions" runat="server">
<h2 id="fshProductDimensions" class="dnnFormSectionHead"><a href="#"><asp:Label ID="shProductDimensions" runat="server" ResourceKey="shProductDimensions">Product Dimensions</asp:Label></a></h2>
<fieldset>
<div class="dnnFormItem">
<dnn:label id="lblUnitWeight" runat="server" ControlName="txtUnitWeight"></dnn:label>
<asp:TextBox id="txtUnitWeight" Runat="server" Width="100" MaxLength="25"></asp:TextBox>
<asp:RequiredFieldValidator id="valRequireUnitWeight" runat="server" ControlToValidate="txtUnitWeight" ErrorMessage="* Weight is required." resourcekey="valRequireUnitWeight" Display="Dynamic" SetFocusOnError="True" CssClass="dnnFormMessage dnnFormError"></asp:RequiredFieldValidator>
<asp:CompareValidator id="valUnitWeight" runat="server" ErrorMessage="Error! Please enter a valid weight." Type="Double" ControlToValidate="txtUnitWeight" Operator="DataTypeCheck" resourcekey="valUnitWeight" Display="Dynamic" SetFocusOnError="True" CssClass="dnnFormMessage dnnFormError"></asp:CompareValidator>
</div>
<div class="dnnFormItem">
<dnn:label id="lblUnitHeight" runat="server" ControlName="txtUnitHeight"></dnn:label>
<asp:TextBox id="txtUnitHeight" Runat="server" Width="100" MaxLength="25"></asp:TextBox>
<asp:RequiredFieldValidator id="valRequireUnitHeight" runat="server" ControlToValidate="txtUnitHeight" ErrorMessage="* Height is required." resourcekey="valRequireUnitHeight" Display="Dynamic" SetFocusOnError="True" CssClass="dnnFormMessage dnnFormError"></asp:RequiredFieldValidator>
<asp:CompareValidator id="valUnitHeight" runat="server" ErrorMessage="Error! Please enter a valid height." Type="Double" ControlToValidate="txtUnitHeight" Operator="DataTypeCheck" resourcekey="valUnitHeight" Display="Dynamic" SetFocusOnError="True" CssClass="dnnFormMessage dnnFormError"></asp:CompareValidator>
</div>
<div class="dnnFormItem">
<dnn:label id="lblUnitLength" runat="server" ControlName="txtUnitLength"></dnn:label>
<asp:TextBox id="txtUnitLength" Runat="server" Width="100" MaxLength="25"></asp:TextBox>
<asp:RequiredFieldValidator id="valRequireUnitLength" runat="server" ControlToValidate="txtUnitLength" ErrorMessage="* Length is required." resourcekey="valRequireUnitLength" Display="Dynamic" SetFocusOnError="True" CssClass="dnnFormMessage dnnFormError"></asp:RequiredFieldValidator>
<asp:CompareValidator id="valUnitLength" runat="server" ErrorMessage="Error! Please enter a valid length." Type="Double" ControlToValidate="txtUnitLength" Operator="DataTypeCheck" resourcekey="valUnitLength" Display="Dynamic" SetFocusOnError="True" CssClass="dnnFormMessage dnnFormError"></asp:CompareValidator>
</div>
<div class="dnnFormItem">
<dnn:label id="lblUnitWidth" runat="server" ControlName="txtUnitWidth"></dnn:label>
<asp:TextBox id="txtUnitWidth" Runat="server" Width="100" MaxLength="25"></asp:TextBox>
<asp:RequiredFieldValidator id="valRequireUnitWidth" runat="server" ControlToValidate="txtUnitWidth" ErrorMessage="* Width is required." resourcekey="valRequireUnitWidth" Display="Dynamic" SetFocusOnError="True" CssClass="dnnFormMessage dnnFormError"></asp:RequiredFieldValidator>
<asp:CompareValidator id="valUnitWidth" runat="server" ErrorMessage="Error! Please enter a valid width." Type="Double" ControlToValidate="txtUnitWidth" Operator="DataTypeCheck" resourcekey="valUnitWidth" Display="Dynamic" SetFocusOnError="True" CssClass="dnnFormMessage dnnFormError"></asp:CompareValidator>
</div>
</fieldset>
</asp:PlaceHolder>
<asp:PlaceHolder id="trStockManagement" runat="server">
<h2 id="fshStockManagement" class="dnnFormSectionHead"><a href="#"><asp:Label ID="shStockManagement" runat="server" ResourceKey="shStockManagement">Stock Management</asp:Label></a></h2>
<fieldset>
<div class="dnnFormItem">
<dnn:label id="lblStockQuantity" runat="server" ControlName="txtStockQuantity"></dnn:label>
<asp:TextBox id="txtStockQuantity" Runat="server" Width="100" MaxLength="25"></asp:TextBox>
<asp:RequiredFieldValidator id="valRequireStockQuantity" runat="server" ControlToValidate="txtStockQuantity" ErrorMessage="* Quantity is required." resourcekey="valRequireStockQuantity" Display="Dynamic" SetFocusOnError="True" CssClass="dnnFormMessage dnnFormError"></asp:RequiredFieldValidator>
<asp:CompareValidator id="valStockQuantity" runat="server" ErrorMessage="Error! Please enter a valid quantity." Type="Integer" ControlToValidate="txtStockQuantity" Operator="DataTypeCheck" resourcekey="valStockQuantity" Display="Dynamic" SetFocusOnError="True" CssClass="dnnFormMessage dnnFormError"></asp:CompareValidator>
</div>
<div class="dnnFormItem">
<dnn:label id="lblLowThreshold" runat="server" controlname="txtLowThreshold"></dnn:label>
<asp:TextBox id="txtLowThreshold" Runat="server" Width="100" MaxLength="25"></asp:TextBox>
<asp:RequiredFieldValidator id="valRequireLowThreshold" runat="server" ControlToValidate="txtLowThreshold" ErrorMessage="* Low threshold quantity is required." resourcekey="valRequireLowThreshold" Display="Dynamic" SetFocusOnError="True" CssClass="dnnFormMessage dnnFormError"></asp:RequiredFieldValidator>
<asp:CompareValidator id="valLowThreshold" runat="server" ErrorMessage="Error! Please enter a valid quantity." Type="Integer" ControlToValidate="txtLowThreshold" Operator="DataTypeCheck" resourcekey="valLowThreshold" Display="Dynamic" SetFocusOnError="True" CssClass="dnnFormMessage dnnFormError"></asp:CompareValidator>
</div>
<div class="dnnFormItem">
<dnn:label id="lblHighThreshold" runat="server" controlname="txtHighThreshold"></dnn:label>
<asp:TextBox id="txtHighThreshold" Runat="server" Width="100" MaxLength="25"></asp:TextBox>
<asp:RequiredFieldValidator id="valRequireHighThreshold" runat="server" ControlToValidate="txtHighThreshold" ErrorMessage="* High threshold quantity is required." resourcekey="valRequireHighThreshold" Display="Dynamic" SetFocusOnError="True" CssClass="dnnFormMessage dnnFormError"></asp:RequiredFieldValidator>
<asp:CompareValidator id="valHighThreshold" runat="server" ErrorMessage="Error! Please enter a valid quantity." Type="Integer" ControlToValidate="txtHighThreshold" Operator="DataTypeCheck" resourcekey="valHighThreshold" Display="Dynamic" SetFocusOnError="True" CssClass="dnnFormMessage dnnFormError"></asp:CompareValidator>
</div>
<div class="dnnFormItem">
<dnn:label id="lblDeliveryTime" runat="server" controlname="txtDeliveryTime"></dnn:label>
<asp:TextBox id="txtDeliveryTime" Runat="server" Width="100" MaxLength="25"></asp:TextBox>
<asp:RequiredFieldValidator id="valRequireDeliveryTime" runat="server" ControlToValidate="txtDeliveryTime" ErrorMessage="* Delivery Time is required." resourcekey="valRequireDeliveryTime" Display="Dynamic" SetFocusOnError="True" CssClass="dnnFormMessage dnnFormError"></asp:RequiredFieldValidator>
<asp:CompareValidator id="valDeliveryTime" runat="server" ErrorMessage="Error! Please enter a valid number of days." Type="Integer" ControlToValidate="txtDeliveryTime" Operator="DataTypeCheck" resourcekey="valDeliveryTime" Display="Dynamic" SetFocusOnError="True" CssClass="dnnFormMessage dnnFormError"></asp:CompareValidator>
</div>
<div class="dnnFormItem">
<dnn:label id="lblPurchasePrice" runat="server" controlname="txtPurchasePrice"></dnn:label>
<asp:TextBox id="txtPurchasePrice" Runat="server" Width="100" MaxLength="25"></asp:TextBox>
<asp:RequiredFieldValidator id="valRequirePurchasePrice" runat="server" ControlToValidate="txtPurchasePrice" ErrorMessage="* Purchase price is required." resourcekey="valRequirePurchasePrice" Display="Dynamic" SetFocusOnError="True" CssClass="dnnFormMessage dnnFormError"></asp:RequiredFieldValidator>
<asp:CompareValidator id="valPurchasePrice" runat="server" ErrorMessage="Error! Please enter a valid price." resourcekey="valPurchasePrice" Type="Currency" ControlToValidate="txtPurchasePrice" Operator="DataTypeCheck" Display="Dynamic" SetFocusOnError="True" CssClass="dnnFormMessage dnnFormError"></asp:CompareValidator>
</div>
</fieldset>
</asp:PlaceHolder>
<fieldset>
<div class="dnnFormItem">
<dnn:label id="lblArchived" runat="server" controlname="chkArchived"></dnn:label>
<asp:CheckBox id="chkArchived" Runat="server"></asp:CheckBox>
</div>
<div class="dnnFormItem" id="trProductRole" runat="server">
<dnn:label id="lblRole" runat="server" controlname="lstRole"></dnn:label>
<asp:dropdownlist id="lstRole" runat="server" autopostback="False"></asp:dropdownlist>
</div>
<div class="dnnFormItem">
<dnn:label id="lblFeatured" runat="server" controlname="chkFeatured"></dnn:label>
<asp:CheckBox id="chkFeatured" Runat="server" OnCheckedChanged="chkFeatured_CheckedChanged" AutoPostBack="True"></asp:CheckBox>
</div>
</fieldset>
<asp:PlaceHolder ID="trFeatured" runat="server">
<h2 id="fshSpecialOffer" class="dnnFormSectionHead"><a href="#"><asp:Label ID="shSpecialOffer" runat="server" ResourceKey="shSpecialOffer">Special Offer Pricing</asp:Label></a></h2>
<fieldset>
<div class="dnnFormItem">
<dnn:label id="lblSalePrice" runat="server" controlname="txtSalePrice"></dnn:label>
<asp:TextBox id="txtSalePrice" Runat="server" Width="100" MaxLength="25"></asp:TextBox>
<asp:RequiredFieldValidator ID="valRequireSalePrice" runat="server" ControlToValidate="txtSalePrice" ErrorMessage="* Sale price is required." resourcekey="valRequireSalePrice" Display="Dynamic" SetFocusOnError="true" CssClass="dnnFormMessage dnnFormError"></asp:RequiredFieldValidator>
<asp:CompareValidator id="valSalePrice" runat="server" ErrorMessage="Error! Please enter a valid price." resourcekey="valSalePrice" Type="Currency" ControlToValidate="txtSalePrice" Operator="DataTypeCheck" Display="Dynamic" SetFocusOnError="true" CssClass="dnnFormMessage dnnFormError"></asp:CompareValidator>
</div>
<div class="dnnFormItem">
<dnn:label id="lblSaleStartDate" runat="server" controlname="txtSaleStartDate"></dnn:label>
<asp:TextBox ID="txtSaleStartDate" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="valRequireSaleStartDate" runat="server" ControlToValidate="txtSaleStartDate" ErrorMessage="* Sale start date is required." resourcekey="valRequireSaleStartDate" Display="Dynamic" SetFocusOnError="true" CssClass="dnnFormMessage dnnFormError"></asp:RequiredFieldValidator>
<asp:comparevalidator id="valSaleStartDate" runat="server" resourcekey="valSaleStartDate" display="Dynamic" type="Date" operator="DataTypeCheck" errormessage="Error! Please enter a valid date." controltovalidate="txtSaleStartDate" CssClass="dnnFormMessage dnnFormError"></asp:comparevalidator>
<asp:HyperLink ID="cmdSaleStartDate" runat="server" CssClass="dnnSecondaryAction"></asp:HyperLink>
</div>
<div class="dnnFormItem">
<dnn:label id="lblSaleEndDate" runat="server" controlname="txtSaleEndDate"></dnn:label>
<asp:TextBox ID="txtSaleEndDate" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="valRequireSaleEndDate" runat="server" ControlToValidate="txtSaleEndDate" ErrorMessage="* Sale end date is required." resourcekey="valRequireSaleEndDate" Display="Dynamic" SetFocusOnError="true" CssClass="dnnFormMessage dnnFormError"></asp:RequiredFieldValidator>
<asp:comparevalidator id="valSaleEndDate" runat="server" resourcekey="valSaleEndDate" display="Dynamic" type="Date" operator="DataTypeCheck" errormessage="Error! Please enter a valid date." controltovalidate="txtSaleEndDate" CssClass="dnnFormMessage dnnFormError"></asp:comparevalidator>
<asp:comparevalidator id="valSaleDates" runat="server" resourcekey="valSaleDates" display="Dynamic" type="Date" operator="GreaterThan" errormessage="* Sale end date must be greater than sale start date!" controltovalidate="txtSaleEndDate" controltocompare="txtSaleStartDate" CssClass="dnnFormMessage dnnFormError"></asp:comparevalidator>
<asp:HyperLink ID="cmdSaleEndDate" runat="server" CssClass="dnnSecondaryAction"></asp:HyperLink>
</div>
</fieldset>
</asp:PlaceHolder>
<fieldset>
<div class="dnnFormItem">
<dnn:label id="lblImage" runat="server" controlname="imgProduct"></dnn:label>
<dnn:URL id="imgProduct" runat="server" EnableViewState="true" width="300" ShowDatabase="false" ShowFiles="true" ShowLog="false" ShowNewWindow="false" ShowNone="true" ShowSecure="false" ShowTabs="false" ShowTrack="false" ShowUpLoad="true" ShowUrls="true" ShowUsers="false" UrlType="N" />
<div class="dnnFormMessage dnnFormWarning" id="trWarningTrustLevel" runat="server" visible="false"><asp:Label ID="lblWarningTrustLevel" runat="server" Text="Warning Trust Level"></asp:Label></div>
</div>
<div class="dnnFormItem">
<dnn:label id="lblDescription" runat="server" controlname="txtDescription"></dnn:label>
<dnn:TextEditor id="txtDescription" runat="server" width="100%" height="500"></dnn:TextEditor>
</div>
</fieldset>
<ul class="dnnActions dnnClear">
<li><asp:linkbutton id="cmdUpdate" CssClass="dnnPrimaryAction" runat="server" resourcekey="cmdUpdate">Update</asp:linkbutton></li>
<li><asp:linkbutton id="cmdCancel" CssClass="dnnSecondaryAction" runat="server" CausesValidation="False" resourcekey="cmdCancel">Cancel</asp:linkbutton></li>
<li><asp:linkbutton id="cmdDelete" CssClass="dnnSecondaryAction" runat="server" CausesValidation="False" Visible="False" resourcekey="cmdDelete">Delete</asp:linkbutton></li>
</ul>
</div>
<script type="text/javascript">
jQuery(function ($) {
var setupProductEdit = function () {
$('.dnnForm').dnnPanels();
};
setupProductEdit();
Sys.WebForms.PageRequestManager.setupProductEdit().add_endRequest(function () {
// note that this will fire when _any_ UpdatePanel is triggered,
// which may or may not cause an issue
setupProductEdit();
});
});
</script>