When you are a developer who is very interested in Ajax you probable already know, but Microsoft joins the openAjax alliance. Betrand le Roy will represent Microsoft. I hope this will bring a lot of good Ajax stuff in the future!!
Archive for the ‘ASP.NET AJAX’ Category
Microsoft joins the openAjax alliance
Posted by dennisv on March 21, 2007
Posted in ASP.NET AJAX | Leave a Comment »
The $ sign in debug libraries
Posted by dennisv on March 20, 2007
Also wondered why there are functions declared in the debug libraries of MS Ajax have a $ sign in there method names. The magic word is “Debugging” Betrand le Roy has a very clear explanation for this. Take a look at his blog
Posted in ASP.NET AJAX | 1 Comment »
New webcasts serie from microsoft
Posted by dennisv on March 7, 2007
Hi,
Joe stagner is starting a new webcast serie about MS Ajax. This time its about taking your webapplication to the next level with 3rd party libraries. You can sign up here.
Posted in ASP.NET AJAX | Leave a Comment »
Article Software Release Magazine
Posted by dennisv on February 24, 2007
I wrote an article on MS Ajax for the Software Release Magazine with the title “De scriptmanager centraal”. Unfortunatley it’s written in dutch so only for the dutch developers it could be interesting. Take a look at a short introduction here.
Posted in ASP.NET AJAX | Leave a Comment »
The fifth and last Ajax security webcast
Posted by dennisv on February 21, 2007
Tomorrow is the last webcast about Ajax security which will be presented by Microsoft and Spi dinamics, you can register here. I recommend this webcast for every web developer (even when you aren’t using MS Ajax).
Posted in ASP.NET AJAX | 1 Comment »
Masterpages and MS Ajax
Posted by dennisv on February 19, 2007
In this posting I will try to explain how masterpages work in combination with an updatepanel. I see sometimes questions about masterpages and MS Ajax and conclude that this topic could be specified a little bit more. Well a masterpage is a page that can be inherited by contentpages, you can see it as a blueprint(masterpage) and an object (contentpage). Well in my example I defined a masterpage and 3 content pages which inherited from the masterpage
When a user makes a request to your website he will never makes a request to your masterpage, only to your content pages. Below I defined a masterpage
This masterpage contains the following controls:
- Scriptmanager
- Menu
- ContentPlaceHolder
So the scriptmanager and the menu will be available on every contentpage that inherits from this masterpage. See the content page below.
You can see that the menu and the scriptmanager control are grayed out, because they reside on the masterpage. Well I defined in the contentPlaceHolder an updatepanel. The thing I want to make clear is the use of an updatepanel in combination with a masterpage/contentpage.
In this situation it isn’t possible to work with partialrendering when you want to switch from ContentPage1 to ContentPage2 via the Menu which is defined on the MasterPage.Why? Well, because ContentPage1 and ContantPage2 are webpages which are self sustaining. They both got the Scriptmanager control and the menu control. These controls are inherited from the masterpage. So when you click on the menuitem (“Contentpage2”) on contentpage1 webpage. It will open a new webpage (ContentPage2). The updatepanel on contentpage1 can only be used for partialrendering on contentpage1. I hope this looks to you very simple and logical, because it is.
Posted in ASP.NET AJAX | 22 Comments »
Bridges in MS Ajax
Posted by dennisv on February 15, 2007
I see on the MS Ajax forum questions about where bridges are in the MS Ajax v1.0. Well they are gone and probably will never be available for MS Ajax again. A few minutes ago the Security webcast of Microsoft on MS Ajax security ended. The guys of SPI dynamics showed us how bridges can be used to attack websites. Bridges do not check any incomming request they just pass on the request to the address where the bridge is pointing to. A good replacement for bridges are webservices because they can validate incomming requests. We as webdevelopers need to be smart when we develop websites/ webservices!
Posted in ASP.NET AJAX | 2 Comments »
Live From Redmond: The Next Generation of AJAX Attacks
Posted by dennisv on February 14, 2007
Tomorrow the fourth webcasts of Ajax and security will be broadcasted. I visited the first 3 webcasts and it was a very good experience. So i would recommend you to visit the fourth one. Sign up here. See you there!
Posted in ASP.NET AJAX | Leave a Comment »
Calling webservices outside a domain with Javascript
Posted by dennisv on February 12, 2007
The last few days i saw some threads about calling a webservice which is outside your domain with Javascript. Because of the restriction that is made for the path property of the servicereference <servicereference Path=”"> (same domain restrictions) it isn’t possible to make a reference to an webservice which is outside your domain. Well in MS Ajax Beta 2 version we could use bridge files to solve this problem. MS Ajax v1.0 doesn’t support bridge files anymore. So we must use another workaround.
The other workaround is using a second webservice (WebserviceA) which makes the call to the webservice (WebserviceB) outside your domain. This is very simple to build.
(WebserviceA)
WebserviceA should be configured in a way that it can accept calls from Javascript, take a look here to see how. This webservice must have a reference to WebserviceB which is outside your domain. You add a reference like we .NET developers are used to. (Add webreference)
(WebserviceB)
WebserviceB can be configured like a normal webservice and there you go!
Hope this helps you!
Posted in ASP.NET AJAX | 1 Comment »
WebResource.axd and ScriptResource.axd size!
Posted by dennisv on February 12, 2007
This night i saw 2 threads on the Ajax forum. The 2 threads were about the size of the Webresource.axd and the Scriptresource.axd, the developer said that these files were to big. While i was typing my answer for the developer, Kris van der Mast was already finshed with his answer. He said that the solution to this issue was setting <compilation debug=”false”>. My solution was setting <Scriptmanager Scriptmode=”Release”>. So i decided to check these 2 solutions. Well, i came to the conclusion that is makes no difference which solution you choose, they have the same effect.
When you set <compilation debug=”false”> and you don’t set the Scriptmode (which is “Auto” by defaut) the Scriptlibaries that will be send to the client while inherit the setting debug=false (so release=true). So the smaller scriptlibraries will be send to the client.
When you set <compilation debug=”true”> and the Scriptmode=”Release” then the compilation element will be overriden and the release scriptlibraries will also be send to the client.
My preference will go the latest option. Why? Well the first option has consequences for the whole application and the second option only on the page where you are working on. I hope you agree with me!
Posted in ASP.NET AJAX | 4 Comments »


