.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Multiline Text allowed characters or tags

Posted By:      Posted Date: October 27, 2010    Points: 0   Category :SharePoint

So before I write a custom field to replace the use of the OOTB multiline text field could anyone tell me a couple things?

First, could someone better explain the reason that script and iframe tags were allowed in content editor web parts but not in the multiline text RTE?

Second, is there a way to enable the use of unsafe tags within the multiline text field without having to create a custom field?


View Complete Post

More Related Resource Links

What is the max limit for number of characters in multiline text in Sharepoint?



In Sharepoint list, i have a column define as multiline text.  I want to know, what is the max character limit in multiline text, and how can I increase it to unlimited text?

Thanks any help.

Abhijit Sil

string.Split - not all characters allowed as separator



I am working on a site where I use the Split function on a string.

To make sure I used a separator character that I do not use anywhere in the data I selected the character '£'.

This worked fine in Firefox and Safari, but in IE8 I get an 'Index out of range' error, so apparently the '£' character is not handled correctly.

I changed the separator to ';', and then it works fine.



How to display multiline text in ECT formview?

Hello, with SPD i created External Content Type from MSSQL database. How to customize SharePoint:FormField in dispform.aspx to display multiline text from database? I tried use NoteField insted, but it trows excepion. BR  

How to eliminate html tags from text boxes

Hi all,   In my application I am using a login screen. While a new user registers he has to fill the First name and Last name. There is a user search option. The details of the users will be shown in the user details page. Some users try to add html tags like </td></tr> with first name and last name. So after rendering from DB the page alignment is breaking.   How to fix this problem??   How can I avoid html tags while entering the user details?   Please give me a solution:-   Thank You  

How to tell repeater to wrap text after certain number of characters for a particular column ?

I have a column in my repeater which allows as many as 255 characters and causes the page contents pushed away to the right if any of the record has all 255 characters in that column. How can I tell it to wrap the text after 50 characters ?Thanks,

Query Sharepoint list, rich text columns returning HTML tags

Hi! So I have an issue that maybe someone of you have encountered as well. I am querying a Sharepoint list and creating a report from the data collected from this list. This all works fine except that one of the columns in this list is of the type "Multiple lines of text" and also supports "rich text" with different fonts, sizes and so on. This has the effect that the text returned from this column is wrapped in HTML tags that specifies how the text should be formatted. Naturally I do not want this HTML code to appear in my report so for now I have used custom code to do a string.replace and replaced for example <div></div> and <br> with "". However, this column also has url references to documents and these links shows up like this "/servername/site/subsite/Gemensamma%20dokument/Mwh.docx">http://servername/site/subsite/Gemensamma%20dokument/Mwh.docx There is some sort of double reference to the document that I guess like the HTML tags are embedded in the answer from the rich text column and this is not so easy to do a string replace on because the url varies with the different document and document names. My question really is if anyone of you have done a similar report that I am doing, and have encountered this fenomen with this sharepoint column and how you did to solve this? I have tried to creat

Maximum amount of characters in a text data source

Hi, I've got an Infopath 2007 form, that contains a repeating table. I'm using a text type data source that is storing certain values from the repeating table's multiple columns using double eval function. Is there any limitation to maximum how many characters are allowed on this text data source? I'm also planning on promoting this data source on a sharepoint site's form library. I think the text fields in sharepoint site are allowed maximum 255 characters. Please correct me if this is not the case. Would sharepoint form library show full text after promoting this data source if it contains a lot of info or exceeds 255 characters. I haven't tested these yet, but just thinking of extreme cases to plan things better. Please advise. Thanks,Pman http://www.pmansLab.com/

Multiline text field in document library and item update from Word trouble

