How To Get The Login Window In Vista While In A Remote Desktop Connection



TODO:

How to get the login window in Vista while using Remote Desktop?

 

SOLUTION:

Press FN + ALT + F4

 

NOTES:

There are no notes on this topic.

How To Create An Case Or Incident In Microsoft Dynamics CRM Online 2011 Programatically



TODO:

Have you ever wanted to create an Incident or Case in Micosoft Dynamics CRM Online programatically?


SOLUTION:

using System;
using System.ServiceModel;
using System.ServiceModel.Description;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xrm.Client;
using Microsoft.Xrm.Client.Services;
using Microsoft.Xrm.Sdk;
using Microsoft.Xrm.Sdk.Client;
using Microsoft.Xrm.Sdk.Query;
using Microsoft.Xrm.Sdk.Discovery;
using System.Runtime.Serialization;

using System.Configuration;
namespace My.CRM
{   
    public class MicrosoftCRMOnline
    {
        public void CreateIncident()
        {
            try
            {
                //BEGIN CONNECTION STUFF
                var connection = CrmConnection.Parse("Authentication Type=Passport; Server=https://YOUR-ORG.crm.dynamics.com; Username=user; Password=xxx; DeviceID=xxx-ws00001; DevicePassword=xxxx");
                var service = new OrganizationService(connection);
                var context = new CrmOrganizationServiceContext(connection);
                IOrganizationService _service = (IOrganizationService)service;


                //BEGIN LATE BOUND CREATION SAMPLE
                Entity incident = new Entity();
                incident.LogicalName = "incident";
                incident["title"] = "Test Case Creation";
                incident["description"] = "This is a test incident";

                //Set customerid with an existing contact guid 
                Guid customerid = new Guid("9BA22E13-1149-E211-8BE3-78E3B5107E67");     //the actual contact GUID.

                //Set customerid as contact to field customerid 
                EntityReference CustomerId = new EntityReference("contact", customerid);
                incident["customerid"] = CustomerId;

                //create the incident
                _service.Create(incident);


                //BEGIN EARLY BOUND CREATION SAMPLE

                //create a contact and assign the id to the Id above
                Contact newContact = new Contact();
                newContact.Id = customerid;

                Incident newIncident = new Incident();
                newIncident.Title = "Test Created With Proxy";                    //set the title
                newIncident.Description = "This is a test incident";               //set the description
                newIncident.CustomerId = newContact.ToEntityReference(); //set the Customer Id to the Entity Reference of the Contact

                //create the incident
                _service.Create(newIncident);
            }
            catch (Exception e)
            {
                throw e;
            }
        }
    }
}

 

NOTES:

In order to create the Proxy Class (Early Bound Objects), you need to execute the following command, and add the .cs file to your project:

CrmSvcUtil.exe /url:https://YOUR-ORG.crm.dynamics.com/XRMServices/2011/Organization.svc /out:MicrosoftCRM2011OnlineProxy.cs /username:"username" /password:"xxxxxx"

 

**The CrmSvcUtil.exe is located in the bin folder of the SDK.

**Note that you use the same user and pass as in the code above, which is the windows live id you created to log into CRM Online.

How To Fix "Error 1606. Could Not Access Network Location vmware-host" Error When Installing Software



TODO:

Have you ever received "Could not access network location..." when you attempt to install an application on Windows runnin in VMWare?

There are 2 sections of registry keys that need to be inspected.

 

SOLUTION:

Navigate to these 2 keys, and look for entries that hve invalid settings.  In my case the HKCU had an entry called "Personal", that had a path to \\vmware-host\shared folders\documents.  Once I changed that to "c:\Documents and Settings\myusername" the issue went away.

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

 

NOTES:

The new path will require you to change "myusername" to your proper user name.

How To Type Or Edit The Path In Finder



TODO:

Have you ever wanted to type in the path you want to go to?

 

SOLUTION:

Press CMD + SHIFT + G to access the window where you can enter the path.

 

NOTES:

There are no notes on this topic

How To Execute Javascript Before Async Postback



TODO:

Have you ever wanted to execute some javascript before an async postback?  Place the below code in your aspx file, just under the Main Content Placeholder, or body tag if you are not using a master page.

 

SOLUTION:

     <script type="text/javascript">
          
          //add the init activity
          Sys.Application.add_init(appl_init);

          //Do this on init
          function appl_init() {
               var pagegReqManager = Sys.WebForms.PageRequestManager.getInstance();
               pagegReqManager.add_beginRequest(BeginHandler);
          }

          //Called before async postback
          function BeginHandler() {
               MyJavascriptMethod();
               MyOtherJavascriptMethod();
          }      
     </script>

 

NOTES:

There are no notes on this topic

How To Execute Javascript After Async Postback



TODO:

Have you ever wanted to execute some javascript after an async postback?  Place the below code in your aspx file, just under the Main Content Placeholder, or body tag if you are not using a master page.

 

SOLUTION:

     <script type="text/javascript">
          
          //add the init activity
          Sys.Application.add_init(appl_init);

          //Do this on init
          function appl_init() {
               var pagegReqManager = Sys.WebForms.PageRequestManager.getInstance();
               pagegReqManager.add_endRequest(EndHandler);
          }

          //Called after async postback
          function EndHandler() {
               MyJavascriptMethod();
               MyOtherJavascriptMethod();
          }      
     </script>

 

NOTES:

There are no notes on this topic

How To Clear Old Passwords In FireFox



TODO:

Have you been required to change your password, and when you go into Firefox, it remembers the old password, even though you have typed in the new one numerous times?  If so, you nee to simply need to clear out the old passwords.  To do so follow the instructions below.

 

SOLUTION:

1.  Click Tools -> Options -> Security -> Saved Passwords

2.  Select the password affected and choose remove.

 

NOTES:

There are no notes on this topic.

How To Convert A Variable To Lower Case In JQuery



TODO:

Have you ever wanted to check a var against a string and ensure case is not an issue?

 

SOLUTION:

var myVar = $('.myCheckboxClass').find(":checked").val().toLowerCase();

 

NOTES:

This script will find my checkbox by class name, as well as checked, and give me the value in lower case.

How To Get Detailed Errors From Sharepoint Application Pages



TODO:

Have you ever wanted detailed errors to be returned from your Sharepoint Application Pages?  Selecting "Detailed Errors" in IIS will not do it alone.  In addition, you need to do the additional step below.

 

SOLUTION:

Open the web.config at "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\web.config"

Change <customErrors mode="On" /> to <customErrors mode="Off" /> under the system.web node

 

NOTES:

There are no notes on this topic

How To Replace ScriptManager With RadScriptManager When



TODO:

Have you ever wanted to replace the ScriptManager that is in the master page with the RadScriptManager?  The code below will do just this for you!

 

SOLUTION:

protected override void OnInit(EventArgs e)
{
      Page.Init += delegate(object sender,EventArgs e_Init)
      {
            if(ScriptManager.GetCurrent(Page) != null)
            {
                    Page.Items.Remove(typeof(ScriptManager));
                    Telerik.Web.UI.RadScriptManagerscriptManager = new RadScriptManager();
                    Page.Form.Controls.AddAt(0, scriptManager);
             }
       };
       base.OnInit(e);
}

NOTES:

There are no notes on this topic.