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!!!
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…
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 http://blog.budigelli.com/index.php/2007/06/14/aspnet-url-re-writing-and-postback-problem-solution/
- Want to Start Visual Studio 2005 Development Server at a specific port everytime? Or use IIS for a Web Application?
- And want to set what debuggers to attach (ASP.NET, SQL Server, Native Code)?
Check the below images for options under Web project properties..
Hope it helps…
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