Feeds:
Posts
Comments

Archive for October, 2006

Funny jokes :)

BOY : May I hold your hand?
GIRL : No thanks, it isn’t heavy.

GIRL : Say you love me! Say you love me!
BOY : You love me…

GIRL : If we become engaged will you give me a ring??
BOY : Sure, what’s your phone number??

GIRL : I think the poorest people are the happiest.
BOY : Then marry me and we’ll be the happiest couple

GIRL : Darling, I want to dance like this forever.
BOY : Don’t you ever want to improve??

BOY : I love you and I could die for you!
GIRL : How soon??

BOY : I would go to the end of the world for you!
GIRL : Yes, but would you stay there??

SHARON : Have you ever had a hot passionate, burning kiss??
TRACY : I did once. He’d forgotten to take the cigarette out of his mouth.

MAN : You remind me of the sea.
WOMAN : Because I’m wild, romantic and exciting?
MAN : NO, because you make me sick.

WIFE : You tell a man something, it goes in one ear and comes out of the other.
HUSBAND : You tell a woman something: It goes in both ears and comes out of the mouth.

MARY : John says I’m pretty. Andy says I’m ugly.What do u think,
Peter?
PETER : A bit of both. I think you’re pretty ugly.

Girlfriend : “…And are you sure you love me and no one else ?”
Boyfriend : “Dead Sure! I checked the whole list again yesterday”.

Read Full Post »

Happy Birthday Mom!

Again, comming Oct 30 is my Mom’s birthday.

Happy Birthday Mom although I’m not around there.

Happy Birthday!!!

Read Full Post »

Happy Birthday Dad!

Happy Birthday Dad!

Tomorrow is my Dad’s 57th Birthday( Oct 17 ).

It’s been 2 years that I haven’t been at home on his birthday.

This year also I’m not at home on his birthday.

I missed out the chance to birthday treat again 🙂

Read Full Post »

IELTS Resource Links

Here’s one site where u can download many e-books for IELTS preparation.

Read Full Post »

I’ve been goolgled for a copuple of weeks ago on how to display multi-column in web treeview. Unforetunately I didn’t find any control that meets my reqirement 

But I found out a simple way to show multi-column in treeview.

Here’s a simple sample on how to show multi-column data in web Treeview (MS IE Web Controls).
But have some limitations. So it’s not very good
It doesn’t support for n-levels tree hierarchy and it depends on the treeNode’s text also.
If the treeNode’s Text is so long, then ur tree’s nest level also decrease.
But anyway, it might useful for people who wanna display data in multi-column format and the tree depth is not high. Hope it might give some help for u guys…Here’s the some sample code:


Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If Not Page.IsPostBack ThenobjTreeView.SystemImagesPath = Server.MapPath(”~/TreeRef/webctrl_client/1_0/treeimages/”)

PopulateTree()

End If

End SubPrivate Sub PopulateTree()Dim objRoot As New Microsoft.Web.UI.WebControls.TreeNode

objRoot.Text = “Root”

objRoot.ImageUrl = Server.MapPath(”../Images/Tree/Glob.gif”)

objTreeView.Nodes.Add(objRoot)

LoadSubChild(objRoot, 10)

objTreeView.DataBind()

End Sub

Private Sub LoadSubChild(ByVal objRoot As Microsoft.Web.UI.WebControls.TreeNode, ByVal childCount As Integer)

‘Add first level 100 childsDim i As Integer

For i = 0 To childCount

Dim objFChild As New Microsoft.Web.UI.WebControls.TreeNode

‘Calculat the treenode level

Dim iLevel As Integer = GetTreeNodeLevel(objRoot)

Dim _MaxWidth As Integer = 1000

Dim iWidth As Integer = iLevel * 19

Dim _tableWidth As String = CType((_MaxWidth – iWidth), String) + “px”

Dim _col1Text As StringIf (_MaxWidth – iWidth) – 600 <= 10 Then

_col1Text = “…”Else

_col1Text = “Child” + i.ToString

End If

Dim _Col1Width As String = CType((_MaxWidth – iWidth) – 600, String) + “px”

Dim _Col2Width As String = “200px”

Dim _Col3Width As String = “200px”Dim _Col4Width As String = “200px”

Dim str As String = “<table cellspacing=’0′ cellpadding=’0′ border=’0′ width=” + _tableWidth.ToString + “height=’100%’><tr><td style=’width:” + _Col1Width.ToString + “‘>” + _col1Text.ToString + “</td><td style=’width:” + _Col2Width.ToString + “‘>Col 2</td><td style=’width:” + _Col3Width.ToString + “‘>Col 3</td><td style=’width:” + _Col4Width.ToString + “‘>Col 4</td></tr></table>”objFChild.Text = str‘Set file and folder alternately.

objFChild.ImageUrl = Server.MapPath(”../Images/Tree/folder.gif”)

objFChild.Expandable = Microsoft.Web.UI.WebControls.ExpandableValue.Always

objRoot.Nodes.Add(objFChild)

Next

End SubPrivate Function GetTreeNodeLevel(ByVal objRoot As Microsoft.Web.UI.WebControls.TreeNode) As Integer

Dim count As Integer

Do While objRoot.Parent.GetType Is GetType(Microsoft.Web.UI.WebControls.TreeNode)

count += 1If Not IsNothing(objRoot.Parent) Then

objRoot = objRoot.Parent

Else

Exit Do

End If

Loop

Return count

End Function

Private Sub objTreeView_Expand(ByVal sender As Object, ByVal e As Microsoft.Web.UI.WebControls.TreeViewClickEventArgs) Handles objTreeView.Expand

If Not e.Node = “0″ Then

‘Load the subchild nodes

Dim str As System.Text.StringBuilder

LoadSubChild(objTreeView.GetNodeFromIndex(e.Node), 5)

End If

End Sub

Read Full Post »

Sometimes we get the following error message although we remove the virtual directory from the IIS and create the same virtual directory with the same as the one we’ve been deleted recently.

“The alias ‘LM/W3SVC/1/ROOT/virtual_directory_name’ already exists.”

Solution:

Go to command prompt and type the following

C:\Inetpub\AdminScripts>cscript adsutil.vbs DELETE W3SVC/1/ROOT/virtual_directory_name

Done! That’s it.

Happy Reading ! )

Read Full Post »

I uploaded some of my favourite songs.

You can go and check out here.

Read Full Post »

Older Posts »