26 June 2009

It is very good to compress javascript before you upload it before live site.

here it is a online tool to Compress and obfuscate Javascript code online completely free using this compressor.

Just enter your code and click on "Compress".


make it easy!

25 June 2009

Add cool flash based gadgets in you block.


See here, click any where in flash area fish will come here to eat that food!




Visit http://abowman.com/google-modules/ too see more gadgets.

19 June 2009

Writing inline documentation is very useful but many developers are excusing that its is taking to much time to write down comments, Friends here is a tool for you which will write XML documentation in your C# or VB.net code vary quickly.

This tool is works with Visual Studio 2005, 2008.

GhostDoc is a free Visual Studio extension that automatically generates XML documentation comments.

Its allows us to add quick documentation for :
  • Methods
  • Properties with its data type
  • Parameters Name
  • Variable Name
See the below example :


Just right click on clock on the name of the function, where will be a menu with "Document this".
Click on it and it will write word quickly documentation for you.

See here the result:



So GhostDoc is very useful tool,

happy codding.

17 June 2009

I you are working on live site and you need to make some modifications on live server, during this modification you want to show a user friendly message that "Site is under maintenance" or "Site is under construction." or something like that, without affecting any page or database.

You just need to make a simple HTML page with "app_offline.htm" name and upload it on root directory of the web site. once user try to open this site, IIS will open this page in place of "default.aspx".

and you can write down, user friendly message on this page. after completing your task just delete this file or rename it. and site will start work as it is.


16 June 2009

WMD is a simple, lightweight HTML editor for blog comments, forum posts, and basic content management. You can add WMD to any textarea with one line of code. Add live preview with one line more.

See Demo here.

If any user don't want any advance functionality and just want to provide lightweight HTML editor, WMD is a very useful tool.

Some other popular editor are :

15 June 2009

When user click on "Send", "Submit", "Save" or "OK" button, page starts process for postback and user did net get idea whats going on,

Some time when there is lots of data are transferring; we need to create user friendly web application to get idea to user that still its working please wait for some time.

Using only javascript to so process or fire some function when user click on submit button, after check validations or before checking validation.

A button on page:
asp:button runat="server" id="btnSave" onclick="btnSave_Click">


One hidden div tag with processing image:

div id="divProcess" class="goProcess">
img src="http://www.blogger.com/images/bigrotation2.gif" alt="Image" />
/div>


Now one javascript function:

script language="javascript" type="text/javascript">
function WebForm_OnSubmit() {
if (typeof (ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) {
return false;
}
else {
document.getElementById("divProcess").style.display = "block";
return true;
}
}
/script>


that all; now when user click on submit button; it will check validations first; else it will show that image;

the javascript function name is "WebForm_OnSubmit" which fires every time when user clicks on Submit button.

14 April 2009

CSS Z-Index is not working in IE7 Visit here to get you answer.

Z-Index and position tag have are

10 March 2009

# Local variable

Mein pal do pal ka shayar hoon,
pal do pal meri kahani hai
pal do pal meri hasti hai..

# Global variable

Main har ik pal ka shayar hoon
har ik pal meri kahani hai
har ik pal meri hasti hai

# Null pointers

Mera jeevan kora kagaz
kora hi reh gaya..

# Dangling pointers

Maut bhi aati nahi
jaan bhi jati nahin.

# Goto

Ajeeb dastan hai yeh
Kahan shuru kahan khatam
Ye manzilen hain kaun si
Na woh samajh sake na hum

# Two Recursive functions calling each other

Mujhe kuchh kehna hein
mujhe bhi kuchh kehna hein
Pehle tum, pehle tum.

# The debugger

Jab koi baat bigad jaye
Jab koi mushkil pad jaye
Tum dena saath mera hamnawaz.

# From VC++ to VB

Yeh haseen vaadiyan
Yeh khula asmaan
Aa gaye hum kahan.

# Untrackable bug

Aye ajnabi, tu bhi kabhi, awaaz de kahin se.

# Unexpected bug (esp during presentation to client)

Ye kya hua, Kaise hua, Kab hua, Kyon hua

27 February 2009

System.Web.Mail is a web site to get very useful information, There is also faq to send to send email different kind of email.

26 February 2009

You can apply date format in RegularExpressionValidator

suppose I have a textbox to apply date time by "dd/MM/yyyy" format.

I can use flowing ValidationExpression:

<asp:RegularExpressionValidator
ID="RegularExpressionValidator2"
runat="server"
ValidationExpression="(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)\d\d"
ControlToValidate="myTextBox"
ErrorMessage="Enter date in dd/mm/yyyy format">