Pages

Mime Content Types for office 2007 documents

The Content Type of the office 2007 files are different from the normal office documents. the files are strored and maintained internally as xml formats. While uploading these documents they are uploaded in octet stream[binary stream].
For more details check this link. openxmldeveloper.org

The Content Types of the office 2007 files is listed below.

File ExtensionContent Type
docmapplication/vnd.ms-word.document.macroEnabled.12
docxapplication/vnd.openxmlformats-officedocument.wordprocessingml.document
dotmapplication/vnd.ms-word.template.macroEnabled.12
dotxapplication/vnd.openxmlformats-officedocument.wordprocessingml.template
ppsmapplication/vnd.ms-powerpoint.slideshow.macroEnabled.12
ppsxapplication/vnd.openxmlformats-officedocument.presentationml.slideshow
pptmapplication/vnd.ms-powerpoint.presentation.macroEnabled.12
pptxapplication/vnd.openxmlformats-officedocument.presentationml.presentation
xlsbapplication/vnd.ms-excel.sheet.binary.macroEnabled.12
xlsmapplication/vnd.ms-excel.sheet.macroEnabled.12
xlsxapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet
xpsapplication/vnd.ms-xpsdocument

Manual verification of Validation Controls before getting submitted using Javascript

The Validation controls plays a major role in validation client data before it is getting posted in to the server. This is done by placing the appropriate validation controls required. This takes care of data validation before posting on its own. Suppose this same task has to handle even when validation controls are present. Let us see this.
A JavaScript function displayed below will takes care of a similar task.
function VerifyValidators()
{
//To verify the validators are passed in data validation.
//This Page_ClientValidate() function will return true if all the validation are passed else it returns false.
if (Page_ClientValidate() == true)
{
form1.submit();
}
}

The Page_ClientValidate() function will not be included in the page by default. To implement this function we need a minimum a single validation control. Then, this function is rendered as a part of any validation control by default. By using this function, we can check the Data Validation even before it gets posted to the server. Some times when using this functionality the page may not be posted to the server, then page has to be submitted to the server manually as given in the function or in any other way.