473,396 Members | 2,129 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

i have got the error that literal content is not allowed within 'System.Web.Ui.WebCon

Expand|Select|Wrap|Line Numbers
  1. <%@ Page Title="" Language="C#" MasterPageFile="~/retailer/MasterPage.master" AutoEventWireup="true" CodeFile="frmprddet.aspx.cs" Inherits="retailer_Default" %> <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <script type="text/javascript" src="https://bytes.com/../js/jquery-1.7.1.js"></script> <script type="text/javascript" src="https://bytes.com/../js/jquery.colorbox.min.js"></script> <script type="text/javascript">
  2.     jQuery(document).ready(function ($) {
  3.         var a = "";
  4.         $("#small-selector").colorbox({
  5.             labels: [
  6.                 'Black', 'Brown', 'Red', 'Columbia', 'DkGreen', 'Gold', 'Gray',
  7.                 'YelloW', 'Maroon', 'Navy', 'Orange', 'Pink', 'Purple', 'Red', 'Royal', 'White'
  8.             ],
  9.             colors: [
  10.                 '000000', '502800', 'f30806', '1F2264', '003200', '646400', '4B4B4B', 'FFFF00',
  11.                 '320000', '000032', '643C00', '642864', '330032', '640000', '000064', 'fdfdfd'
  12.             ],
  13.             width: 30,
  14.             height: 30,
  15.             top: 0,
  16.             left: 0,
  17.             perLine: 4,
  18.             onSelect: function ($selected, color, index, label) {
  19.                 $("#RosterHomeJersey").val(index);
  20.                 $("#ContentPlaceHolder1_TabContainer1_TabPanel1_txtcol").val(label);
  21.              //   alert("dff");
  22.                 if (a == '') {
  23.  
  24.                     a = $("#ContentPlaceHolder1_TabContainer1_TabPanel1_txtcol").val();
  25.                 }
  26.                 else {
  27.                     a = a + "," + $("#ContentPlaceHolder1_TabContainer1_TabPanel1_txtcol").val();
  28.                 }
  29.  
  30.                 $("#ContentPlaceHolder1_TabContainer1_TabPanel1_txtcol").val(a);
  31.             }
  32.         });
  33.         $("#ContentPlaceHolder1_TabContainer1_TabPanel1_txtcol").keyup(function () {
  34.             a = "";
  35.         })
  36.  
  37.     });
  38.     function ValidateCheckBoxList(sender, args) {
  39.         var checkBoxList = document.getElementById("<%=CheckBox1.ClientID %>");
  40.          var checkboxes = checkBoxList.getElementsByTagName("input");
  41.          var isValid = false;
  42.          for (var i = 0; i < checkboxes.length; i++) {
  43.              if (checkboxes[i].checked) {
  44.                  isValid = true;
  45.                  break;
  46.              }
  47.          }
  48.          args.IsValid = isValid;
  49.      }
  50.     </script> <h6>Product Details</h6> <p> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" Height="465px" Width="633px"> <asp:TabPanel runat="server" HeaderText="Basic Details" ID="TabPanel1"> <ContentTemplate>
  51.  
  52.  
  53. ***********
  54.  
  55.             <br />
  56.  
  57. ***********
  58.             <table style="width: 100%; height: 280px;">
  59.  
  60. ***************
  61.                 <tr>
  62.  
  63. *******************
  64.                     <td style="width: 153px; color: #CC0066;">Select Brand</td>
  65.  
  66. *******************
  67.                     <td>
  68.  
  69. ***********************
  70.                         <asp:DropDownList ID="drpbrd" runat="server" DataSourceID="ObjectDataSource1" DataTextField="brdnam" DataValueField="brdcod" AutoPostBack="True" ForeColor="#6699FF"> </asp:DropDownList>
  71.  
  72.  
  73. *******************
  74.                     </td>
  75.  
  76. ***************
  77.                 </tr>
  78.  
  79. ***************
  80.                 <tr>
  81.  
  82. *******************
  83.                     <td style="width: 153px; color: #CC0066;">Select Product Type</td>
  84.  
  85. *******************
  86.                     <td>
  87.  
  88. ***********************
  89.                         <asp:DropDownList ID="drpprdtyp" runat="server" DataSourceID="ObjectDataSource2" DataTextField="prdtypnam" DataValueField="prdtypcod" ForeColor="#6699FF"> </asp:DropDownList>
  90.  
  91.  
  92. *******************
  93.                     </td>
  94.  
  95. ***************
  96.                 </tr>
  97.  
  98. ***************
  99.                 <tr>
  100.  
  101. *******************
  102.                     <td style="width: 153px; color: #CC0066;">Product Name</td>
  103.  
  104. *******************
  105.                     <td>
  106.  
  107. ***********************
  108.                         <asp:TextBox ID="txtprdnam" runat="server" Width="300px"></asp:TextBox>
  109.  
  110.  
  111. ***********************
  112.                         *<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtprdnam" ErrorMessage="*"></asp:RequiredFieldValidator>
  113.  
  114.  
  115. *******************
  116.                     </td>
  117.  
  118. ***************
  119.                 </tr>
  120.  
  121. ***************
  122.                 <tr>
  123.  
  124. *******************
  125.                     <td style="width: 153px; color: #CC0066;">Price</td>
  126.  
  127. *******************
  128.                     <td>
  129.  
  130. ***********************
  131.                         <asp:TextBox ID="txtprc" runat="server" Width="300px"></asp:TextBox>
  132.  
  133.  
  134. ***********************
  135.                         <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtprc" ErrorMessage="*"></asp:RequiredFieldValidator>
  136.  
  137.  
  138. ***********************
  139.                         *<asp:RegularExpressionValidator ID="RegularExpressionValidator1" ValidationExpression="^[0-9]{0,3}.?[0-9]{1}$" runat="server" ControlToValidate="txtprc" ErrorMessage="*"></asp:RegularExpressionValidator>
  140.  
  141.  
  142. *******************
  143.                     </td>
  144.  
  145. ***************
  146.                 </tr>
  147.  
  148. ***************
  149.                 <tr>
  150.  
  151. *******************
  152.                     <td style="width: 153px; color: #CC0066;">Colors Available</td>
  153.  
  154. *******************
  155.                     <td>
  156.  
  157. ***********************
  158.                         <table>
  159.  
  160. ***************************
  161.                             <tr>
  162.  
  163. *******************************
  164.                                 <td>
  165.  
  166. ***********************************
  167.                                     <asp:TextBox ID="txtcol" runat="server" Height="19px" Width="295px"></asp:TextBox>
  168.  
  169.  
  170. *******************************
  171.                                 </td>
  172.  
  173. *******************************
  174.                                 <td>
  175.  
  176. ***********************************
  177.                                     <div style="height: 57px;">
  178.  
  179. ***************************************
  180.                                         ***
  181. ***************************************
  182.                                         <div style="position: relative;">
  183.  
  184. *******************************************
  185.                                             <div id="small-selector" style="width: 30px;height: 20px;cursor: pointer;background-color:red;">
  186.  
  187. ***********************************************
  188.                                                 **
  189. *******************************************
  190.                                             </div>
  191.  
  192. ***************************************
  193.                                         </div>
  194.  
  195. ***********************************
  196.                                     </div>
  197.  
  198. *******************************
  199.                                 </td>
  200.  
  201. *******************************
  202.                                 <td style="width: 3px">
  203.  
  204. ***********************************
  205.                                     <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*" ControlToValidate="txtcol"></asp:RequiredFieldValidator> </td>
  206.  
  207. ***************************
  208.                             </tr>
  209.  
  210. ***********************
  211.                         </table>
  212.  
  213. *******************
  214.                     </td>
  215.  
  216. ***************
  217.                 </tr>
  218.  
  219. ***************
  220.                 <tr>
  221.  
  222. *******************
  223.                     <td style="width: 153px; color: #CC0066;">Sizes Available</td>
  224.  
  225. *******************
  226.                     <td><table><tr><td> *<asp:CheckBoxList ID="CheckBoxList1" RepeatDirection="Horizontal" runat="server"> <asp:ListItem Value="M">Medium</asp:ListItem> <asp:ListItem Value="L">Large</asp:ListItem> <asp:ListItem Value="X">X-Large</asp:ListItem> </asp:CheckBoxList> </td><td style="width: 3px"> *<asp:CustomValidator ID="CustomValidator1" ErrorMessage="*"
  227.     ForeColor="Black" ClientValidationFunction="ValidateCheckBoxList" runat="server" /> </td></tr></table>
  228.  
  229.  
  230.  
  231.  
  232. ********************** 
  233. ********************** 
  234. ********************** 
  235. *******************
  236.  
  237.  
  238.  
  239.                     </td>
  240.  
  241. ***************
  242.                 </tr>
  243.  
  244. ***************
  245.                 <script type="text/javascript">
  246.                     function ValidateCheckBoxList(source, args) {
  247.                         var chkListModules = document.getElementById('<%= CheckBoxList1.ClientID %>');
  248.            var chkListinputs = chkListModules.getElementsByTagName("input");
  249.            for (var i = 0; i < chkListinputs.length; i++) {
  250.                if (chkListinputs[i].checked) {
  251.                    args.IsValid = true;
  252.                    return;
  253.                }
  254.            }
  255.            args.IsValid = false;
  256.        }
  257.  
  258.    </script>
  259.  
  260. ***************
  261.                 <tr>
  262.  
  263. *******************
  264.                     <td style="width: 153px; color: #CC0066;">Details</td>
  265.  
  266. *******************
  267.                     <td>
  268.  
  269. ***********************
  270.                         <asp:TextBox ID="txtdet" runat="server" Height="67px" TextMode="MultiLine" Width="300px"></asp:TextBox>
  271.  
  272.  
  273. ***********************
  274.                         <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtdet" ErrorMessage="*"></asp:RequiredFieldValidator>
  275.  
  276.  
  277. *******************
  278.                     </td>
  279.  
  280. ***************
  281.                 </tr>
  282.  
  283. ***************
  284.                 <tr>
  285.  
  286. *******************
  287.                     <td style="width: 153px; color: #CC0066;">Composition</td>
  288.  
  289. *******************
  290.                     <td>
  291.  
  292. ***********************
  293.                         <asp:TextBox ID="txtcom" runat="server" Height="67px" TextMode="MultiLine" Width="297px"></asp:TextBox>
  294.  
  295.  
  296. ***********************
  297.                         <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtcom" ErrorMessage="*"></asp:RequiredFieldValidator>
  298.  
  299.  
  300. *******************
  301.                     </td>
  302.  
  303. ***************
  304.                 </tr>
  305.  
  306.  
  307. *************** 
  308. ***************
  309.  
  310.                 <tr>
  311.  
  312. *******************
  313.                     <td style="width: 153px">*</td>
  314.  
  315. *******************
  316.                     <td>
  317.  
  318. ***********************
  319.                         <asp:Button ID="Button1" runat="server" Text="Submit" OnClick="Button1_Click" ForeColor="#CC0066" />
  320.  
  321.  
  322. ***********************
  323.                         **
  324. ***********************
  325.                         <asp:Button ID="Button2" runat="server" Text="Cancel" ForeColor="#CC0066" />
  326.  
  327.  
  328. *******************
  329.                     </td>
  330.  
  331. ***************
  332.                 </tr>
  333.  
  334. ***************
  335.                 <tr>
  336.  
  337. *******************
  338.                     <td style="width: 153px">*</td>
  339.  
  340. *******************
  341.                     <td>
  342.  
  343. ***********************
  344.                         <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="disp_rec" TypeName="nsshop.clsbrd"></asp:ObjectDataSource>
  345.  
  346.  
  347. ***********************
  348.                         <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="disp_rec" TypeName="nsshop.clsprdtyp"> <SelectParameters> <asp:ControlParameter ControlID="drpbrd" Name="brdcod" PropertyName="SelectedValue" Type="Int32" /> </SelectParameters> </asp:ObjectDataSource>
  349.  
  350.  
  351. *******************
  352.                     </td>
  353.  
  354. ***************
  355.                 </tr>
  356.  
  357. ***********
  358.             </table>
  359.  
  360.  
  361.  
  362. ******* 
  363.  
  364.         </ContentTemplate> </asp:TabPanel> <asp:TabPanel runat="server" HeaderText="Images" ID="TabPanel2"> <ContentTemplate>
  365.  
  366.  
  367.  
  368. **********
  369.  
  370.            <br />
  371.  
  372. **********
  373.            <table style="width: 100%">
  374.  
  375. **************
  376.                <tr>
  377.  
  378. ******************
  379.                    <td style="width: 122px">Browse Image</td>
  380.  
  381. ******************
  382.                    <td>
  383.  
  384. **********************
  385.                        <asp:FileUpload ID="FileUpload1" runat="server" />
  386.  
  387. ******************
  388.                    </td>
  389.  
  390. **************
  391.                </tr>
  392.  
  393. **************
  394.                <tr>
  395.  
  396. ******************
  397.                    <td style="width: 122px">Set as main image</td>
  398.  
  399. ******************
  400.                    <td>
  401.  
  402. **********************
  403.                        <asp:CheckBox ID="CheckBox1" runat="server" />
  404.  
  405. ******************
  406.                    </td>
  407.  
  408. **************
  409.                </tr>
  410.  
  411. **************
  412.                <tr>
  413.  
  414. ******************
  415.                    <td style="width: 122px">*</td>
  416.  
  417. ******************
  418.                    <td>
  419.  
  420. **********************
  421.                        <asp:Button ID="Button3" runat="server" OnClick="Button3_Click" Text="Upload" />
  422.  
  423. ******************
  424.                    </td>
  425.  
  426. **************
  427.                </tr>
  428.  
  429. **************
  430.                <tr>
  431.  
  432. ******************
  433.                    <td colspan="2">
  434.  
  435. **********************
  436.                        <asp:DataList ID="DataList1" runat="server" RepeatColumns="4" RepeatDirection="Horizontal" Width="616px" DataKeyField="prdpiccod" OnDeleteCommand="DataList1_DeleteCommand">
  437.  
  438. **********************
  439.                        <ItemTemplate>
  440.  
  441. **************************
  442.                            <table border="2">
  443.  
  444. ******************************
  445.                                <tr>
  446.  
  447. **********************************
  448.                                    <td align ="center">
  449.  
  450. ***************
  451.                 <img src="https://bytes.com/topic/asp-net/prdpics/<%#Eval("prdpiccod") %><%#Eval("prdpicpic") %>" height="120px" width="120px" />
  452.  
  453. **********************************
  454.                                    </td>
  455.  
  456. ******************************
  457.                                </tr>
  458.  
  459. ******************************
  460.                                <tr>
  461.  
  462. **********************************
  463.                                    <td align="center">
  464.  
  465. *******************
  466.                     <asp:LinkButton ID="lk1" runat="server" CommandName="Edit"  />
  467.  
  468. **********************************
  469.                                    </td>
  470.  
  471. ******************************
  472.                                </tr>
  473.  
  474. ******************************
  475.                                <tr>
  476.  
  477. **********************************
  478.                                    <td align="center">
  479.  
  480. *****************
  481.                   <asp:LinkButton ID="lk2" runat="server" CommandName="Delete" Text="Delete" />
  482.  
  483. **********************************
  484.                                    </td>
  485.  
  486. ******************************
  487.                                </tr>
  488.  
  489. **************************
  490.                            </table>
  491.  
  492. **********************
  493.                        </ItemTemplate>
  494.  
  495. **********************
  496.                        </asp:DataList>
  497.  
  498. ******************
  499.                    </td>
  500.  
  501. **************
  502.                </tr>
  503.  
  504. **********
  505.            </table>
  506.  
  507.  
  508.  
  509. ****** 
  510.  
  511.        </ContentTemplate> </asp:TabPanel> </asp:TabContainer> </p> <p>
  512.         *</p> </asp:Content>
Dec 8 '15 #1
0 1745

Sign in to post your reply or Sign up for a free account.

Similar topics

22
by: Trevor Orton | last post by:
Hello, I'm having a slight problem using the W3C html validator and I've reviewed the FAQ's with no luck so hopefully someone here would be kind enough to point me in the right direction. I...
1
by: Paul T. Rong | last post by:
I can not understand why the message appears everytime when I install the packed app (using 2k PDW) "error while registering C:\WINDOWS\SYSTEM\MSADO21.TLB"(I don't remember exactly what it says),...
0
by: Dave | last post by:
Can I create a user control so that when I drop it on the web form I can put text between the start and end tags as listed <uc1:KeyFeatures id="KeyFeatures1" runat="server"...
1
by: Alan Silver | last post by:
Hello, I am just converting a 1.1 web site to use version 2.0 of the framework and have run into a weird problem trying to add a skin file. I set up a theme, and moved the CSS file in there,...
2
by: hazz | last post by:
putting a custom control in an aspx page that inherits from a master page is not working out for me. Any tips after getting that error? Also Element 'Search' is not a known element. This can occur...
0
by: John Smith | last post by:
This is what I am trying to do: <asp:datagrid id="DataGrid1" runat="server" AutoGenerateColumns="False"> <Columns> <asp:BoundColumn Visible="False" DataField="id" ReadOnly="True"...
0
by: John Smith | last post by:
This is what I am trying to do: <asp:datagrid id="DataGrid1" runat="server" AutoGenerateColumns="False"> <Columns> <asp:BoundColumn Visible="False" DataField="id" ReadOnly="True"...
1
by: muchexie | last post by:
I'm developing an online learning system and I want to be assisted how to edit content into the system.
2
by: purnimakarnati | last post by:
When I added a textbox and assigned the value to the textbox and added to htmltablecell while debugging I am able to see the correct assigned value but if I see the contents in the HTMLTABLE in...
0
by: Elmo Watson | last post by:
I have a class - I Dim a SQLconnection, then, in Sub New, I instantiate it, so that it's available to me whenever I reference the class (correct?): Conn = New SqlConnection(msConn) Then, in my...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.