Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.
Multiline text box of the custom webpart renders text with HTML tag in sharepoint 2010

Unanswered Multiline text box of the custom webpart renders text with HTML tag in sharepoint 2010

  • 2012年5月16日 上午 10:52
     
     
    Hi,
       I have a custom webpart which is just a form to enter the values. When I submit these enteries will be saved in the list and then I am dispalying the list enteries in the gridview. I have a link button in the gridview on which if i click it will redirect to the previous form with the corresponding details of the row of that gridview. But there is one multiline text box which takes value as
    <div class="ExternalClass6F4DD1052B0949DE9089342A21B32F41">Candidate</div> but I need only Candidate to be displayed.
    I refered these urls:
    http://sharingsharepoint.blogspot.in/2010/02/multi-line-text-field-displays-div-tag.html
    http://blogs.msdn.com/b/sharepointdesigner/archive/2008/09/20/using-disable-output-escaping-in-data-view.aspx
    I am not facing problem while adding into list but while displaying on the form after clicking linkbutton on gridview. After updation it will again save the text without <div> tag. Can anybody help me solve this issue?

    Thanks in advance.

所有回覆

  • 2012年6月14日 下午 08:45
     
     

    When you say you are "dispalying the list enteries in the gridview" do you mean that you are displaying the list using the Datasheet View?

  • 2012年6月15日 上午 05:15
     
     

    Hi Eric,

             No its not a Datasheet view. Its a custom webpart I created using gridview to display the list items.

  • 2012年6月15日 下午 03:36