Jul 21 2008

ASP.NET AJAX Roadmap

The ASP.NET AJAX Roadmap is published and can be reached here (http://www.codeplex.com/aspnet/Release/ProjectReleases.aspx?ReleaseId=14924)

Enjoy it!

 

Regards     

 

Tags: , , ,

Feb 25 2008

Two New Videos on ASP.NET 2.0 AJAX 1.0 Extensions

Category: AJAX-ATLASBil@l @ 06:18

Two news videos has been added by Joe Stagner on the AJAX Technology by MSFT. Check them out, really valuable (as always):

Hope this helps,
Regards

Tags:

Feb 18 2008

How to Postback Asynchronously from inside a GridView

Category: AJAX-ATLAS | ASP.NET 2.0 - GeneralBil@l @ 17:08

I have posted a new article on the ASP.NET Wiki and the article is titled as:

How to Postback Asynchronously from inside a GridView

 

Check it out and have your comments and improvements!
Regards

Tags: ,

Oct 3 2007

ASP.NET 2.0 AJAX InlineEditLabel Control

Category: AJAX-ATLASBil@l @ 21:10

Today, I will have a new article on inline-edit control using ASP.NET 2.0 AJAX Extensions published on www.aspalliance.com. That script I wrote was based on a script written by native AJAX. It was simply an ASP.NET 2.0 AJAX Component and not a real control.

I have created lately a new ASP.NET 2.0 AJAX Control called InlineEditLabel control. This is simply an ASP.NET 2.0 AJAX Custom Server Control that you can add to your toolbox and drag it to the ASPX page whenever you need to provide an inline-edit area(s) on your pages.

The idea of this control is that, initially the control displays normal text. When you click on the text, then the text displayed will be now placed inside a textarea  with two buttons: Update and Cancel buttons.

Clicking on the update button, fires a client side event handler that allows developer to handle processing the entered text and the cancel button will put the control back to its original state.

inline-edit

All what you need is download this sample application which contains the InlineEditLabel.dll and a sample page that shows how to use the control. This control runs under .NET 3.5 and VS 2008 Beta 2.

To explain a bit about the control, let us check this sample:

<cc1:InlineEditLabel
    ID="InlineEditLabel1"
    runat="server"
    Text="This is a default text to be changed during the demo!!"
    ToolTip="Click here to edit"
    CssClass=""
    CssHoverClass="hover"
    UpdateButtonText="Update"
    CancelButtonText="Cancel"
    UpdateEvent="OnUpdate"
/>

As you can see, the custom control is called InlineEditLabel. It has the following properties:

ID: ID of the control

Text: This is the text to be shown when the control is to be rendered.

Tooltip: This is the text that is displayed when the mouse gets over the editable text.

CssClass: This is a css class to apply to the editable label represented by "div" element.

CsshoverClass: This is a css class that is applied to the control when the mouse gets over its content.

UpdateButtonText: This is the text shown on the update button that is called to update the entered text.

CancelButtonText: This is the text shown on the cancel button that is used to cancel an update.

In addition, there is one client side event that you need to implement which is UpdateEvent. This event handler is fired when you press the update button to process the entered text.

Now let us add some implementation on the UpdateEvent:

<script language="javascript">
    function OnUpdate(sender, args)
    {
        alert(args.get_data());
        $find('<%= InlineEditLabel1.ClientID %>').set_originalText(args.get_data() + " -- ");
        $find('<%= InlineEditLabel1.ClientID %>')._renderOriginalContents();
    }
</script>

As you can see in the handler above, the args parameters holds the text entered into the textarea. You can grab that text, either perform:

. WebRequest
. Call page method
. Call Webservice method

to reflect the changes on the server.

When the control is in the processing state, it shows a message "saving ...". So it is recommended that you reset the text you want in the control after processing the text entered on the server. This can be easily done by setting the originalText property and calling the _renderOriginalContents() method.

Hope you enjoyed this new control, if you have any questions, please let me know.

Regards

Tags:

Sep 22 2007

AJAX Control Toolkit - September 2007 Update

Category: AJAX-ATLASBil@l @ 20:14

The AJAX Control Toolkit has a new version released! This release contains mainly a set of bug fixes and making existing extenders more stable and robust!

Check the website on codeplex: http://www.codeplex.com/Wiki/View.aspx?ProjectName=AtlasControlToolkit

 Regards

Tags:

Sep 22 2007

StringBuilder in ASP.NET 2.0 AJAX 1.0 Client Library

Category: AJAX-ATLASBil@l @ 09:59

I was surprised to know that in the new ASP.NET 2.0 AJAX 1.0 Client Library, a new data type has been added which is the StringBuilder. As you know either in C# or VB.NET, when you are concatinating a large number of strings, each time you concat a string to another string, a new memory location is being assigned to the resulting string. However, when using a StringBuilder the same instance of the StringBuilder is used to append more and more strings.

This also applies on the extended JavaScript provided by the AJAX Client Library, so now you can write somethnig as this:

<script language="javascript" type="text/javascript">
    var sb = new Sys.StringBuilder();
    sb.appendLine("Hello World");
    sb.appendLine("ASP.NET 2.0 AJAX 1.0 Extensions are great");
    sb.append("A new line added without a break line using append!!");
   
    alert(sb.toString());
</script>

In the code above a new instance of Sys.StringBuilder class has been instantiated!! You can use the append and appendLine method to add text to the StringBuilder object. Also, you can use the toString() method to get the text out of the StringBuilder just as you do in C# or VB.NET!!

Hope this helps,
regards

 

Tags:

Sep 12 2007

ASP.NET 2.0 AJAX 1.0 Extensions Overview

Category: AJAX-ATLAS | Telerik ControlsBil@l @ 06:08

I have presented yesterday an overview of the major sections in ASP.NET AJAX 1.0 Extensions in the Community Night gathering that took place in the Metropolitan Hotel. There will be a series of AJAX session by me to go in depth into all the fields of AJAX. Wait for them :).

You can download the PPT file from here: AJAX 1.0 Extensions Overview

 
 

Hope you enjoy it!
Regards
 

Tags: ,

Aug 16 2007

ASP.NET 2.0 AJAX Shorthand Syntax

Category: AJAX-ATLASBil@l @ 20:14

A very nice blog post by Joe Stagner on the existing ASP.NET 2.0 AJAX Shortcuts can be reached here:

http://joeon.net/archive/2007/08/16/ASP.NET-AJAX-Shorthand-Syntax.aspx

It is a must-read post!!

 

Regards

Tags:

Jun 5 2007

Tips and Tricks: ASP.NET AJAX 1.0 and User Controls

Category: AJAX-ATLASBil@l @ 07:18

I kindly invite you all to check my latest article on the www.aspalliance.com:

http://aspalliance.com/1274

Hope you will enjoy it!
Regards

Tags:

Jun 4 2007

Tip and Tricks: ASP.NET 2.0 AJAX 1.0 Extensions and Master Pages

Category: AJAX-ATLASBil@l @ 06:32

I kindly invite you all to check my latest article on the www.aspalliance.com:

http://aspalliance.com/1285

Hope you will enjoy it!

Regards

Tags: