Tuesday, January 25, 2005

=3D and = characters in the ASP.NET/MVC HTML emails

While trying to send an HTML email from the ASP.NET, you get the junk strange characters in the output.
Eg: 1) appending "3D" (Style type =3D"text/CSS")
2) appending "=" between a two words (cell=padding)

Modify the C# code to include the below:
MailMessage message = new MailMessage(SendFrom, SendTo);
var MyplainView = AlternateView.CreateAlternateViewFromString(msgBody,null,"text/html");
MyplainView.TransferEncoding = System.Net.Mime.TransferEncoding.SevenBit;
message.IsBodyHtml = true;

Sunday, January 2, 2005

Title field hell in Sharepoint lists!

While trying to delete the "title" field from any doc lib or list, the 'delete' button missing from the UI.

work around:
Find schema.xml for the coresponding list (located in c:\Program Files\Common Files\Microsoft Shared\web server extensions\60\TEMPLATE\1033\STS\LISTS\)
Search , access and delete the field.This will affect the behaviour for all the lists of that type (event,tasks ...). make a backup for the schema.xml, make changes, and save the list as a template; after you make all the mods, start over from this new template