locked
SharePoint Rich Text With Image and Tables,... RRS feed

  • Question

  • I want to create a visual Web Part

    to Add New Items to a list ..,

    and I want to add a Rich text box to add it to the text field of the SPitem.

    But I want also to support Uploading images and tables .. totally like the SharePoint default one

    or even use it as a control in my own Visual Web Part ...

    how can I do it ?


    thank u for help

    Friday, July 6, 2012 8:39 PM

Answers

  • Hello ,

    I am providing you the different links which will help you.

    For the rich text box you can use

    <SharePoint:InputFormTextBox Rows="10" MaxLength="1000" id="txtMyRichTextBox" runat="server" RichText="true" RichTextMode="FullHtml" TextMode="MultiLine"  Height="400px" Width="250px"></SharePoint:InputFormTextBox>

    You can use the file upload control to create the attachment in SharePoint.use below links

    http://nehasinha.wordpress.com/2008/05/23/programmticallyc-adding-deleting-copying-and-downloading-attachments-in-splist/

    and below link will be useful to you to create a new item.

    http://blog.the-dargans.co.uk/2007/04/programmatically-adding-items-to.html

    With the combination of above things you can achieve your goal.


    Hiren Patel

    Saturday, July 7, 2012 4:27 AM