RSS-2.0

Dot Net KB

  • ViewState & posting with callbacks

    ASP.NET Ajax makes it easy since UpdatePanel is capable to keep ViewState in sync, but if you insist using callbacks, you might have something to think. Basically first issue is that with callbacks the data to post to the server is gathered at WebForm_InitCallback() method when the Page loads. So first issue you see is that it seems callback doesn't send updated information to the server, that is for the other fields on the form (you usually...

    Read more...
    5/28/2008 2:29:13 AM Published by FengLiN Category ASP.NET Comments 0 Views (217)
  • MICROSOFT SQL SERVER: Temporary tables in SQL Server vs. table variables

    When writing T-SQL code, you often need a table in which to store data temporarily when it comes time to execute that code. You have four table options: normal tables, local temporary tables, global temporary tables and table variables. I'll discuss the differences between using temporary tables in SQL Server versus table variables. Each of the four table options has its own purpose and use, and each has its benefits and issues: Normal tables...

    Read more...
    5/12/2008 4:13:12 AM Published by FengLiN Category Database Comments 0 Views (214)
  • Validating User Input In ASP.NET 2.0 Web Applications

    What you are going to learn in this tutorial? What is Validation? Why it's important? How to use ASP.NET 2.0 validation controls Why you cannot validate every possible input. Introduction Developing robust applications is the target of every serious developer. Being sure from the correctness of the input coming to your application is one of the major practices used to rise application robustness. In this tutorial we are going...

    Read more...
    5/7/2008 4:12:10 AM Published by FengLiN Category ASP.NET Comments 0 Views (233)
  • Focus in ASP.NET Controls

    To provide even better experience for your Web application users, you need to give them a logical and as simple as possible user interface. One of the common tasks when building effective and friendly web applications is management of control's focus, usually text boxes, buttons, dropdown lists etc. Whatever kind of application you build, you will always need make your UI more efficient. One simple and very familiar sample of using focus to provide...

    Read more...
    5/6/2008 3:01:24 AM Published by FengLiN Category ASP.NET Comments 0 Views (490)
  • Enter Key in ASP.NET

    One of the common requests in ASP.NET is to submit a form when visitor hits an Enter key. That could be a case if, for example you want to make Login Screen. It is expected that user just hit enter when he insert a user name and password instead to of forcing him to use a mouse to click login button. If you want to make search function on your web site, it is frequently required to give a possibility to hit enter after you insert a search terms instead...

    Read more...
    5/6/2008 2:58:30 AM Published by FengLiN Category ASP.NET Comments 0 Views (500)
  • Performance tuning tips for database developers

    Below is my list of the top 15 things I believe developers should do as a matter of course to tune performance when coding. These are the low hanging fruit of SQL Server performance – they are easy to do and often have a substantial impact. Doing these won’t guarantee lightening fast performance, but it won’t be slow either. Create a primary key on each table you create and unless you are really knowledgeable enough to...

    Read more...
    5/5/2008 10:23:22 PM Published by FengLiN Category Database Comments 0 Views (209)
  • ASP.NET MVC

    The Model-View-Controller (MVC) design pattern and Test-Driven Development (TDD) drive the majority of today's enterprise-scale Web applications. The MVC pattern enforces separation of concerns by dividing applications into a model to store and manage business data, views to render and enable the user to interact with data, and controllers to translate user actions to an appropriate set of the model's business data and its view. A primary benefit...

    Read more...
    4/15/2008 11:20:07 AM Published by FengLiN Category ASP.NET Comments 0 Views (269)
  • Don’t run production ASP.NET Applications with debug=”true” enabled

    One of the things you want to avoid when deploying an ASP.NET application into production is to accidentally (or deliberately) leave the <compilation debug=”true”/> switch on within the application’s web.config file.   Doing so causes a number of non-optimal things to happen including:   1) The compilation of ASP.NET pages takes longer (since some batch optimizations are disabled) 2) Code can...

    Read more...
    4/8/2008 11:05:23 PM Published by FengLiN Category ASP.NET Comments 0 Views (254)
  • GridView Tips and Tricks using ASP.NET 2.0

    In this article, we will explore some of the most frequently asked questions about the GridView control. The article discusses ten tips and tricks that you can use while using the GridView control. Tip 1: Add, Update, Delete Records in a Gridview using SqlDataSource By default, the GridView control doesn’t have support for inserting new records. However you can use the built-in edit or delete functionality of the GridView control....

    Read more...
    4/2/2008 4:32:06 AM Published by FengLiN Category ASP.NET Comments 0 Views (408)
  • How to open popup windows in IE/Firefox and return values using ASP.NET and Javascript

    With the forums flooded with questions of opening a popup window, passing values to the popup window and then return values back to the parent page using both Internet Explorer and Firefox, I decided to take a plunge into the subject and experiment with an easy implementation. This article explains how to transfer values between the Parent page and a Pop-up window. The code has been tested against IE7 and Firefox. Internet Explorer(IE) contains...

    Read more...
    3/25/2008 11:15:00 AM Published by FengLiN Category ASP.NET Comments 0 Views (363)