Hi I have faced a bit of odd problem. Here is the scenario: I have document library with text columns (multiple lines of text) that are set to unlimited length. I have a workflow that runs with Word documents (.docx) that stores information in XML to this field. Everything works perfectly until document is edited in Word and saved back to document library. After Word saves my document in document library, the multiline text field is "cutted", only 7 rows of text is saved to my field. I have tried hiding my text field, making it sealed or readonly, but still Word breaks my field. Funniest thing is that when editing document in Word, this field should not have any changes (meaning that I dont show my "long text field" in document information panel back in Word). I have tried also creating event handler to handle itemupdating event in document library where I switch spweb.parserenabled property to false and in itemupdated event I switch it back on. Also I have tried to remove all line changes from XML with no luck. This XML saving to long text field works perfectly with many other places but in this one environment this does not seem to work :( I am looking forward to any suggestions what to try next. I have been wondering about using the eventhandlers and trying to "protect" my text field with some logic but that is still just a thought.   T

CSV text qualifier, text qualified, and escape characters

OK.  Writing a dataflow to read a CSV file.  Connection Manager Editor says format is delimited, text qualifer is <none>.  And that's just fine, but when run, a bunch of rows were generating errors.  Why? Well, turns out one of the fields contained values sometimes ending with a percent sign, "31%" adjacent to our delimiter - which fwiw is actually a pipe "|" not a comma.  Well, it seems like the percent was acting like an escape character.  Is that correct?  Eliminating the percent fixed the import.  Changing to %% fixed the import. And, it seemed that changing the field specification (in the connection manager Advanced tab) to "text qualified = False" also fixed it.  But - why did it think that the field was text qualified, when at the connection (file) level, we told it "no text qualifier"?  Well, qualifie*r* is not the same as qualifie*d*, right?  Ugh.  Is this a bug?  (2008 R2).  Is it a feature???  Should I make it a point in all flat file CSV connections to override all fields to "text qualified = False" - would that have any other side-effects? Thanks. Josh    

extracting last four characters of a text column and storing it in a number column



is there a way to do the above, for example...I have a text column, Column A containing "172671-08-7892", I need 7892 to be extracted to another column of the type number, from there I need to divide by 2. If the remainder is 0, Column C will be updated as Female, if the remainde is 1, Column C will be updated as Male

InfoPath 2010 Web forms in IE and Firefox regarding the Multiline text box


Could someone please confirm if this is a bug.

I created an InfoPath form in 2010. As an Infopath form, the multiline textbox grows, as a user enters text, automatically as expected.

The very same form as a web form:

In IE 7 and IE 8 the box expands at every 20 or so chharacters instead of at the end of a line.

In Firefox (3.xxx) the box does not expand unless you press enter at the end of every line.

In IE 7 and IE 8 if you open a form that was created with FireFox, the boxes end up expanding as if it had been entered in IE instead of FireFox. FireFox seems to be the most compatable but how do I explain to user that they can use IE for everything but forms?

The question is this: Is it a bug because I would think the box should be dynamic as the user eneters data and should not require the user to press enter. When will this be fixed. It is holding us up as to ever being able to use InfoPath Web based forms which is a requirement because InfoPath based forms are not supported on any OS other than Windows. Web Based forms should operate and be available regardless of the browser type. Please advise.

Greg McAllister

Problem extracting the middle characters of a text string


I need to extract a portion of text from one field and put it in another field and I am having trouble with the syntex.  I am doing this with an sql select statement in asp.net. 

I can select the left most characters of the field (SELECT  BatchNumber, LEFT(BatchNumber, 3) AS Expr1 FROM  DonorHistory) or the right most characters of the field (SELECT BatchNumber, RIGHT(BatchNumber, 3) AS Expr1 FROM DonorHistory) but I cannot select characters from the middle of the field.  I expected that to be able to use a statements such as "SELECT BatchNumber, mid(BatchNumber, 3, 2) AS Expr1 FROM DonorHistory" but this statement gives me an error.  I also tried using middle in place of mid but that did not work either.

What am I doing wrong?





SSIS Error Text was truncated or one or more characters had no match in the target code page


I the same issue or something close.

Except I have one Field (27) that get a trunacation error


Data conversion failed. The data conversion for column "Column 27" returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page.".

The "output column "Column 27" (91)" failed because truncation occurred, and the truncation row disposition on "output column "Column 27" (91)" specifies failure on truncation. A truncation error occurred on the specified object of the specified component.


Data looks like:Red Text is the field that is throwing the error!





"RUTH           ",

"EDWARDS             ",









"1447203880    ",


Refresh a multiline text box


I have developed a chat application but when i try to open two browser windows n log in with two different names post send by  one user is not displayed in multiline textbox until that page is refreshed...... although that textbox is in ajax update panel

plz help me  

Limit characters in multiline textbox on formview



I have this working perfectly on a normal webform without a master page or formview.

Label1 is counting the values in TextBox2 and limiting them to 10.

I need this to work in a formview with a master page but I just can't get it to work. Can someone please advise how I use this with the controls being in a formview or even a detailsview.

Thanks for any help.

    function checkLength(con)

if(con.value.length >= 10)

return false;



document.getElementById('Label1').innerHTML = (9 - con.value.length) + ' Chraracters Remaining';return true;


function setRemaining()

document.getElementById('Label1').innerHTML = (10 - document.getElementById('TextBox2').value.length) + ' Chraracters Remaining';

if (document.getElementById('TextBox2').value.length > 10)

document.getElementById('TextBox2').value = document.getElementById('TextBox2').value.substring(0,10);



remove html tags from that text being extracted from html content


Hi there

I have been trying to extract text from the html content ,But, had resulted with some html tags within the extracted text  , what i should i do in order  to extract only plain text wothout having too much tags or stricpts , i am testing  on differents webpages,so html elements are unknow or chagnes from time to time .i am using Html Agility Pack also . here some of code

HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument();

  doc.Load(new StringReader(result));

   HtmlNode bodyNode = doc.DocumentNode.SelectSingleNode("//body");

   string results  = bodyNode.InnerText.ToString();

regex code
         public string removehtmltags_Regex(string source)
            return Regex.Replace(source, "<.*?>", string.Empty);
   result from this code ,


2:59:46 PM: var _GlobalNavHeaderUtf8Encoding=true;var includeHost="http://include.ebaystatic.com/";Skip to main contentBuyMy eBaySellCommunityContact usHelpBasketBasketvjo.darw

need html tags to be removed from output text



i have some code written in c# to obtain the text and numbers from a web interface that required user inputs.

my problem is that the texts i am getting off the web is displays in html forms (i.e. it has tags all over the place)

hence, i would like to filter out the html tags, is that possible?

i searched up some codes but it didn't help me as it brought up even more problems when compile.

any helps is greatly appriciated.

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend