Posts

Dragable and Resizable DIV

How to create a drag able and resizable div in ASP.Net/C# OR How to make a div Drag able and Resizable using Jquery in ASP.Net/C# Download Code

SharePoint 2013 Important Links

SharePoint Server 2013 Preview Download: http://technet.microsoft.com/en-US/evalcenter/hh973397 SharePoint Foundation 2013 Preview Download: http://www.microsoft.com/en-us/download/details.aspx?id=30345 SharePoint 2013 & Office 2013 Training For Developers: http://msdn.microsoft.com/en-US/sharepoint/fp123633 SharePoint 2013 Training For IT Pros: http://technet.microsoft.com/en-US/sharepoint/fp123606 Start: Set up the development environment for SharePoint 2013: http://msdn.microsoft.com/en-us/library/ee554869(v=office.15 ) Cheers

How to calculate difference between two dates in javascript/jquery

Simple steps to calculate difference between two date fields using JavaScript/JQuery  In some scenario, we need to calculate the difference between two dates from the client side. Here we are going to demonstrate all about date fields using javascript such as Javascript date field validation for different format, difference between two dates in days, hours, minutes, seconds, years and weeks Very strong and simple Javascript validation for date fields for format dd/mm/yyyy  Following javascript function simply verify and return result for checking valid date from client side itself. It will automatically validate leap year entries and return correct result. That means if we pass ’29/02/2011′ to the function it will be return false. If we are passing ’29/02/2012′ to the function it will return true. So we don’t need to bother about the leap year or other complex things. function isValidDate(dateStr) { // Date validation Function // Checks For the following valid Date formats: /

Disable Right click of mouse

How to disable right click functionality from the asp.net web page In some of the web page has the requirement to protect source code from the users. Users can right click the page and take the source code. In order protect right click functionality on the web page we can implement javascript functionality to prevent user’s right click on the web page. So user not able to access features available on the right click menus. By implementing javascript method we can identify the right click event from the user by checking the button code and prevent if the user clicks right click. Below mentioned web page prevented to click right click by the user. When the user trying to right click it will return warning message to user and return the action. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DisableRightClick.aspx.cs" Inherits="ExperimentLab.DisableRightClick" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitio

Crop image

How to crop image using ASP.Net/C# OR Cropping image in C# before upload

Asynchronous file up loader using ajax in ASP.Net

How to create asynchronous file up loader using ajax in ASP.Net

Balloon Popup Extender in ASP.Net/C# with New AjaxControl Toolkit

How to implement BalloonPopupExtender in ASP.Net/C# OR Ballon Popup Extender Sample in ASP.Net/C# Download Example

Hide buttons control from ribbon for specific list

Image
Hi , I want to hide "New Folder" button from ribbon of my library "Shared Documents" for site "SP2010-01".     To hide this button from ribbon for a Shared Documents, You must write this code : using (SPSite site = new SPSite("http://SP2010-01")) { using (SPWeb web = site.OpenWeb()) { SPList list = web.Lists.TryGetList("Shared Documents"); web.AllowUnsafeUpdates = true; SPUserCustomAction actionView = list.UserCustomActions.Add(); StringBuilder newurl = new StringBuilder(); newurl.AppendLine("<CommandUIExtension>"); newurl.AppendLine("     <CommandUIDefinitions>"); //Provide Location ID to hide the button newurl.AppendLine("        <CommandUIDefinition Location=\" Ribbon.Documents.New.NewFolder \">"); newurl.AppendLine("        </CommandUIDefinition>"); newurl.AppendLine("    </CommandUIDefinitions>");

DateTimeControl is not showing it’s calendar in proper format

Image
Hi, Some time we have to create our own customized asp form or visual web part or simple web parts where we use SharePoint’s Date Time Control . Some time that control works properly but some time this control does not show calendar in proper format as we see in SharePoint. Control should show calendar like : But instead of the format, It shows like this : If you want to change this format for default format you have to write this code: dateTimeControl1.DatePickerFrameUrl=ResoulveRul(SPContext.Current.Site.Url+”/_layouts/iframe.aspx”);

Make Read Only or Hide Fields in SharePoint 2010

Hi , If you want to make field as read only or hide fields , you must read this article. It is too good. Just download files & install as instructed. To read full article :  SPUtility To read documents : Documents To download code files : Download