Hussein Zahran [MVP]

ASP.NET Gate

<November 2008>
SuMoTuWeThFrSa
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456


Navigation

Friendly Blogs

Subscriptions

News

About Me






Hussein's Life

Post Categories



Moved my Blog to http://www.barmagy.com
Sorry to leave behind 3 years of being here, but its time to have a blog to target a specific audience and to co-operate with other professionals to get a new community to the scene my blog is http://barmagy.com/blogs/dotnetgate/default.aspx am writing with the name Hus it will be nice to see you there and will keep my old posts here will not move it.

posted Friday, February 09, 2007 5:17 AM by Hussein with 0 Comments

ASP.NET AJAX 1.0 RC
Available for download , Microsoft announced Thursday the RC version for the ASP.NET AJAX Framework Enjoy ;)

posted Friday, December 15, 2006 5:56 AM by Hussein with 0 Comments

ASP.NET AJAX Timer Control-Here we go
The timer control is one of the ASP.NET AJAX (ATLAS )  controls, We could use the timer control for several usage, such as setting a clock on your page, updating the price of a company’s quote each while for example, and more.
The process of doing this now is so simple I remember the time when we did that using javascript and it was not that simple,.
First you have to add a reference to the Microsoft.Web.Atlas.dll located in the folder you have installed the ATLAS components to.
After that we will drag a ScriptManager control to our page and rename it to scriptManager.

Note: the ScriptManager should be the first ATLAS control located on your page else an error such the following will face you for example

An UpdatePanel requires a ScriptManager on the page. The ScriptManager must exist before the UpdatePanels.

Anyways, after dragging the ScriptManager control consider setting the EnablePartialRendering property to true
The next step is dragging an UpdatePanel to your content area,  then add a ContentTemplate tag to it  add more controls inside our UpdatePanel
For the propose of this post we will add 2 controls a Label and a Timer Control
Our label will be called lblDate
The timer will be timerControl
As a Timer the control is provided with an Interval property and a Tick Event.
We will set the interval for 1000 so our timer will fire the Tick event every 1 second to update the Label with the server time.


       
       
           
       
       
       
           
            
       

protected void timerControl_Tick(object sender, EventArgs e)
    {
        lblDate.Text = DateTime.Now.ToString();
    }

When we run our code the Label will appear empty after 1 second it will be get updated with the server date and time.
With the existence of the Timer control things now are very simple and provides to our hands a usable web page that could do more than updating a label.
Enjoy you night guys ;)

posted Friday, October 27, 2006 2:14 PM by Hussein with 0 Comments

Download the ASP.NET AJAX v1.0 beta
I was surprised and i want to surprise you with the beta release of the ASP.NET ASAX framework, here you go click here to download the beta release

posted Friday, October 20, 2006 3:24 PM by Hussein with 0 Comments

Overview on Cider for Creating WPF Applications

Cider is the code name for the Visual Designer for Windows Presentation Foundation, i was browsing today some of the functionality embedded in and really it's amazing to see things from both the designer and the XAML code and how things works, also i created a simple Hello World application and here i'll introduce you with some of the basic functionality providing visual assistance to go through this new tool,

first let me guide you to the following post where Simon Guest provide a basic introduction for the needed prerequisites and tools to start with the WPF

Here is where you start, you start by creating a new Windows Application under the .NET Framework 3.0 Projects node



Let us name it TestHelloWorld
A new Project will be created as shown in the Solution Explorer, By looking into the project elements you will find the project references couple of Components, also you will note the .XAML extension with the new added Window form, Window1.XAML also has a code behind for it called Window1.XAML.CS,



This how the designer environment looks like 2 panes, one contains the designer area and the other contains the XAML editor area, let us start by changing the Title of the Window form to Hello World

<Window x:Class="TestHelloWorld.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Hello World" Height="300" Width="300"
    >
    <Grid>
       
    </Grid>
</Window>


We will notice the Grid element, the Grid element is one of the container elements that exists so lets currently use the Grid Continer Control, as this control will be the working area for us to add our controls, so lets go to the next stage so fast.

Adding The Controls
First we will add a Button and a Label from the left toolbox , I have added some customizations and here is the XAML representation

<Grid Background="Black">
    <Button Margin="18,16,0,22" Background="Orange" Click="SayHello" Name="btnHelloWorld" HorizontalAlignment="Left" Width="75">Click Me!!</Button>
    <Label Margin="120,44,10,41" Foreground="White" Name="lblHello" ></Label>
  </Grid>


and here how it looks like in the design mood



Ok, but my target was to say Hello World to those who will click the button represented on the above image, so let us see how we will fire this event in the WPF way :D

Events
Ok adding an event could be done through 2 ways as I have done till now, either by creating an event for that button and this will not be different from how you add events in the old way of dealing with the regular .NET applications, but the new is the XAML way of adding an event so let’s add an attribute called click to our button we have and assign a value of SayHello as below

<Button Margin="18,16,0,22" Background="Orange" Click="SayHello" Name="btnHelloWorld" HorizontalAlignment="Left" Width="75">Click Me!!</Button>

What we still have is to add a method that will say Hello Word, so lets switch to the code behind and add the following method in it

public void SayHello(object sender, RoutedEventArgs e)
        {
            lblHello.Content = "Hello World";
        }


Yes lblHello.Content not .Text, it taked me 5 minutes to explore the properties to add a text value to that Label, anyways let’s now run the application we have now and see the end result



That’s the final result we will get after we run the application and click on the button, In the end I know that this was a simple one but I wanted to share with you the first hello world I have created using the WPF designer “Cider”

Enjoy your time with it ;)

posted Friday, October 13, 2006 1:56 PM by Hussein with 0 Comments

Fixing the Visual Studio Content Installer Error
I was faced this morning with a problem while installing the ASPNETAtlas.vsi and each time i try to run the VSI it gives me the String cannot have a zero length  tried all possible solutions until i found the following post

and i noticed that it's a registery key problm all you have to do is to add 2 keys under the following registery path

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSEnvCommunityContent\ContentTypes\VSTemplate]

Create the following keys if they are missing
"ClassName"="VSContentInstaller.VSTemplateInstallerPage"
"DisplayName"="#VSTemplateContentDisplayName"

thanks to Frank for that post it helped me alot as i was facing this issue with my laptop and i needed to install the atlas components to do some demos

Enjoy guys ;)

posted Friday, September 29, 2006 4:36 AM by Hussein with 1 Comments

ATLAS to be ASP.NET AJAX
I just noticed that the code name ATLAS is changed to ASP.NET AJAX before it's official release click here to download the updated toolkit, enjoy

posted Thursday, September 28, 2006 2:39 PM by Hussein with 0 Comments

New to Development?

If you are new to development or you would like to increase your development know how here you are the ASP.NET New to Development section

http://msdn.microsoft.com/asp.net/learning/learn/newtodevelopment/

posted Thursday, August 10, 2006 3:52 AM by Hussein with 0 Comments

Develop Without Borders- Are you ready for it

It's agreat opportunity for you guys who wish to share your ideas in solving world problems through designing an application on the 2007 Microsoft Office System,
You could win through your actions in the charity activities

for more information go now to that link

Reach out. Make a Difference ;)

posted Thursday, August 10, 2006 3:42 AM by Hussein with 0 Comments

Go Atlas Go - &amp;amp;quot;Atlas&amp;amp;quot; June CTP Release
The Atlas team was working hard to deliver us the June CTP Release which will include many bug fixs go and download guys ;) Click Here

posted Saturday, July 01, 2006 6:00 AM by Hussein with 0 Comments

The Egyptian Dev House workspace - Are you ready for it? :D

I am glad to announce that we had launched the Egyptian Dev House workspace that is moderated by a number of local Egyptian MVPs, we are mainly targeting the Egyptian professionals, instructors, students and hobbyists, if you are interested please visit us on http://www.gotdotnet.com/workspaces/workspace.aspx?id=01930e48-76f0-45c7-b658-84c794ee77e1


 

posted Sunday, May 21, 2006 7:57 AM by Hussein with 0 Comments

