Diary

April 15, 2009

Html Vertical align

Filed under: Uncategorized — Himanshu @ 12:24 pm

http://phrogz.net/CSS/vertical-align/index.html

April 13, 2009

How do I pass function as parameter in javascript

Filed under: Uncategorized — Himanshu @ 1:45 pm

Passing function as parameter is as equal to passing any other variable. Make sure you don’t include brackets while you mention function name in parameter while calling.

   1: function add1(n) { 
   2:     return n+1
   3: }
   4:  
   5: function demo(f, p) {
   6:     return f(p);
   7: }
   8:  
   9: demo(add1, 1) == 2; // true

April 12, 2009

Adding javascript from asp.net custom controls

Filed under: Uncategorized — Himanshu @ 11:09 am

Adding script file, css and any other web resource from class library have made easy now. Say you are creating class library for web controls, and you want to add script file to that. You can use System.Web.UI.WebResourceAttribute.

This will drastically help me, specifically for javascripts as I used to create (may be many others as well) javascript functions using string builder. And then register that using register client script block.

ASP.NET 2 also has function to add javascript include to the page.

Div rounded corner with css and javascript

Filed under: Uncategorized — Himanshu @ 10:58 am

For rounded corner, see this link. For ASP.NET control for the same see this.

April 9, 2009

System.Net.Mail

Filed under: computers — Himanshu @ 7:13 am

Yesterday, I happend to reach to this site (http://www.systemnetmail.com/) it’s really cool site for most of the things about sending email from .net application.

For any issue related to system.net.mail namespace, visit that site.

April 8, 2009

HDFC Policy toll free number

Filed under: invenstment — Himanshu @ 12:26 pm

HDFC Unit link standard life insurance policy’s  Toll free number 1800-209-7777

Ethernet switches

Filed under: computers — Himanshu @ 10:03 am

In company, we need to purchase some Ethernet switch. There was confusion about difference between managed and unmanaged switch. And I found this. It’s really cool description of managed switch

Mockup screens

Filed under: computers — Himanshu @ 6:20 am

This is pretty cool, I see one tool that helps creating mockup screen, Balsamiq Mockups.

Also see the demo on their site. Liked the way it allows to quick search and add control on the canvas

April 7, 2009

Okay, so I’m ready

Filed under: Uncategorized — Himanshu @ 1:06 pm

By this blog, I’m going post more frequent and small posts. I think that will help me in putting my thoughts in words, and validate them by second thought. This blog is not meant to publish my words to the world but to myself. In other words it’s gone be my diary to what I think and what I do.

I expecting that this will also help me in improving my english writting.

Anyway, lets not set lot of expectations

Powered by WordPress