.Net Gate

  • Video-ADO.NET Entity Designer

    This video demonstrates the new ADO.NET entity designer, as you will see it is now possible to visually map the insert, update, and delete stored procedures for entity types. Additionally, support for function imports allows the mapping of query stored procedures that return primitive types as well as collections of entity types.
    enjoy the video
    http://download.microsoft.com/download/e/0/f/e0f2ec64-d521-4178-88c1-15080be8d6d2/WinVideo-SprocsDemo.wmv

     

  • Tips for ASP.NET Performance

    Performance , performance and performance the hard formula for any enterprise application that we will be expecting a very huge number of requests from its users/visitors, having a performed application is very hard to have but it is not impossible, it requires you to be able to identify your bottlenecks being able to analyze your application and to use a Tool that helps you in the application performance analysis , here am providing you with Tips that will help you in reaching a reasonable performed application, please note that if you have any question regarding the tips please feel free to add your comment and I’ll be there to provide you with support and resources.

    Tip 1:

    Put first things first, what I mean here is to be able to identify the system’s bottleneck, where you are expecting to have a highly loaded functionalities, what are the integration points of those functionalities,  are we connecting to a 3rd party web service which will decrease the network performance, are we having  a poor hardware configuration for the SQL server which will lead in a further stage in a poorly processing power “CPU”.

    Tip 2:

    Why you don’t utilize the web load test and the web test scenarios Tool provided by the Visual Studio Team system, it is really a very handy tool when you need to examine your web application under stress, using the Load Test will allow you to check where is your performance problem resides, is it on the front end server, is it because of a network latency, is it because of your SQL server.

    Tip 3:

    Trying as much as possible to decrease the size of your developed pages allows for having a potential performed web application, this affects the network bandwidth a lot. By trying to avoid large view state, large embedded HTML you will get a minimal page size as possible.

    Tip 4:

    Caching…Caching…and Caching please try to use it, you have the a real weapon that works fine to improve your application’s performance really fast, try to put a caching plan for your application to know which parts of your application’s data will be cached, you also have the ability to cache the output HTML to avoid the rendering process each time a user requests your page.
    To be continued….

    Enjoy :)

  • MOSS and ASP.NET AJAX Network Calls

    As we know ASP.NET AJAX allows us to invoke web services through what we call it AJAX network calls, when we add a reference to a web service to the page's Script Manager we instruct it to generate a proxy client for that web service in a JS format ,

    for certain reason this is always a problem in MOSS, if you are having the same problem all you have to do as a work around is to generate a the proxy client manually and save it as part of the MOSS resources as a JS file and start linking this file in your pages instead of the service reference tag in the Script Manager

    this works just fine but it has couple of problems such as you will need to update this proxy manually each time you change the web service signatures

     

  • Web Development Tools for Internet Explorer

    in the below post you will find several cool tools that will support you while your web development over IE
     
    Enjoy :)
  • Using .NET C# LDAP Library

    Well i were navigating for some sort of a wrapper for an openLDAP directory until i found one that really works

    ".NET C# LDAP library provides easy access to any LDAP compliant directory from managed code. The library enables the developers to write LDAP enabled applications that access, manage, and update information stored in Novell eDirectory or other LDAP-aware directories. We assume that the user of the library is familiar with general understanding of LDAP before using the class provided in the library. This document provides an overview of the .NET C# LDAP library and programming code examples." by Sunil Kumar

    amazing component really, and i tested and it's working like a charm , if you would like to download it here is the URL

    http://developer.novell.com/wiki/index.php/LDAP_Libraries_for_C_sharp

    Documentation

    http://www.novell.com/coolsolutions/feature/11204.html

  • Creating Efficient ASP.NET AJAX Applications

    ASP.NET AJAX UpdatePanel control introduced a new mechanism to avoid page flickers during postbacks , while we did gained from this approach we should carefully use the UpdatePanel control.

    ASP.NET AJAX was not only introduced to give us a user friendly application but also to provide us with an efficient and performed applications and to minimize the amount of data sent on the wire during postbacks, here am just giving couple of tips to follow while using the UpdatePanel control

    Am summarizing here couple of tips you should follow

    1-      Whenever using multiple UpdatePanel controls in your page consider setting the UpdateMode property to conditional to minimize the amount of data sent over the wire.

    2-      Whenever using the UpdatePanel control try to nest only those controls that will be updated from the server against the pages’ events

    3-      Try to avoid using the UpdatePanel control, the only drawback of using this will be including some javascript code, the effort you will introduce in doing so will increase your application's performance.

    Consider reading the following articles
    UpdatePanel Tips and Tricks
    ASP.NET AJAX Architecture

    Enjoy J


    kick it on DotNetKicks.com
  • Speed up your skills

    This post is targeting all the new guys who would be starting their career with the .NET platform, am personally not into printed books when it comes to technical subjects, i found out that there are a lot of start up tutorials in different categories that new .NET developers would love to know where they could get it

    C#
    http://msdn2.microsoft.com/en-us/library/aa288436(VS.71).aspx

    ASP.NET 2.0
    http://www.asp.net/learn/dataaccess/default.aspx?tabid=63

    AJAX
    Videos
    http://www.asp.net/learn/videos/default.aspx?tabid=63#ajax

    Security How Tos
    http://msdn2.microsoft.com/en-us/library/ms978512.aspx

    http://msdn2.microsoft.com/en-us/library/aa302415.aspx

    Performance
    http://msdn2.microsoft.com/en-us/library/ms998530.aspx

    .NET Data Access Architecture Guide
    http://msdn2.microsoft.com/en-us/library/ms978510.aspx

    Caching Architecture
    http://msdn2.microsoft.com/en-us/library/ms978498.aspx

    will try to get you alot of resources

    keep enjoying :)

  • Visual Studio 2005 SP1 problem with windows server 2003 R2

    I just got a new PC down here with windows 2003 server installed on it i started to prepare it and while installing the VS 2005 SP1 for 20 minutes it fired an error in my face my problem is i didn't read the message and started to reinstall again after a restart for the machine and here again another wasted 20 minutes and the error fired again i closed the message without reading it again and i have consulted some colleague and he sent me a useful article but before sending it i found this blog entry discussing this issue and i followed the instruction and here it comes the SP1 finally got installed :D happy me

    this gives us a big message
    1- never close a msg box without reading it.
    2- search google for the error it might been occurred to others as will.

    URL related to this subject
    http://vaultofthoughts.net/VisualStudio2005ServicePack1.aspx

    The magical fix :D
    http://go.microsoft.com/fwlink/?LinkId=75605

     

  • MultiView control in ASP.NET 2.0

    During the past days of ASP.NET 1.1 we used to use multi panels whenever we needed to separate our controls in a specific block and to show/hide the panel whenever needed
    now ASP.NET 2.0 provide us with the Multiview control it is used for the same concept with less overhead

    here is an example

    <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
    <asp:View ID="view1" runat="server" >
    </asp:View>
    <asp:View ID="view2" runat="server"></asp:View>
    </asp:MultiView>

    and then you can use the following to activate a specific view

    MultiView1.SetActiveView(view2);
     

     

  • Series: AJAX ABC - Part 1

    I decided to start a new series to present AJAX from another point of view which is providing definitions, guidelines of the AJAX components,

    First we will start this entry with what is AJAX?
    AJAX is shorthand of "Asynchronous JavaScript and xml" from this definition we start to know that AJAX is not a new technology but set of already known technologies and tools that provide us with a new web user experience.

    from the above we could start to understand :-

    1- AJAX is a technique not a technology.
    2- You should know about JavaScript, XML, CSS and also browser compatibility issues.

    also to note here AJAX is not a new technique that we knew about today, it was already existing over the internet but we didn't give any focus on it.

    somebody would start to say will AJAX going to replace Flash?, no it will not the one that will do so is WPF\E which already has full integration to ASP.NET AJAX

    anyway this is enough for now see you in the coming entry....

    next entry will be focusing on the challenges we will face when implementing AJAX over the internet..
    Enjoy ;)

     

  • Application Architecture for .NET: Designing Applications and Services

    During my visit to the patterns and practices sub site i found a useful guide regarding .NET application and services designing it is really useful and will guide you through some of the new concepts and techniques.

    Application Architecture for .NET: Designing Applications and Services

    note that the author is Edward A. Jezierski, this guy has visited Egypt this year during the MDC sessions and was one of the presenters

  • SqlBulkCopy – one major feature in the ADO.NET 2.0

    There was in the past lots of approaches to transfer data from one table to another those methods deferred in its complexity or in the performance impact behind applying it,
    We face this scenario everyday in our real life projects and even in our small code snippets that support us in the data migration process while project deployments and so on…

    Taking the above scenarios in our minds the ADO.NET 2.0 introduced the SqlBulkCopy class which work as a schema mapping between two data sources and starts transferring data from a source data table to another.

    This operation takes the following steps:-

    1-      We define the data source and the targeted destination

    2-      Then we start mapping the data attributes – columns – between the source and the destination tables.

    3-      After that we start configuring the BatchSize – the number of rows to be copy in each attempt to copy- and the BulkCopyTimeOut.

    4-      We also have a SqlRowsCopied event which get fired whenever the number we define in the NotifyAfter property got reached.

    Let’s go to the enjoyable part which is CODE J

    protected void MoveData(DataSet dsSource)

            {

              

                using (SqlConnection connDest = new SqlConnection(ConfigurationManager.ConnectionStrings["connection"].ToString()))

                {

                    using (SqlBulkCopy bulkCopyobj = new SqlBulkCopy(connDest))

                    {

                        //Start mapping columns

                        bulkCopyobj.ColumnMappings.Add("SourceID", "DestID");

                       

                        //configure the SqlBulkCopy Properties

                        bulkCopyobj.BatchSize = 90;

                        bulkCopyobj.BulkCopyTimeout = 15;

                        bulkCopyobj.NotifyAfter = 250;

                        bulkCopyobj.DestinationTableName = "DestinationTable";

                        bulkCopyobj.SqlRowsCopied += new SqlRowsCopiedEventHandler(bulkCopyobj_SqlRowsCopied);

                        //start moving data

                        bulkCopyobj.WriteToServer(dsSource.Tables[0]);

      //close the bulk copy operation

                        bulkCopyobj.Close();

     

     

                    }

                }

              

     

            }

     

            void bulkCopyobj_SqlRowsCopied(object sender, SqlRowsCopiedEventArgs e)

            {

                Console.Write(string.Format("{0} Rows copied....",e.RowsCopied.ToString()) );

            }

            protected DataSet GetData()

            {

                using (SqlConnection connSource = new SqlConnection(ConfigurationManager.ConnectionStrings["connectionSource"].ToString()))

                {

                    SqlDataAdapter da = new SqlDataAdapter("GetDataFromSource", connSource);

                    DataSet ds = new DataSet();

                    da.SelectCommand.CommandType = CommandType.StoredProcedure;

                    da.Fill(ds);

                    return ds;

                }

            }

  • We Are Standing under the Egyptian Communities Booth

    Under the umbrella of Microsoft MDC 2007 barmagy will be standing inside the Microsoft Communities booth, we are waiting you starting 4th of Feb till 7th of Feb 2007 you are most welcomed to come and visit us ... :)

     

  • ASP.NET AJAX Released

    Last tuesday ASP.NET AJAX Released, download now

    Enjoy the full fun 

  • Get the ASP.NET AJAX Cheat Sheet Now

    Milon @ the aspnetresources.com was working on compiling the cheat sheet for the Javascript base type extensions Download here 

    Source
    click here

More Posts Next page »

Post Calendar

<August 2008>
SuMoTuWeThFrSa
272829303112
3456789
10111213141516
17181920212223
24252627282930
31123456

News

Add to Technorati Favorites

Syndication






© All rights are reserved