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
Views (1630)
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
Views (2234)
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
Views (1325)
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
Views (1483)
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
Views (1104)
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
Views (996)
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
Views (1346)
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
Views (1183)
If you read a lot of industry magazines and ASP.NET code samples, you may find that, although the majority use Response.Redirect to send the user to another page, some seem to prefer the rather mysterious-sounding Server.Transfer. So, what's the difference?
Well, Response.Redirect simply sends a message down to the browser, telling it to move to another page. So, you may run code like:
Response.Redirect("WebForm2.aspx")
or...>
Read more...
2/26/2008 9:33:30 PM
Published by
FengLiN
Category
ASP.NET
Views (637)
This guide covers Microsoft's recommended approach for implementing performance testing for Web applications. These provide steps for managing and conducting performance testing. For simplification and tangible results, they are broken down into activities with inputs, outputs, and steps. You can use the steps as a baseline or to help you evolve your own process. The performance-testing approach used in this guide consists of the following activities...>
Read more...
2/13/2008 9:02:10 AM
Published by
FengLiN
Category
ASP.NET
Views (675)