Monday, July 16, 2012

.Net Tips and Tricks: Top 10 Programming Languages You Should Learn

.Net Tips and Tricks: Top 10 Programming Languages You Should Learn

Wednesday, February 8, 2012

Tips for Asp.net Web Development




  • Go for Javascript validations instead of validation controls


  • Use Javascript instead of VBscript.


  • Minimize the use of Forms authentication.


  • Use Connection Pooling and Object Pooling


  • Turn off Tracing unless until required


  • Turn off Session State, if not required


  • Disable View State of a Page if possible


  • Set debug=false in web.config


  • Avoid Response.Redirect as many places


  • Use the String builder to concatenate string


  • Avoid throwing exceptions. try to handle the exceptions without try catch.


  • Use Finally Method to kill resources


  • Avoid unnecessary round trips to the server


  • Use Gzip Compression


  • Use Page Output Caching and Proxy Servers


  • Use Per-Request Caching


  • Use Page.ISPostBack


  • Avoid Unnecessary Indirection


  • Use "ArrayLists" in place of arrays


  • Place StyleSheets into the Header


  • Put Scripts to the end of Document


  • Make JavaScript and CSS External


  • Use DataReader instead of Dataset


  • Make Enableviewstate property as false for the components (particularly for heavy items like datagrid, datalist etc) if it is not necessary.


  • Use xmlhttprequest object or scriptmanager to minimize post backs.


  • Declare regions for each section of codes.


  • Try to use datarepeater than any other data controls.


  • Use skins files.




  • Sunday, August 14, 2011

    How Exception comes while executing the Program..

    While execution of many programs we founds exception which stops the program in middle and shows the exact location of problem in code. But normally we are not thinking how this exceptions occur, what the process and who generate this exception....................?
    ------------------------------​------------------------------​------------------------------​----
    So, before going to answer of this question...we should know this:-
    ------------
    Each process has an execution sequence used by the computer CPU. This execution sequence is known as a Thread.
    ------------
    Interrupts:- An interrupt is a mechanism that causes the normal execution flow to branch somewhere else in the computer memory without the knowledge of the execution program.
    ------------------------------​------------------------------​------------------------------​-----
    Now coming to the answer, The exception comes through Threads. while executing the program, threads checks the code and if any error is there it calls the Interrupt handler as shown in the figure, interrupt handler stops the execution in middle and redirect the cursor to exact location of the error in program code.
    -----------------------------
    This is the brief answer about that, u can check out more related to this.......

    Friday, July 29, 2011

    How To Create Menu Bar through Web.SiteMap file?

    Add the Site Map file to the Website................................





     Select the Web.SiteMap file...............and press Ok


    Write the code in Web.SiteMap file................


    Add Menu Control from the toolbox........to the page where u want to place ur menu........


    After adding the menu bar to the page........click on the arrow which is in the right top corner of the menu bar.....and you will find "Choose Data Source" drop down list................click on that and select "<New Data Source>"


    One window will open.............select "Site Map" and press ok........


    Your Menu Has created.....by using Site Map..............

    and now how to add "SiteMapPath"......to the page.........................................
    -------------------------------------------------------------------------------------------------
    Drag and drop the SiteMapPath control from the navigation toolbox.......to the page........

    see the path ....here..........


    Done.........................................Enjoy.........................




    Tuesday, July 19, 2011

    Hotel Management System software Screen Shots

     This is the Application name is HOTEL MANAGEMENT SYSTEM (Windows Based Application)......which is mainly i developed for the Hotels. By using this application hotel management can easily manage the works....like adding employee to the hotel, Room Status, Availability of rooms, kitchen system, updating employee details are easy in this. Like that all works.






















    Monday, July 18, 2011

    Opening a small size image in New Tab with original size

    • Add ------ Image Button Control To The Page
    • Then------ Add Image to the Button
    • Then------ Run The website
    At the running time, 
    Right Click on the Image Button & Open in New Tab.


    Result--- That Button Image will Open in full size in new tab.