A Friend in Need is a Friend in Deed.
Become a Member at ITTreats.com !! Share Your invaluable Experience to Fellow Programmers. Signup, Start Blogging and support fellow Techies.

Calculate Page Execution time in PHP

for those people who want to give users that in how many seconds actually your web page loaded completely. this script will be useful for you. there are so many ways to do this ( as usual ) but the classic approach would be step 1 : make a note of  the time when your page get starts step 2: make a note of  the time  at the end of your total page execution step 3 : step 2 – .. .. ..

Written By : adrevol

Paginating in ASP

pagination in asp, plays major roll when you want to display page wise results , what if the recordset size is more or huge, in that case the processing of the page will become slow… for that here is the query , which will really help you the following query is mssql query for example if you want employee name whose salaries are 2nd highest and 1oth highest now, step 1 :select *, .. .. ..

Written By : adrevol

Creating and Using Own Templates using ASP

when ever the scripts on your pages will become complex, templates are the best solution. working on asp templates is quite easy, 1. stick to page layout eg:. pregare a static html page with your requirements 2. change the content part of each division to one standard identification string eg:. <div id='leftpanel'> <ul> .. .. ..

Written By : adrevol

How to Make Read only Check Boxes

how we can make a chek box readonly? even if we provide readonly attribute you still can check or uncheck the checkbox.. then how we can make a checkbox readonly ?? here is the simple solution,  we can do this  with javascript. here is how it goes write a onclick even for the desired checkbox, and  check weather it is checked , if it is check then make that checked as false vice .. .. ..

Written By : adrevol

Adding Sub MenuItems to the Context Menu Item Dynamically

you can’t add sub menuitems to a context menu item programatically for more than one time. if you try to add first sub menu item it will add up into the list then again if you try to add then the sub menu items wont be displayed, but if you debug it you will find the submenu items will still there . this is bug in .net to over come this problem , toggle the visiblity of the .. .. ..

Written By : adrevol

Strip HTML tags ,Script blocks,Forms, style blocks using Regex in C#.net

many times in many cases we may come across this problem how to strip html tags, how to remove script blocks ? how to remove form blocks and how to remove style sheet blocks ? for those questions here is the simple and best answer read the rest of this entry .. .. ..

Written By : adrevol

Processing Web Request from c#.net/vb.net

to process  web request from c#.net/vb.net windows application we have  webrequest class. import  system.net,system.io name spaces  for requesting and processing the result here is the example code 1. create a uri with the required url   uri wsn=new uri(\”http://www.ittreats.com\”); 2.next  create a webrequest class and pass the above uri object to it   webrequest .. .. ..

Written By : adrevol

How to Hide when form is minimized

to hide a form when minimize button is pressed, we have to write a event for form sized changed event in that, add this condition if (this.windowstate == system.windows.forms.formwindowstate.minimized) { this.visible = false; .. .. ..

Written By : adrevol

working with Notify Icon and Context menu

working with  notify icon and context menu is simple please follow the  steps 1. drag and drop the notifyicon, context menu from the tool box 2. change the names and text of the controls 3. now, create the required menu  for the context menu for eg: add the cut,copy,paste,delete  menuitems to the  context menu 4. now  attach this context menu to the notify icon ,  by  selecing the  .. .. ..

Written By : adrevol