or
| <telerik:RadGrid ID="ItemGrid" runat="server" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" |
| AllowAutomaticUpdates="True" AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True" |
| DataSourceID="ItemsLDS" GridLines="None" Skin="WebBlue" AllowPaging="True"> |
| <MasterTableView AutoGenerateColumns="False" DataKeyNames="ItemID" DataSourceID="ItemsLDS" |
| CommandItemDisplay="Top"> |
| <RowIndicatorColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </RowIndicatorColumn> |
| <NestedViewTemplate> |
| <asp:Label ID="Label1" runat="server" Text='<%# Eval("ItemID") %>' Visible="False"></asp:Label> |
| <asp:LinqDataSource ID="ImagesLDS" runat="server" ContextTypeName="CatalystDataContext" |
| TableName="Images" Where="ItemID == @ItemID" EnableDelete="True" EnableInsert="True" |
| EnableUpdate="True" OnInserting="ImagesLDS_Inserting"> |
| <WhereParameters> |
| <asp:ControlParameter ControlID="Label1" Name="ItemID" PropertyName="Text" Type="Int32" /> |
| </WhereParameters> |
| </asp:LinqDataSource> |
| <table> |
| <tr> |
| <td valign="top"> |
| <telerik:RadGrid ID="ImagesGrid" runat="server" DataSourceID="ImagesLDS" GridLines="None" |
| AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" |
| AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True" HorizontalAlign="Left" |
| Skin="WebBlue"> |
| <MasterTableView DataSourceID="ImagesLDS" AutoGenerateColumns="False" DataKeyNames="ImageID" |
| CommandItemDisplay="Bottom" EditMode="InPlace"> |
| <RowIndicatorColumn> |
| <HeaderStyle Width="20px" /> |
| </RowIndicatorColumn> |
| <ExpandCollapseColumn> |
| <HeaderStyle Width="20px" /> |
| </ExpandCollapseColumn> |
| <CommandItemSettings AddNewRecordText="Add New Image" /> |
| <Columns> |
| <telerik:GridBoundColumn DataField="ImageID" DataType="System.Int32" HeaderText="ImageID" |
| ReadOnly="True" SortExpression="ImageID" UniqueName="ImageID" Visible="False"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="ItemID" DataType="System.Int32" HeaderText="ItemID" |
| SortExpression="ItemID" UniqueName="ItemID" Visible="False"> |
| </telerik:GridBoundColumn> |
| <telerik:GridTemplateColumn DataField="ImageURL" HeaderText="Image" SortExpression="ImageURL" |
| UniqueName="ImageURL"> |
| <EditItemTemplate> |
| <asp:TextBox ID="ImageURLTextBox" runat="server" Text='<%# Bind("ImageURL") %>'></asp:TextBox> |
| </EditItemTemplate> |
| <ItemTemplate> |
| <asp:Image ID="Image1" runat="server" AlternateText='<%# Eval("Description") %>' |
| Height="50px" ImageAlign="AbsMiddle" ImageUrl='<%# Eval("ImageURL") %>' Width="50px" /> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| <telerik:GridBoundColumn DataField="Description" HeaderText="Alt. Text" SortExpression="Description" |
| UniqueName="Description"> |
| </telerik:GridBoundColumn> |
| </Columns> |
| </MasterTableView> |
| </telerik:RadGrid> |
| </td> |
| </tr> |
| </table> |
| </NestedViewTemplate> |
<
add assembly="Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/>
<httpHandlers>
<add path="Telerik.Web.UI.WebResource.axd" verb="*"
type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
validate="false" />
</
httpHandlers>
| Could not load file or assembly 'System, Version=1.0.7.30072, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified. |
| Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. |
| Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'System, Version=1.0.7.30072, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified. |
| Source Error: |
| An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
| Assembly Load Trace: The following information can be helpful to determine why the assembly 'System, Version=1.0.7.30072, Culture=neutral, PublicKeyToken=c5687fc88969c44d' could not be loaded. |