April 15, 2009
April 13, 2009
How do I pass function as parameter in javascript
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
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.
April 9, 2009
System.Net.Mail
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
HDFC Unit link standard life insurance policy’s Toll free number 1800-209-7777
Ethernet switches
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
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
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