Monday, February 27, 2012

Published 1:59 AM by with 0 comment

Creating a Custom Web Service in SharePoint for Uploading Document

Read More
    email this       edit

Thursday, August 4, 2011

Published 8:11 AM by with 0 comment

SmartNavigator JQuery Pluging

Read More
    email this       edit

Thursday, July 28, 2011

Published 2:26 AM by with 0 comment

Create Physical File From "varbinary" data [SharePoint]

Read More
    email this       edit

Wednesday, July 27, 2011

Published 2:22 AM by with 0 comment

Html 5 Drop with JQuery Plugging



This is how its work



Working sample



downloadDownload Source code
Read More
    email this       edit

Friday, July 22, 2011

Published 9:08 AM by with 0 comment

Colombo Code Camp [ Fast Coders ]

Read More
    email this       edit

Tuesday, May 29, 2007

Published 11:51 PM by with 0 comment

Spelling checking in textbox

this is a usefull method to check spelling in testbox

//make all references
Microsoft Office 12.0 Object Library
Microsoft Word 12.0 Object Library


using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
using System.Web.UI.WebControls;
using Microsoft.Office.Interop.Word;



public void SpellChecking(TextBox tBox)
{
try
{
Application app = new Application();
if (tBox.Text.Length > 0)
{
app.Visible = false;
object template = Missing.Value;
object newTemplate = Missing.Value;
object documentType = Missing.Value;
object visible = false;
object optional = Missing.Value;
_Document doc = app.Documents.Add(ref template, ref newTemplate, ref documentType, ref visible);
doc.Words.First.InsertBefore(tBox.Text);
ProofreadingErrors we = doc.SpellingErrors;
doc.CheckSpelling(ref optional, ref optional, ref optional,
ref optional, ref optional, ref optional, ref optional,
ref optional, ref optional, ref optional,
ref optional, ref optional);
object first = 0;
object last = doc.Characters.Count - 1;
tBox.Text = doc.Range(ref first, ref last).Text;
}
object saveChanges = false;
object originalFormat = Missing.Value;
object routeDocument = Missing.Value;
app.Quit(ref saveChanges, ref originalFormat, ref routeDocument);
}
catch (Exception ex)
{
//what ever u want to display on error
}
}
Read More
    email this       edit

Wednesday, May 9, 2007

Published 5:44 AM by with 0 comment

smartnavigation

prevent the browser window from going blank after a postback
and to maintain the correct control focus after events are processed.

smartnavigation="true"-----(2003)


MaintainScrollPositionOnPostback="true"----(2005)
Read More
    email this       edit