Geeks With Blogs
Jawad Khan Jawad's Lodge - The willingness to torture yourself before others is what makes a developer truly a unique breed. ASP.NET This section will contain Tips and Tricks, Talks and News about ASp.Net related Posts.
How to make sure that the file is downloaded completely by the Users of Web Application ...

While developing a Website you might want to limit the users to download the file only once or would like to hide the link if they successfully downloaded a particular file. In traditional way of downloading the file its hard to know on the server side that file is downloaded successfully by the client. Solution is to stream the file in small chunk and make sure that is connected before streaming the next chunk. If you sucessfully transmitted the whiole file then this would mean that client has

Posted On Tuesday, November 1, 2005 12:00 PM

Troubleshooting ASP.Net Validation Controls ....

Validating user input is an important requirement of most web applications. However, many ASP.NET developers find the standard ASP.NET validation controls to be either hard to use or lacking in features. Peter Blum answers the most frequently asked questions concerning ASP.NET validation.

Posted On Friday, September 30, 2005 9:22 AM

ASp.Net: Search for a Particular User in Active Directory

If you are using FomrsAuthentication against ActiveDirectory you might want to search if a User Id exist in Active Directory or not before taking certain action like creating new profile.This return true or false depending on if user is found or not.

Posted On Friday, August 26, 2005 12:07 PM

How to Bind Enum Types to the Dropdown or any other bindable Control in ASP.Net .....

While working on a Data Form in an ASp.Net application you might want to get a value from the user that corresponds to the Enum you created in your Business Layer. Since Enum types are not strings or .ToString() function doesn't work directly with Enums you need to do it in slightly different way ... Solution: Lets take an example ...

Posted On Friday, June 24, 2005 12:05 PM

Free Internet Explorer (IE) Spell Checker ...that spell checks text Imput Boxes on WebPages ...

ieSpell is a free Internet Explorer browser extension that spell checks text input boxes on a webpage. It should come in particularly handy for users who do a lot of web-based text entry (e.g. web mails, forums, blogs, diaries). Even if your web application already includes spell checking functionality, you might still want to install this utility because it is definitely much faster than a server-side solution. Plus you get to store and use your personal word list across all your applications,

Posted On Thursday, June 23, 2005 1:48 PM

Storing an extra field in an ASP.Net Dropdown List perhaps Primary key with key and value fields .....

In numerous occasions you want to display a drop down box that contains for example a Cit and City No but you also want to have it linked with let's say Employee number since the city list is in a Form where you filling the employee data. the out of box drop down doesn't allow you to store more then 2 fields at a time. Following solution allows you to store an extra field with the given 2 fields in ASP.Net drop down list.

Posted On Tuesday, June 21, 2005 10:09 AM

How to add PostBack to any HTML Web Control that supports JavaScript onClick event ...

I was recently working on one of my project and needed to add postback of a button to one of the images on my Page. After doing some research I found out that it is real easy to add Postbacks to your HTML elements that support Javascript onClick event ... Also sometimes you are generating anchor hyperlinks in your code behind and want the page to be posted back to the sever when someone clicks on those links rather then going to another page. Here is how to accomplish this ...

Posted On Wednesday, June 15, 2005 10:24 AM

How to Position the ASP.NET page to a particular vertical position on PostBack ...

In ASP.Net projects I have come across numerous time that you need to position the the page at certain vertical location on PostBack. For example you might have multiple long Panels or grids that when clicked need to post back the data to the server and return to certain other panel or Grid on the Page. SmartNavigation feature of ASP.Net allows you to keep the last click position on post back but does not allow the positioning of the page to any other desired location.

Posted On Wednesday, May 25, 2005 11:21 PM

Free Rich text Editor very useful for Community based ASp.Net Websites or Any ASP.Net website ...

Community Editor is web based WYSIWYG HTML editor. It enables ASP.Net Web developers to replace the Textarea in your existing/new Web Sites with a powerful, but easy to use WYSIWYG Editor. This rich editing tool empowers end users with an intuitive, easy-to-use interface for creating and publishing Posts/Forms without relying on any client-side components or controls.

Posted On Wednesday, May 25, 2005 11:57 AM

Adding, Updating, Invalidating , Setting Callback and Removing Data Cache in ASP.Net ....

ASP.Net has a very powerful Cache Management component. Cache is part of the most enterprise level .Net project. ASP.Net Data Cache is very flexible and is also available to Windows application by making use of HttpRuntime.Cache object. Microsoft provides a Cache Management Application Block but it can be overkill for lot of applications .....

Posted On Monday, May 23, 2005 10:08 PM

How to validate a valid GUID Value in C#

A Simple to use and efficient way of validating you GUID data type. Instead of trying to create an instance and catching the exception this implementation uses Regular Expression to validate a GUID.

Posted On Friday, May 20, 2005 5:20 AM

Getting, Setting , Deleting and Updating Cookie Data as Collection in ASP.Net

Here is a helper class that makes it easy to do all the data manipulation functions on the data stored in the Cookie. It makes use of HybridDictionary Collection object and is very efficient for handling data in the Cookie.

Posted On Wednesday, May 18, 2005 10:49 AM

SortedList that sorts By Value instead of Key ...

During my consultancy engagements I have come across numerous time when you need to sort the value displayed in the drop down box or in the the other Data bound control. It can be very frustrating to do that if you don't have much experience with .Net and you have to repeat similar code again and again. Well .Net 2.0 will ease it quite a bit with Generics ... For now here is a class that works exactly like sorted list but sorts the List by Value instead of Key ...

Posted On Tuesday, May 17, 2005 10:10 AM

Enabling Enter Key on a Text Box to auto click a Button ....

It is very Common practice to hit an enter key on a text box in order to submit a form. For example if you are designing a Login Screen it is frequently required that user just hit enter after filling in the password rather then to be forced to click on the login butto itself. ASP.Net by default will just post back the form without clicking the the specified button ..... Here is the code that you can call to tie your text box to desired button you want to get clicked .....

Posted On Sunday, May 15, 2005 2:32 AM

Code Conversion Tools ....
I have been asked many times to point to a utility that can convert the sample code or the code snippets found online from Visual basic.Net to C# and Vice versa. After lot of pain and relentless search i have come with following set of useful utilities. They still have their glitches but usually they bring correct result or very near to it. If you know better utlities just post it in the comments section. Thank you in advance .... To get the code converted to Visual Basic.NET from C# the following ......

Posted On Saturday, May 14, 2005 12:38 PM

Copyright © Jawad Khan | Powered by: GeeksWithBlogs.net | Join free