May 6 2007

Microsoft ASP.NET 2.0 Ajax - Client Library Webcasts

Category: AJAX-ATLAS | MSDN WebCastsBil@l @ 11:08

Rob Bagby, a Microsoft Developer Evangelist, is running in the coming weeks a series of Webcasts on the Client Side of ASP.NET AJAX, here is the list:

May 5 2007

Visual Studio 2005 - Vista - Tabbed Documents

Category:Bil@l @ 09:13

I have recently installed VS 2005 on a Vista  machine. When I open my VS, I don't see the TABs of all the opened documents. What I see is always a flat view of all the docments.

What went wrong? Well seems when I installed the VS 2005 on Vista, the Tabbed Documents option has been disabled and the Multiple Documents option was selected instead. How to resolve this?

Go to Tool --> Options --> Environment --> General --> On the right window, select Tabbed Documents. That's it!!

Hope this helps.
Regards

Tags:

May 4 2007

MSDN WebCast : ASP.NET AJAX Client Libraries: Calling Web Services

Category: AJAX-ATLAS | MSDN WebCastsBil@l @ 16:46

I have attended the first live MSDN Webcast in my life yesterday by a great presenter Rob Bagby.

Few days ago I watched his first webcast which was ASP.NET AJAX Client Libraries: Overview, he promised to have a series of like 8+ web casts on the same topic!!

Yesterday's webcast was perfect, Rob went into so many details that are very important to know and explained in details how to call Webservices from the client side of AJAX. I advise you to check it out: ASP.NET AJAX Client Libraries: Calling Web Services

I am now attending the Best Practices for Building Next-Generation Web Applications with ASP.NET AJAX.

 

Regards

Tags: ,

May 4 2007

More on AJAX Client Side Life Cycle

Category: AJAX-ATLASBil@l @ 10:59

I must have forgot to mention there is still the Load method after PageLoaded and before EndRequest events!!

Have a graphical look at the client side page life cycle here at this nice blog post by David Barkol: ASP.NET AJAX: Client-side event viewer

 

Hope this helps,

Regards

Tags:

May 2 2007

Microsoft ASP.NET AJAX - Request Life Cycle

Category: AJAX-ATLAS | Telerik ControlsBil@l @ 21:32

I have recently started reading about ASP.NET AJAX. I have been always writing the AJAX code manually using the XMLHttpRequest object and other third-party great controls like the Telerik control!

I decided to work with the FREE Microsoft ASP.NET AJAX.

I would like to share with you a very important issue which is the request-life-cycle. The PageRequestManager that is created on the client side once partial page update is enabled, fires several events in the following order that you can attach your own custom events to:

  1. It first creates a request to the server using the WebRequest client side object
  2. InitializeRequest event fires
  3. BeginRequest event fires
  4. A callback method will be executed once the response is back from the server
  5. PageLoading event fires
  6. UpdatePanels on the page are now updated with the new content
  7. PageLoaded event fires
  8. Load
  9. EndRequest event fires

The items in bold represent the events that will fire during the life of a request from the time it gets created to the time it gets destroyed!

Hope this helps,
Regards

 

Tags: ,

May 1 2007

Microsoft ASP.NET Futures Documentation is there!

Category:Bil@l @ 20:18

Check out the documentation on Microsoft ASP.NET Futures released lately for AJAX, SilverLight, Dynamic Data Controls, and much more!!

http://quickstarts.asp.net/futures/

 

Regards

 

Tags:

Apr 19 2007

Telerik C#/VB.NET Converter

Category: Telerik ControlsBil@l @ 06:18

I would like to inform you about the Telerik Code Converter from C# --> VB.NET and VB.NET --> C#.

The converted code looks great, nicely formatted, saving the original format and spacing!!

Great work Telerik! Thanks!!!

You can check the converter at: http://converter.telerik.com/

HTH,
Regards

Tags:

Apr 4 2007

RegisterHiddenField and ID property

Category: ASP.NET 2.0 - GeneralBil@l @ 10:43

In a previous post I talked about the xListBox and MoverList Controls. I did some fixes to make them work for FireFox and IE.

What was the problem actually? If you read the article about xListBox, you will notice that I have based on solution on a HiddenField to keep track of added/removed items from the ListBox on the client side and to reflect the changes on the server side.

The problem was that, RegisterHiddenField in ASP.NET 1.1, was not generating an ID for the hidden field on the HTML and I was using the document.getElementById, FireFox was having a problem in this, while IE as usual has no problem with anything [:D].

I could have used document.getElementByName, but I prefered to use the one by ID. So what I did is that, I had to customize the way the RegisterHiddenField works. The idea I got from this post: ASP.NET's RegisterHiddenField and document.getElementById

However, I had to modify it a bit to look something as:

    string hiddenFieldName = this.ClientID + "_REMOVED";
    if (!HttpContext.Current.Request.Browser.ToString().Equals("IE"))
        hiddenFieldName =  hiddenFieldName + "\"" + " id=\"" + hiddenFieldName;

This way, I did a trick to add the name of the HiddenField and an ID for the HiddenField and that worked perfect!!

Maybe you can use this trick in your work somewhere!

Hope this helps,
Regards

Tags:

Apr 4 2007

Expression Products Added to MSDN

Category:Bil@l @ 06:57

Expression Products are part of the MSDN downloads. Check this post by Scott Guthrie:

Expression Products Added to MSDN

That is really cool!!

Regards

Tags:

Apr 4 2007

xListbox and Mover-Control

Category:Bil@l @ 06:36

In my previous articles that I have written on ASPAlliance.com under the titles of:

I have developed an extended ListBox that preserves changes on the client-side and after a call to server-side too. Sometimes you might need to add items to a ListBox on the client-side and need to preserve the changes after a postback. Well, this is not the behavior of the ListBox that ships with ASP.NET x.x.

In the above articles, I added this functionality such that, ListBox can now preserve the changes on the client-side. In the other article article, I used the xListBox to create a Mover-Control. Two xListboxes facing each other where you can move items from one Listbox to another and preserve the changes on the client and server sides.

However, both controls were not working on browsers other than IE! I had to fix them and now they work well on:

IE (5.5+), FireFox (2.0), and Opera (9.10)

You can download the xListBox here: https://bhaidar.net/cs/files/folders/april_2007/entry2425.aspx

You can download the Mover-Control here: https://bhaidar.net/cs/files/folders/april_2007/entry2426.aspx

Both downloads include the ".cs" and ".dll".

If you still have any problem or question feel free to contact me and I will do my best to make my controls look better!

Regards

Tags: