November 2006 - Posts
By Dahan Abdo, a basic chatroom but a good basis to start with.
This article describes the construction of a very simple custom server control used to display the content returned from an RSS feed. The control consumes a public web service to retrieve the current data from an RSS feed, and the control displays the content along with a user defined label. The public web service returns the feed content as straight HTML which greatly simplifies the process of displaying the data.
Nice tip posted by Azam! I usually do this with an onclick but this trick is much better and automatic.
This little trick I learned while browsing and reading the www.asp.net forums. The trick is about creating the "Wait Message". Suppose, you are uploading a large file or doing any operation which takes long time to complete. Then it is a better idea to let the user know that something is going on. The wait message should appear when the request is being processed and should dissappear when the request has been completed.
Wow excellent article by Omar Al Zabir!
Atlas provides you batch call feature which combines multiple web service calls into one call. It works transparently, you won't notice anything nor do you need not write any special code. Once you turn on the Batch feature, all web service calls made within a duration gets batched into one call. Thus saves roundtrip time and total response time.
The actual response time might be reduced but the perceived delay is higher. If 3 web service calls are batched, the 1st call does not finish first. All 3 calls finish at the same time. If you are doing some UI updates upon completion of each WS calls, it does not happen one by one. All of the calls complete in one shot and then the UI gets updated in one shot. As a result, you do not see incremental updates on the UI, instead a long delay before the UI updates. If any of the call, say the 3rd call downloads a lot of data, user sees nothing happening until all 3 calls complete. So, the duration of the 1st call becomes nearly the duration of the sum of all 3 calls. Although actual total duration is reduced, but the perceived duration is higher. Batch calls are handy when each call is transmitting small amount of data. Thus 3 small calls gets executed in one roundtrip.
Let's work on a scenario where 3 calls are made one by one. Here's how the calls actually get executed.
An easy way to promote your site and to attract more visitors is to provide a news feed. Feeds can be read by a variety of programs, including FeedDemon, Mozilla, and the upcoming Internet Explorer 7.0. Many sites continue to use RSS (Real Simple Syndication), but RSS was never a defined standard. Atom, the replacement for RSS, is quickly being adopted by many of the blogging software makers, although most of them still provide support for RSS as well.
By Eric Smith Read more...
Thanks to Scott Mitchell for this article so useful for a Web 2.0 type of application!
Paging is an important thing that every web developer should know about. In ASP.NET 1.1 and 2.0, just
GridView has built-in support for paging, and for somebody who prefers
GridView (like me!), it is so painful to implement paging. And as a developer, it was very painful for me. So I decided to write a pager control to simplify this problem on my web applications in a developer friendly way. First, I implemented a version of the Pager control last year. It came with some cool features, but also had two major weaknesses.
- It wasn't suitable for more than 20 pages.
- It used querystring to get the current pPage index, and it was annoying somehow.
and hopefully the presented version has fixed both of the above issues.
- It has the ability to handle large size pages with something I called Smart Shortcuts, they are really cool and are shown in figure-1 in gray background cells.
- The generated hyperlinks do more than a simple hyperlink. they cause a postback to the server, so no more query string parameter will be needed.
Thank to Sam for this very useful snippet!
This will generate a SQL Select Query, Insert Query, Update Query and Delete Query by selecting SQL Database Connection and Choose a table to generate the script for using in class or DataCommand.
Atlas (ASP.NET AJAX) has this cool
UpdateProgress control which provides a visual indicator while one or more of the
UpdatePanel controls are being updated. This
UpdateProgress control is great, but in some cases, I want all other elements on the page be disabled when the
UpdateProgress is shown. Basically, I want the
UpdateProgress to act as something like a modal popup. That led me to build this
Really cool stuff proposed by Dan Letecky
This control allows you to replace this table:
with a much more simple one:
More Posts Next page »