السبت، 22 يونيو 2013

CRM 2011: The specified user is either disabled or is not a member of any business unit

Check whether the system administrator account was disabled in database. If yes, enable it in database.
  1. Backup the orgname_MSCRM and MSCRM_Config.
  2. Find the systemuserid for system admin in systemuserbase table.
  3. Find the system admin in systemuserbase and resourcebase, if isdisabled=True, set isdisabled=Flase.
  4. Find the Business Unit the user belongs to in businessunitbase table. if isdisabled=True, set isdisabled=Flase. 

then Restart machine.

الثلاثاء، 11 يونيو 2013

CRM 2011:Business Management error the user id associated with the current record is not valid

To Solve this error:
1- Create new user in AD (Test User)
2- From CRM Setting=>Administration=>Users Replace the user login with the new test user login.

3- Save and Login to CRM with that user.
4- Again replace new test user login with old user login (Reverse).then the problem will solve.

السبت، 8 يونيو 2013

How to Repeat Table(Tablix) Header on each Page in SSRS 2008

 To Repeat Table(Tablix) Header on each Page in SSRS 2008 do the following:
1- Click the first cell in table header.




2- From the Row Group click Static and go to properties.


















3- From properties window set the (KeepWithGroup=After) and (RepeatOnNewPage=true).

الأربعاء، 5 يونيو 2013

Page Life Cycle with an Example - ASP.Net

How to Export Gridview to Excel.












Wrtie  the following Code in Export button:

protected void btnexport_Click(object sender, EventArgs e)
    {
        try
        {
            Response.Clear();
            Response.Buffer = true;
            Response.AddHeader("content-disposition", "attachment;filename=gridviewdata.xls");
            Response.Charset = "";
            Response.ContentType = "application/vnd.ms-excel";
            StringWriter sWriter = new StringWriter();
            HtmlTextWriter hWriter = new HtmlTextWriter(sWriter);
            GridView1.RenderControl(hWriter);
            Response.Output.Write(sWriter.ToString());
            Response.Flush();
            Response.End();
        }
        catch (Exception ex)
        {
            Label1.Text = ex.ToString();
        }
    }

//***********
public override void VerifyRenderingInServerForm(Control control)
 {
  }