in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Bind WebEdit to data source

Last post 05-20-2008 1:22 PM by patricio.carpio. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-17-2008 9:55 PM

    Bind WebEdit to data source

    I'm trying to bind a Web Editor to an object data source using the text property. I'm able to see the text that comes from the ODS on the Web Editor, but when i fire the ODS' update event, it uses the original text and not the new text of the Web Editor.

    Do I need to do something special on the ODS or the WE? (I'm using VS 2005 with ASP 2.0)

     

     

  • 05-20-2008 1:22 PM In reply to

    Bind WebEdit to data source (code)

    OK. Maybe nobody understood my post. Here is my code. The WebEditor is on a FormView that fires the method update. Whe I replace it by a TextBox works fine, but not when I  use the WebEditor. It only sends the original text.

    <asp:FormView ID="FormView" runat="server" BorderColor="Maroon" BorderStyle="Solid"

    BorderWidth="1px" DataKeyNames="Id" DataSourceID="odsMenu" DefaultMode="Edit">

    <EditItemTemplate>

    Notes: (special indications for this menu)<br />

    <C1WebEditor:C1WebEditor ID="txtNotes" runat="server" BorderColor="#A3A37C" BorderStyle="Solid"

    BorderWidth="1px" EditorBackColor="White" EditorForeColor="Black" Height="170px"

    RemovedButtons="Insert Horizontal Line,DropDown CSS Class,DropDown Format" ShowPathSelector="False"

    ShowSpellCheckerDialog="False" ShowTableBorders="False" Text='<%# Bind("Notes") %>'

    ToolBarsSet="Style, Formatting" UseDefaultStyle="False" Width="1000px" OnTextSaved="txtNotes_TextSaved">

    <ToolBarItemPressedStyle BackColor="#98B5E2" BorderColor="#316AC5" BorderStyle="Solid"

    BorderWidth="1px" Cursor="Default">

    </ToolBarItemPressedStyle>

    <BottomToolBarPanelStyle BackColor="#E5E5D7">

    <BorderDetailed BorderTopColor="#A3A37C" BorderTopStyle="Solid" BorderTopWidth="1px" />

    </BottomToolBarPanelStyle>

    <ToolBarSeparatorStyle BackgroundImage="res:af_sep_vs05.gif">

    </ToolBarSeparatorStyle>

    <SpellCheckerTheme>

    <TextElementsStyle Font-Names="Tahoma,Verdana,Arial,Helvetica,sans-serif" Font-Size="11px">

    </TextElementsStyle>

    <TextInputElementsStyle Font-Names="Tahoma,Verdana,Arial,Helvetica,sans-serif" Font-Size="11px">

    </TextInputElementsStyle>

    <ButtonsStyle BackgroundImage="res:af_spelldlg_button_vs05.gif" Cursor="Default"

    Font-Names="Tahoma,Verdana,Arial,Helvetica,sans-serif" Font-Size="11px" HorizontalAlign="Center"

    VerticalAlign="Middle">

    </ButtonsStyle>

    <ButtonsHotStyle BackgroundImage="res:af_spelldlg_button_hover_vs05.gif" Cursor="Default"

    Font-Names="Tahoma,Verdana,Arial,Helvetica,sans-serif" Font-Size="11px" HorizontalAlign="Center"

    VerticalAlign="Middle">

    </ButtonsHotStyle>

    <ButtonsPressedStyle BackgroundImage="res:af_spelldlg_button_hover_vs05.gif" Cursor="Default"

    Font-Names="Tahoma,Verdana,Arial,Helvetica,sans-serif" Font-Size="11px" HorizontalAlign="Center"

    VerticalAlign="Middle">

    </ButtonsPressedStyle>

    <ButtonsDisabledStyle BackgroundImage="res:af_spelldlg_button_vs05.gif" Cursor="Default"

    Font-Names="Tahoma,Verdana,Arial,Helvetica,sans-serif" Font-Size="11px" HorizontalAlign="Center"

    Transparent="50" VerticalAlign="Middle">

    </ButtonsDisabledStyle>

    <DialogTheme>

    <CaptionButtons>

    <CloseButton HoverImageUrl="res:DialogWindowSchemes.WinXPBlue.CloseOver.gif" ImageUrl="res:DialogWindowSchemes.WinXPBlue.Close.gif"

    Tooltip="Close" />

    <MaximizeButton HoverImageUrl="res:DialogWindowSchemes.WinXPBlue.MaximizeOver.gif"

    ImageUrl="res:DialogWindowSchemes.WinXPBlue.Maximize.gif" Tooltip="Maximize" />

    <MinimizeButton HoverImageUrl="res:DialogWindowSchemes.WinXPBlue.MinimizeOver.gif"

    ImageUrl="res:DialogWindowSchemes.WinXPBlue.Minimize.gif" Tooltip="Minimize" />

    <ReloadButton HoverImageUrl="res:DialogWindowSchemes.WinXPBlue.ReloadOver.gif" ImageUrl="res:DialogWindowSchemes.WinXPBlue.Reload.gif"

    Tooltip="Reload" />

    <RestoreButton HoverImageUrl="res:DialogWindowSchemes.WinXPBlue.NormalizeOver.gif"

    ImageUrl="res:DialogWindowSchemes.WinXPBlue.Normalize.gif" Tooltip="Restore" />

    </CaptionButtons>

    <DialogBorder BottomUrl="res:DialogWindowSchemes.WinXPBlue.StatusCenter.gif" LeftBottomUrl="res:DialogWindowSchemes.WinXPBlue.StatusLeft.gif"

    LeftTopUrl="res:DialogWindowSchemes.WinXPBlue.TitleLeft.gif" LeftUrl="res:DialogWindowSchemes.WinXPBlue.ContentLeft.gif"

    RightBottomUrl="res:DialogWindowSchemes.WinXPBlue.StatusRight.gif" RightTopUrl="res:DialogWindowSchemes.WinXPBlue.TitleRight.gif"

    RightUrl="res:DialogWindowSchemes.WinXPBlue.ContentRight.gif" TopUrl="res:DialogWindowSchemes.WinXPBlue.TitleCenter.gif" />

    <CaptionStyle ForeColor="White" />

    <ContentStyle BackColor="#ECE9D8" />

    </DialogTheme>

    </SpellCheckerTheme>

    <ToolBarItemStyle BorderColor="#E5E5D7" BorderStyle="Solid" BorderWidth="1px" Cursor="Default">

    </ToolBarItemStyle>

    <ToolBarItemDisabledStyle BorderColor="#E5E5D7" BorderStyle="Solid" BorderWidth="1px"

    Cursor="Default" Transparent="50">

    </ToolBarItemDisabledStyle>

    <TopToolBarPanelStyle BackColor="#E5E5D7">

    <BorderDetailed BorderBottomColor="#A3A37C" BorderBottomStyle="Solid" BorderBottomWidth="1px" />

    </TopToolBarPanelStyle>

    <ToolBarItemSelectedStyle BackColor="#E1E6E8" BorderColor="#316AC5" BorderStyle="Solid"

    BorderWidth="1px">

    </ToolBarItemSelectedStyle>

    <ToolBarStyle BackColor="#E5E5D7" BackgroundImage="res:af_toolbar_bg_vs05.gif">

    <BorderDetailed BorderBottomColor="#A3A37C" BorderBottomStyle="Solid" BorderBottomWidth="1px" />

    </ToolBarStyle>

    <PathSelectorStyle BackColor="#CCC7BA" BorderColor="#CCC7BA" BorderStyle="Solid"

    BorderWidth="1px" Font-Names="Courier New" Font-Size="10pt">

    </PathSelectorStyle>

    <ToolBarItemHotStyle BackColor="#C1D2EE" BorderColor="#316AC5" BorderStyle="Solid"

    BorderWidth="1px" Cursor="Default">

    </ToolBarItemHotStyle>

    <DropDownDialogStyle BackColor="#FCFCF9" BorderColor="#316AC5" BorderStyle="Solid"

    BorderWidth="1px" Font-Names="Tahoma,Verdana,Arial,Helvetica,sans-serif" Font-Size="11px">

    </DropDownDialogStyle>

    <ToolBarDragHolderSeparatorStyle BackgroundImage="res:af_dragholder_sep_vs05.gif"

    Cursor="move">

    </ToolBarDragHolderSeparatorStyle>

    </C1WebEditor:C1WebEditor>

    <asp:ImageButton ID="btnSaveNotes" runat="server" CommandName="Update" ImageUrl="~/Images/saveHS.png"

    ToolTip="Save Notes" />

    </EditItemTemplate>

    </asp:FormView>

    Filed under:
Page 1 of 1 (2 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.