Jawad Khan

Jawad's Lodge - The willingness to torture yourself before others is what makes a developer truly a unique breed.
posts - 45, comments - 114, trackbacks - 162

My Links

News

Archives

Post Categories

Image Galleries

May 2005 Entries

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 @ Wednesday, May 25, 2005 11:21 PM | Feedback (23) | Filed Under [ ASP.NET ]

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 @ Wednesday, May 25, 2005 11:57 AM | Feedback (40) | Filed Under [ ASP.NET ]

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 @ Monday, May 23, 2005 10:08 PM | Feedback (5) | Filed Under [ ASP.NET ]

MCMS 101 - How to Check if you are in Live Mode or if you are editing the Content of a Posting ....

Here we go again. One of the simplest but kind of hidden functionality is how to determine if the current posting is accessed in live mode or in the edit mode. Microsoft Content Management Server has several modes to display the page out of these three are the most prominent ones i.e. Published , UnPublished and Editing Mode. It is frequently asked that how you can display hint to the authors while they are Creating a new posting or editing an existing one ...

posted @ Friday, May 20, 2005 11:17 AM | Feedback (2) | Filed Under [ Microsoft Content Management Server ]

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 @ Friday, May 20, 2005 5:20 AM | Feedback (14) | Filed Under [ ASP.NET ]

MCMS 101 - Getting/Searching list of Channels or Postings by Custom Property ....

Here is another article in the MCMS 101 series. This one deals with getting a list of all the Channels / Postings that contain a specific Customer Property. Remember that custom property should only be used for searches that are not very extensive and return a small set. If your have requirements of frequent searches on a Mets Information of a Channel(folder) or Posting(WebPage) then a better solution is to have a User Database linked to it. I will talk about it in my future Posts.

posted @ Wednesday, May 18, 2005 4:35 PM | Feedback (7) | Filed Under [ Microsoft Content Management Server ]

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 @ Wednesday, May 18, 2005 10:49 AM | Feedback (3) | Filed Under [ ASP.NET ]

MCMS 101 - Automatically Approve all the Posting after copying or Making Bulk Changes to the Site

It is common to create multiple websites in a single instance of Microsoft Content Management server 2002 Server. Usually these sites share same site structure with different Content and different Skins. The simplest and efficient way to kick off a new site is to copy the child channels and posting after creating the Root channel for the New site.

posted @ Wednesday, May 18, 2005 4:17 AM | Feedback (1) | Filed Under [ Microsoft Content Management Server ]

Calculating Cache Node Size for MCMS Site Administrators .. SQL Script

I am often asked what is the optimum value to put in the “Maximum Nodes in Memory Cache” setting in the Site Configuration Application Tab 2 named Cache in your Production environment. The idea is that the node cache is big enough to hold a 'copy' of all the nodes for your entire site, so the suggested size calculated from following script is the one to go for.

posted @ Tuesday, May 17, 2005 1:39 PM | Feedback (5) | Filed Under [ Microsoft Content Management Server ]

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 @ Tuesday, May 17, 2005 10:10 AM | Feedback (6) | Filed Under [ ASP.NET ]

Creating Custom XML Placeholder Control ......

MCMS 2002 has a XML placeholder definition object but there is no XML placeholder Web Control shipped with the product. Woodgrove Sample MCMS website comes with a XML placeholder control but it real annoying in the sense that you only have 10 rows of text visible at a time. It is common requirement to customize the XML placeholder feel and look and also the functionality.

posted @ Monday, May 16, 2005 8:47 PM | Feedback (6) | Filed Under [ Microsoft Content Management Server ]

MCMS 101 - Getting Content out of Placeholder ....

The most common functionality required in any MCMS project is to get access to the content contained in the placeholder. MCMS has different kind of placeholder definitions like HtmlPlaceholder, ImagePlaceholder, XmlPlaceholder and AttachmentPalceholder. It is desirable to get the content according to the type of placeholder for e.g in case of ImagePlaceholder you want the URL of the Image or some other properties rather then just a blog of string or HTML.

posted @ Sunday, May 15, 2005 5:04 PM | Feedback (2) | Filed Under [ Microsoft Content Management Server ]

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 @ Sunday, May 15, 2005 2:32 AM | Feedback (29) | Filed Under [ ASP.NET ]

MCMS 101 - How to point your Local Site Manager to another Environment ....

One of the simple but very handy feature is to be able to have shortcuts on your desktop that can invoke site Manager that is pointing to Development, Content, Stagging and Production Environment.

posted @ Saturday, May 14, 2005 7:23 PM | Feedback (2) | Filed Under [ Microsoft Content Management Server ]

Code Conversion Tools ....

posted @ Saturday, May 14, 2005 12:38 PM | Feedback (3) | Filed Under [ ASP.NET ]

Very Useful Free ASP.Net Custom Controls ...

posted @ Saturday, May 14, 2005 11:53 AM | Feedback (26) | Filed Under [ ASP.NET ]

Deployment Tool for ASP.Net Projects ....

posted @ Friday, May 13, 2005 7:32 PM | Feedback (6) | Filed Under [ ASP.NET ]

How to maintain a Microsoft Content Management Server database

posted @ Friday, May 13, 2005 2:47 PM | Feedback (4) | Filed Under [ Microsoft Content Management Server ]

MCMS 101 ... How to get List of Child Channels Name and Url for Navigation control ...

posted @ Friday, May 13, 2005 2:21 PM | Feedback (3) | Filed Under [ Microsoft Content Management Server ]

MCMS 101 - Quick Tutorial ...

posted @ Friday, May 13, 2005 11:11 AM | Feedback (8) | Filed Under [ Microsoft Content Management Server ]

Welcome !!!

posted @ Friday, May 13, 2005 12:13 AM | Feedback (2) |

Invalidating ASP.Net Output Cache (Template) when new Content is Imported

posted @ Thursday, May 12, 2005 10:49 PM | Feedback (2) | Filed Under [ Microsoft Content Management Server ]

How to Inavlidate User Control Cache Programatically....

posted @ Thursday, May 12, 2005 9:43 PM | Feedback (2) | Filed Under [ ASP.NET ]

How to print only a Specific User Control or any Web Control from a WebForm ...

It is a frequent reuirement that you want to print a particular section of .aspx page or just a control like DataGrid with data populated. Usually the Javascript window.print will print the whole page that includes Navigation controls and other un desired items on the printed page. In order o solve this we need to render only the User control and print it but the caviar is that this page shuld not appear to the user.

posted @ Thursday, May 12, 2005 7:34 PM | Feedback (31) | Filed Under [ ASP.NET ]

Powered by: