Thursday, January 22, 2015

Wednesday, January 14, 2015

Browse svc file over https

For developing mobile app for one of the existing SharePoint application.
We developed WCF services to consume the application features.
In IIS we have created applicatoin for the service with should access over HTTPS.

The url is

In web.config level had the below change.


Monday, January 12, 2015

Generate Row Serial Numbers in SQL Query

SELECT row_number() over (order by AAL.Record_ID) as "No"

Monday, January 5, 2015

Backup/Restore of SharePoint 2010 site Collection using Power Shell

The below is the good link to perform the back up(Backup-SPSite) and restore(Restore-SPSite) the site collection using POWER SHELL

How To Increase Space on Drive C of a Virtual Machine Running Windows Server 2008R2

Requrement: Would like to extend my VM size to 10GB
Shutdown the VM.
Go to the VM Player settings->HD Settings-> Utilitites--> Expand

Then go to the VM My computer-> Manage-->Compute Mgt
do the following.

Wednesday, December 31, 2014

JQuery-Plugin, JQGrid

JQ Grid is excellent alternative of the ASP.NET GridVIew.

title = "My Software Assets";
        var grid = $("#softwaregrid");
                    prmNames: { search: "isSearch", nd: null, rows: "numRows", page: "page", sort: "sortField", order: "sortOrder" },
                    postData: { searchString: '', searchField: '', searchOper: '', hiearchy: JSON.stringify(locselection) },
                    datatype: function (postdata) {
                        if (locselection != "MyAssets")
                        $('#softwaregrid').setGridParam({ postData: { hiearchy: JSON.stringify(locselection)} });
                        mtype: "GET", $.ajax({ url: L_Menu_BaseUrl + "/_layouts/XXX/Pages/SwassetService.aspx/GetReports1SoftwareData",
                            type: "POST",
                            async: false,
                            contentType: "application/json; charset=utf-8",
                            data: JSON.stringify(postdata),
                            dataType: "json",
                            success: function (data, st) {

                                if (st == "success")
                                    var grid = jQuery("#softwaregrid")[0];
                            error: function () { alert("Error with AJAX callback"); }
                    jsonReader: { root: "rows", page: "page", total: "totalpages", records: "totalrecords", cell: "cell", id: "id", userdata: "userdata", repeatitems: true },                
                    colNames: ['Select', 'ID', 'Title', 'Description', 'Category', 'Terminal', 'Region', 'Supplier'],                 
                    colModel: [
                    { name: 'Select', index: 'id', search: false, hidden: true },
                    { name: 'ID', index: 'id', search: false, hidden: true },
                                                                                { name: 'Title',width: '140px',index: 'a.SoftwareTitle', searchoptions: { sopt: ['cn'] }, hidden: false },
                                                                                {name: 'Description', width: '290px', index: 'a.Description', search: false },
                                                                                {name: 'Category', width: '80px', index: 'b.Name', searchoptions: { sopt: ['cn']} },
                                                                                { name: 'Terminal', width: '215px', index: 'a.Terminal', search: false },
                                                                                { name: 'Region', width: '50px', index: 'a.Region', search: false },
                                                                                { name: 'Supplier', width: '115px', index: 'e.Name', search: false },
                                                                                //{ name: 'Delete', width: '50px', index: 'Delete', search: false }//Naveed SW

                    rowNum: 5,
                    rowList: [5, 10, 30,50,100],//Naveed SW
                    //width: '800px',
                    height: '300px',
                    //scrollOffset: 0,                          
                    autowidth: true,
                                multiselect: true,
                    shrinkToFit: false,
                    forceFit: true,
                    pager: jQuery("#softwarePager"),
                    sortname: "a.ID",
                    sortorder: "asc",
                                onSelectRow: function (id, status) {
                                                if (!status)
                                                                if ($("#jqg_softwaregrid_" + id)[0].checked)                       //Naveed SW   
                                                                                $("#softwaregrid").jqGrid('setSelection', id,false);
                                del : {
                                                                caption: "ff",
                                                                msg: "Delete  record(s)?",
                                                                bSubmit: "Delete",
                                                                bCancel: "Cancel"
                    ondblClickRow: function (rowid) {
                        var win ="createasset.aspx?assetid=" + rowid, '_blank');
                    viewrecords: true, caption: title
                }).jqGrid('navGrid', "#softwarePager", { edit: false, add: false, del: true, search: true, refresh: true, closeAfterSearch: true, searchtext: "Filter", refreshtext: "Refresh",deltext:"Delete" , deltitle: "Delete selected row(s)"},{},{},
              url: '#',
              onclickSubmit: function (postdata) {
                                                                return {};
                                                 beforeShowForm: function(form)
                //            ).hideCol('cb');//Naveed SW
                                $('#softwaregrid').trigger( 'reloadGrid');
function DeleteSoftwares()
var swselection = [];
$(".cbox:checkbox:checked").each(function () {/
var url=location.protocol + "//" + + L_Menu_BaseUrl;

                    type: "POST",
                    url:L_Menu_BaseUrl + "/_layouts/XXX/Pages/SwassetService.aspx/DeleteSoftwares",
                    data: "{'softwares' : '" + JSON.stringify(swselection)+ "','url' : '" + url + "'}",
                    contentType: "application/json; charset=utf-8",
                    dataType: "json",
                    async: true,
                    cache: false,
                    success: function (msg) {


Tuesday, December 30, 2014

Usage of Remote Desktop Connection Manager

Download Remote Desktop Connection Manager from the below link
Select the existing remote desktop manager settings file / add PROD server settings and get all the servers under one umbrella.