Saturday, October 8, 2011

How to add item to Sharepoint List

In this article I will show you how to add record to Sharepoint List using Sharepoint web part. The list name is ContactUs and following are the field to fill “Name”,” Email”, “WebSite”, “Telephone”, “Company”, “JobRole”,” Comment”, “How_do_you_hear “ and “UseSocialSite”

Friday, October 7, 2011

Wednesday, October 5, 2011

CRM2011 Data Filtering and retrieve

Following code illustrate how to Filter the data in the CRM and retrieve data from it in following code I have Select "Paidamount " form "Eventbooking" Entity for that I need to satisfy following criteria 
PaidAmount should not null, Bookingstatus should be 2, StatusCode should be 1 and event id must have to equal to provide one of the top 

Tuesday, October 4, 2011

Monday, October 3, 2011

Wednesday, September 21, 2011

Resolve problem in Master Pages Image Path

Hi all in ASP.net Master pages some time behave like weird. Because I have create some pages and put into a folder  and there is separate folder to images but when it is loaded imagers doesn’t load in some pages. I have tried using both ways  “../../images/logo.jpg” and “~/images/logo.jpg”  but I couldn’t make it happen finally I search it in the “Google”

Tuesday, September 6, 2011

Friday, August 26, 2011

Sunday, August 21, 2011

Retrieve data form SharePoint list and populate in asp.net DropdownList

If you need populate data form a list and show in a dropdown list, it easy when you create a String type list then it can assign to Dropdown list’s “Data Source” below code illustrate how it can done

        private List LoadDropDownList(SPList spList)
        {
            SPQuery  quary = new SPQuery();
            SPListItemCollection titleItems = spList.GetItems(quary);

            List howList = new List();

            if (titleItems.Count>0)
            {
                foreach (SPListItem titleitem in titleItems)
                {
                    howList.Add(titleitem["Title"].ToString());
                }
            }
            else
            {
                howList.Add("No records to load");
            }

            return howList;            
        }

Then you can easyly assign that string type list to Dropdown “Data Source” as follows

howDropDownList.DataSource = LoadDropDownList(findOutlist);
howDropDownList.DataBind();

Friday, August 19, 2011

Set and Get value from the CRM2011 optionset

In CRM 2011 Jscript its totally different than the CRM4 So today I will show you how to set and get data form an option set. Following codes are demonstrate that

Get Values from the CRM2011 Optionset
Xrm.Page.getAttribute().getValue();

OptionField will be your attribute name

Set values to the CRM2011 Optionset

Xrm.Page.getAttribute().setValue('1');

OptionField will be your attribute name

Friday, January 14, 2011

Edit or Delete a Column from the SharePoint2010 list


So We have Created the List call "StudentContacts" List using Contact Using the Contact Template if you need  go to blog post How Create Simple Contact Us List In sharepoint 2010. Today I show you How to Delete a Column from the SharePoint list. for that I'm using "StudentContacts" Which we have created earlier So that go to that List
(1) Site Action  > Select (2)View all  Site Content  > Select (3)StudentContacts

Friday, November 5, 2010

Appling fade out effect to Windows Form

In this post I'm going to show how to and beautiful fade out effect to your windows form,first create the Windows application through you visual studio program and add following code to your application

Add timer controller to Form that you are selected.

Then add following code to timer control
private bool setClose = false;

private void timer1_Tick(object sender, EventArgs e)
{
   this.Opacity -= 0.05;
   if(this.Opacity<0.05)
   {
      setClose = true;
      this.Close();
   }
}

Finally add the following code to FormClosing event

 private void myForm_FormClosing(object sender,FormClosingEventArgs e)
 {
   if(!setClose)
   {
      e.Cancel=true;
      this.timer1.Enabled=true;
   }
 }

Finally you have done it, Experience the fadeout effect in windows forms


Get code from here http://www.ziddu.com/download/12396154/urbuddyApp.7z.html

Monday, November 1, 2010

Create SharePoint Page Layout using SharePoint Designer 2007

-          Open SharePoint Designer and go to File -> Open Site and give necessary credential and log in to site.

-          Then  select File -> New -> SharePoint Content



-          And go to SharePoint Content tab and select SharePoint Publishing and select Page Layout and select content type that you have created and give the URL name and Title.
-          Then your Page Layout page has been created and loaded, then you have to do further modification page layout and save it and check out.
-          Then when you are creating new page you can use that particular page that you have create.