Windows Phone Developers

Showing posts with label MSXSL Error. Show all posts
Showing posts with label MSXSL Error. Show all posts

Saturday, October 11, 2008

Solution : The type or namespace name 'Date' could not be found (are you missing a using directive or an assembly reference?)

Solution : The type or namespace name 'Date' could not be found (are you missing a using directive or an assembly reference?)

Error Codes:

< msxsl:script implements-prefix="vbadud" language ="C#" >

< ![CDATA[

public string Defaulted(Date RetDate)

{

return "Defaulted";

}

]] >

< /msxsl:script >

Solution: The type or namespace name 'datetime' could not be found (are you missing a using directive or an assembly reference?)

Error Code :

< msxsl:script implements-prefix="vbadud" language ="C#" >

< ![CDATA[

public string Defaulted(datetime RetDate)

{

return "Defaulted";

}

]] >

< /msxsl:script >

Use DateTime instead of Date or datetime in C#

Corrected Code

< msxsl:script implements-prefix="vbadud" language ="C#" >

< ![CDATA[

public string Defaulted(DateTime RetDate)

{

return "Defaulted";

}

]] >

< /msxsl:script >



Name Space Date Time Error Digg Technorati Delicious StumbleUpon Reddit BlinkList Furl Mixx Facebook Google Bookmark Yahoo
ma.gnolia squidoo newsvine live netscape tailrank mister-wong blogmarks slashdot spurl StumbleUpon