set telerik dock popup position

function ShowRadDock() { var myWidth = 0, myHeight = 0; var scrollLeft = 0; var scrollTop = 0; if( typeof( window.innerWidth ) == ‘number’ ) { //Non-IE myWidth = window.innerWidth; myHeight = window.innerHeight; scrollLeft = window.pageXOffset; scrollTop = window.pageYOffset; } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { //IE 6+ in ‘standards …

Microsoft Office Document to PDF convert

OfficeToPDF is a command line utility that converts Microsoft Office 2007 and 2010 documents from their native format into PDF using Office’s in-built PDF export features. OfficeToPDF is useful (and unique) if you want to automatically create PDF files on a server-wide basis and free individual users from an extra step of using the “Save …

PDF to Image

First of all you have download “GhostScript” from Here Installed it. C#.net Code as below 1) Create a new console application in Visual Studio 2010. 2) Copy the below code into your application public static void PdfToJpg(string ghostScriptPath,string input, string output) { //String ars = “-dNOPAUSE -sDEVICE=jpeg -r300 -o” + output + “-%d.jpg ” + …

HTML5 Video Player

Flash has always been the standard for displaying video online, yet with the arrival of HTML5 web developers have got more excellent possibilities to easily streamline video content. HTML5 new specifications for a video is for sure one of the most talked aspects in the range of many new notable HTML5 features developed for more …

Import contacts from Gmail in Asp.Net

Download Google Contact API from below link. http://google-gdata.googlecode.com/files/Google%20Data%20API%20Setup%281.4.0.2%29.msi Add reference to your project following DLL files. Google.GData.Apps.dll, Google.GData.Client.dll, Google.GData.Contacts.dll, Google.GData.Extensions.dll .Aspx page look like this <html xmlns=”http://www.w3.org/1999/xhtml”> <head runat=”server”> <title>IMport Gmail Contacts</title> </head> <body> <form id=”frmGmailContacts” runat=”server”> <div> <table> <tr> <td> UserName</td> <td> <asp:TextBox ID=”txtUsername” runat=”server”></asp:TextBox> </td> </tr> <tr> <td> Password</td> <td> <asp:TextBox ID=”txtPassword” runat=”server” …

How to unblock port from Windows Server 2008

Many developers have complain about port could not be unblocked although they added “INBOUND/OUTBOUND” rules in “Windows Firewall Advance Security” for “Apple Push Notification Service”, “Remotely Access SQL Server” etc. Port should not be unblocked until it should be unblocked from “Local Policy Security”. So, Please check your local policy security. For that, click on …

Convert any Office document to PDF using Open Office in C#.net

Things need to be installed Download from here Open Office Open Office SDK The required files listed below: cli_basetypes.dll cli_cppuhelper.dll cli_oootypes.dll cli_ure.dll cli_uretypes.dll If you have installed Open Office SDK, you will get these files under sdk\cli on you installed SDK folder. After give reference of above DLL files import following name space in .cs …

Resize image while uploading image

Namespace required: using System.IO; using System.Drawing; using System.Drawing.Drawing2D; — .cs page coding on Save button—————– // Create a new bitmap which will hold the previous resized bitmap Bitmap newBMP = new Bitmap(originalBMP, newWidth, newHeight); // Create a graphic based on the new bitmap Graphics oGraphics = Graphics.FromImage(newBMP); // Set the properties for the new graphic …

How to remove white space from TEXTAREA?

function removeTextAreaWhiteSpace() { var myTxtArea = document.getElementById(‘txtQuestion’); myTxtArea.value = myTxtArea.value.replace(/^\s*|\s*$/g, ”); } Call above function “removeTextAreaWhiteSpace()” onfocus event of textarea. e.g. onfocus=”removeTextAreaWhiteSpace()”