Category Archives: .NET

Error: "Sys" is Undefined error

I was playing with AJAX enabled applications for some time but not really done any thing major yet. I was working on a small project that required me to add some AJAX functionality using simple updatepanels. I dropped the necessary controls like scriptmanager and updatepanel in to the page and added the references to System.Web.Extensions.

I ran the application and ran in the error message mentioned above.

Error: “Sys” is Undefined Error

I read some blogs and added another reference to “System.Web.Extensions.Design” and added some

<handler> tags to the web.config file.

Nothing seemed to work and I still had the issue.

I got smart at this time and created a new AJAX enabled web site in Visual Studio and copied the web.config file over to my existing application.

The error message is gone!!!

XmlDataSource databinding xML file to data-bound controls like DataView and DataList

I have pulled in few resources on couple of ways we could databind an XML file to a Data-Bound controls using XmlDataSource.

Basically the idea is to be able to bind an XML file, either a physical XML file or XML formatted String using XMLDataSource.

1) This article from MSDN talks about how to bind an external (physical) XML file to a TreeView Control. These Concepts are same for all the other data-boundable controls like DataView, DataList, etc

You can see how you could simply bind the XML file, Transform it before binding, and using XPath to filter further.

One thing I think its missing is reading/binding values form an XML node attribute value.

Taking further the examples mentioned in the above article, assuming you have an XML attribute, “ID” for Person node, in the databinding columns you could read/bind it as

<asp:TreeNodeBinding DataMember=”Person” TextField=”ID” />

You are specifying the name of the attribute for “TextField” instead of the “#InnerText” that read the InnerText of the Node.

2) We could also bind an inline XML string using XmlDataSource as discussed in this article from another MSDN article

-Hope it helps…

An Introduction to JSON in JavaScript and .NET

I found this An Introduction to JavaScript Object Notation (JSON) in JavaScript and .NET article to be very useful especially if you are new to JavaScript Object Notation (JSON)

Explore some of the Object Oriented Techniques of JavaScript, check this MSDN article,, by Ray Djajadinata (Ray Hsieh).

Happy Scripting!!!

PostBacks does not work with Url Rewriting

I use a Url Rewriting a lot and ran into this problem very offen. There are multiple solutions to this issue and basically we would be manipulating the “post” action of the web page.

Here is a link that talks about a more elegent approch to solove this problem, Postbacks does not work with URL ReWriting.

EDIT: please see my new entry on this topic

– Thanks,

.Net 1.1 to 2.0 conversion mistakes

Over the past week i have been working on a conversion (.NET 1.1 to 2.0) project. It started as fun and turned out to be little tedious !!!

First of all, its a big solution with around 25 projects (both C# and VB.NET) and quite a good amount of ASP code, doing various tasks…

The first part of the project turned out to be simple…

Goal : Make this solution run under .NET 2.0 framework and upgrade to WES3.0. Continue reading .Net 1.1 to 2.0 conversion mistakes