HOW TO calculate the weekday name in RDLC

To calculate the weekday name in RDLC you can use a combination of two Visual Basic functions:

  1. DatePart
    Syntax

    DatePart(interval,date[,firstdayofweek[,firstweekofyear]])
    

    firstdayofweek is an Optional parameter and the Default value is 1 (Sunday).
    firstweekofyear is an Optional parameter and the Default value is 1 (January).

  2. WeekdayName
    Syntax

    WeekdayName(weekday[,abbreviate[,firstdayofweek]])
    

    abbreviate is an Optional parameter. A Boolean value that indicates if the weekday name is to be abbreviated.
    firstdayofweek is an Optional parameter and the Default value is 1 (Sunday).

  3. HOW TO calculate the weekday name in RDLC

    CORRECT RESULTS

    =WeekDayName(DatePart("w", Fields!CurrentDate_System.value,0))
    =WeekDayName(DatePart("w", Fields!CurrentDate_System.value,0,0))
    

    WRONG RESULTS

    =WeekdayName(DatePart("w", Fields!CurrentDate_System.Value))
    =WeekdayName(DatePart("w", Fields!CurrentDate_System.Value),false,0)
    

    Did my HOW TO help you? Leave a reply.

The breakpoint will not currently be hit. The specified module has not been loaded

The breakpoint will not currently be hit. The specified module has not been loaded

When you debug with Visual Studio 2005 and a Windows Mobile/Windows CE/Pocket PC from 5.0 to 6.5 version device running .NET Compact Framework 2.0 breakpoint not works showing a ring instead of the normal red dot and when holding the mouse over it shows the above error message.

Solution:
Close Visual Studio and re-install the SDK.

Note: If still not work download and install the following patch
.NET Compact Framework 2.0 Service Pack 1 Patch

Did my solution solve your problem? Leave a reply.

Microsoft Windows Phone – “0x89731812”

0x89731812

The above error message appears when you try to deploy a Windows Phone Project to a physical Windows Phone device.

Cause:
Connection to device failed.

Solution:
Disconnect and Reconnect the USB Cable, verify that Zune running and unlock the screen.

Did my solution solve your problem? Leave a reply.

Visual Studio – “The type or namespace name ‘DataContractJsonSerializer’ does not exist in the namespace ‘System.Runtime.Serialization.Json’ (are you missing an assembly reference?)”

The type or namespace name ‘DataContractJsonSerializer’ does not exist in the namespace ‘System.Runtime.Serialization.Json’ (are you missing an assembly reference?)

in Italian:

Il tipo o il nome dello spazio dei nomi ‘DataContractJsonSerializer’ non esiste nello spazio dei nomi ‘System.Runtime.Serialization.Json’; probabilmente manca un riferimento a un assembly

Solution:

Add the following References to your project:

System.Runtime.Serialization
System.ServiceModel.Web

In Solution Explorer, right-click on the project node and click Add Reference to select the dll files.
Remember to add using or Imports lines inside your file.

Did my solution solve your problem? Leave a reply.

Visual Studio – “The type or namespace name ‘DataContractAttribute’ does not exist in the namespace ‘System.Runtime.Serialization’ (are you missing an assembly reference?)”

The type or namespace name ‘DataContractAttribute’ does not exist in the namespace ‘System.Runtime.Serialization’ (are you missing an assembly reference?)

in Italian:

Il tipo o il nome dello spazio dei nomi ‘DataContractAttribute’ non esiste nello spazio dei nomi ‘System.Runtime.Serialization’; probabilmente manca un riferimento a un assembly

Solution:

Add the following References to your project:

System.Runtime.Serialization
System.ServiceModel.Web

In Solution Explorer, right-click on the project node and click Add Reference to select the dll files.
Remember to add using or Imports lines inside your file.

Did my solution solve your problem? Leave a reply.

W3C validator – “there is no attribute “border””

When you try to validate your page with W3C Markup Validation Service at the line when you have an ImageButton like this:

<asp:ImageButton runat="server" ToolTip="Click here to load new image" ID="ImageButtonRefresh" ImageUrl="images/refresh.png" OnClick="ImageButtonRefresh_Click" CausesValidation="false" />

show the following error message:

there is no attribute “border”

Cause:
<asp:ImageButton> renders a border=”0″ output.

Solution:
Add ClientTarget=”uplevel” in your page’s Page directive, for example:

<%@ Page Language="c#" MasterPageFile="~/MasterPage.master" ClientTarget="uplevel" %>

Did my solution solve your problem? Leave a reply.

W3C validator – “there is no attribute “AutoComplete””

When you try to validate your page with W3C Markup Validation Service at the line when you have a TextBox with AutoComplete attribute like this:

<asp:TextBox ID="myTextBox" runat="server" AutoComplete="Off" />

show the following error message:

there is no attribute “AutoComplete”

Solution:
Change
AutoComplete=”Off”
to
AutoCompleteType=”None”

<asp:TextBox ID="myTextBox" runat="server" AutoCompleteType="None" />

Did my solution solve your problem? Leave a reply.