Atlas Control Toolkit Refresh Released
I was browsing Shawn Burke's Blog and i noticed that the Atlas Control Toolkit Refresh Released good job check it out here

posted Friday, May 05, 2006 3:12 PM by Hussein with 0 Comments

Running ASP.NET 2.0 on a machine that are not running IIS
Well I was in a big need to run a web service that works with the Windows workflow foundation and that was impossible to run it as my machine is not running a windows XP professional version well, to solve this problem I know that there were a solution to that which was Cassini but I didn’t knew if there is a build for the .NET 2.0 or not well I’am here to tell those who don’t know that currently there is a .NET 2.0 version of Cassini it still in its Release Candidate but its cool anyways here you go the URLs are included :D http://ultidev.com/Products/Cassini/CassiniDevGuide.htm
http://ultidev.com/download/default.aspx

posted Saturday, April 22, 2006 3:30 PM by Hussein with 0 Comments

WinFX Tour– inside the Egyptian borders 15th of May
The WinFX Tour will be visiting couple of countries to provide the latest news about the WinFX technologies and to provide couple of demos,  one of the amazing things is that the WinFX tour will be visiting Egypt next month in the 15th of May its really wonderful news I am really interested to attend
click here to register if you are intrested


posted Friday, April 21, 2006 5:47 AM by Hussein with 0 Comments

Source Code for the Built-in ASP.NET 2.0 Providers Now Available for Download
Source Code for the Built-in ASP.NET 2.0 Providers Now Available for Download ,
http://weblogs.asp.net/scottgu/archive/2006/04/13/442772.aspx

posted Saturday, April 15, 2006 2:52 AM by Hussein with 0 Comments

The Atlas Control Toolkit

The "Atlas" Control Toolkit helps you bring your websites to life!
DOWNLOAD the "Atlas" Control Toolkit now!
http://atlas.asp.net/default.aspx?tabid=47&subtabid=477
its really cool to use Atlas :D

posted Wednesday, April 12, 2006 8:36 PM by Hussein with 0 Comments

Visual Studio 2005 Code Snippets C# from MICROSOFT
Hey Guys a set of code snippets provided by microsoft you can find it here
http://msdn.microsoft.com/vstudio/downloads/codesnippets/default.aspx

posted Sunday, April 09, 2006 4:03 PM by Hussein with 0 Comments

At last : ASP/ASP.NET MVP :D

Hi Guys, i want to let you know some good news about me i have been awarded the MVP award and i have received my MVP kit :D , i want to thank everyone who helped me in taking this step in my life, also would like to congratulate Mohamed Zaki for his MVP award too, at last i would like to thank the DotNetJunkies community for hosting my blog this period of time :-),

posted Tuesday, April 04, 2006 7:22 AM by Hussein with 0 Comments

ASP.NET 2.0 Default Button

When we check our past experiences when we were using ASP.NET 1 and we needed to set a default button and we start to do our custom code to handle the default button story and sometimes it comes to be hard to implement we know that there was something needs to be done, but now we can stop of thinking of how to do it in ASP.NET 2.0 as now you will just point to your default button without writing your own code, you have 2 options to do it either to set the DefaultButton property either in the Form Tag or in the Panel control Tag if you have one in your page lets see how easy it is











posted Friday, March 10, 2006 9:14 AM by Hussein with 1 Comments

Upcoming March ASP.NET Web Casts
Mon, 06 Mar 2006 MSDN Webcast: ASP.NET Soup to Nuts: Web Part Controls (Level 200)
Mon, 13 Mar 2006 MSDN Webcast: ASP.NET Soup to Nuts: Caching (Level 200)
Mon, 20 Mar 2006 MSDN Webcast: ASP.NET Soup to Nuts: Internationalization (Level 200)
Mon, 27 Mar 2006 MSDN Webcast: ASP.NET Soup to Nuts: Tips and Tricks (Level 200)

posted Friday, March 03, 2006 10:29 AM by Hussein with 0 Comments




Powered by Dot Net Junkies, by Telligent Systems