VIDEO: Evian’s Roller Skating Babies
Posted by malakablog on December 8, 2009
Posted in Uncategorized | Tagged: babies, baby, funny, joke, Skating, video, YouTube | Leave a Comment »
Find a control in a hierarchy of controls
Posted by malakablog on November 20, 2009
You a control ID and you need to find it within a hierarchy of controls. you can use this function:
Private Function FindControlRecursive(ByRef callingControl As System.Web.UI.Control, ByVal controlId As String) As System.Web.UI.Control ctrl = callingControl.FindControl(controlId) If ctrl Is Nothing Then Catch ex As Exception End Try End Function
Dim ctrl As Control = Nothing
Try
If callingControl Is Nothing Then Return Nothing
For Each child As Control In callingControl.Controls
ctrl = FindControlRecursive(child, controlId)
If ctrl IsNot Nothing Then Exit For
Next
End If
Finally
Return ctrl
Posted in Uncategorized | Leave a Comment »
Write to a file using JavaScript
Posted by malakablog on September 9, 2009
Use this function to write to a file using JavaScript
function WriteToFile(sMessage)
{
try
{
var fso, s;
fso = new ActiveXObject(“Scripting.FileSystemObject”);
sFile = fso.OpenTextFile(“C:\\logs.txt”, 8);
sFile.writeline(sMessage);
sFile.Close();
}
catch(err)
{
var strErr = ‘Error:’;
strErr += ‘\nNumber:’ + err.number;
strErr += ‘\nDescription:’ + err.description;
document.write(strErr);
}
}
Posted in Uncategorized | Tagged: code, JavaScript, script, progamming, write, file, Scripting.FileSystemObject | Leave a Comment »
Dublin
Posted by malakablog on September 7, 2009
Posted in Uncategorized | Tagged: D450, flickr, HDR, Photo, Photography | Leave a Comment »
In Dublin Zoo
Posted by malakablog on September 3, 2009
Posted in Uncategorized | Tagged: "Dublin Zoo", animal, closeup, Dublin, face, Photo, Photography, Zoo, zoom | Leave a Comment »
GreyStones
Posted by malakablog on August 17, 2009
GreyStones is located on Ireland’s east cost, I used to live there for more than a year (September 2006 – November 2007). It is a very beautiful town with amazing beach and beautiful green areas, since we moved from GreyStones we used to go back there from time to time. I recommend this town to anyone visiting Ireland
more of my GreyStones’s photos here
Posted in Uncategorized | Tagged: flickr, GreyStones, Ireland, Photo, Photography, recommend | Leave a Comment »
My Simpsons Avatar
Posted by malakablog on August 5, 2009
Posted in Uncategorized | Tagged: avatar, fun, funny, joke, Simpsons | Leave a Comment »
I am back
Posted by malakablog on July 31, 2009
I have been very busy in the last couple months, I was in a vacation in Amman, Jordan for a month, and when I returned back I had to move into a new house.
This post to share with you my most viewed photo in my flickr, I took this photo in Connolly Station.
From Wikipedia
The station was opened on 29 November 1844 by the Dublin & Drogheda Railway Company as Dublin Station, but was renamed ten years later as Amiens Street Station after the street on which it is located. Originally the station only served a single mainline to Drogheda, and only in 1853 did through services to Belfast commence. In 1891 the City of Dublin Junction Railway connected the station with Westland Row Station (now Pearse Station) on the city’s south side. The C of D Jctn was a separate station known as Amiens St Junction and consisted of the present platforms 5,6 & 7 with a separate street entrance. After the amalgamation of the GNR (I) at the end of the 1950s this station became part of the overall Amiens St and the separate entrance fell into disuse. The C of D Jctn Rly. allowed services to run from Amiens St., through to Westland Row, and onwards to Rosslare and the Southeast. Services to Sligo were transferred to Westland Row (Pearse Stn) operating through the station non-stop in 1937, with the closure of Broadstone Station by CIÉ (see also MGWR). Services to Galway and Mayo also originated/terminated at Westland Row, operating through Connolly Station after 1937, running via Mullingar and Athlone. This was discontinued in the 1970s in favour of running services out of Heuston Station on the better quality Cork line. Passenger running between Mullingar/Athlone ceased completely in 1987.
During the 1960s, Sunday trains to Cork, Limerick and Waterford operated from Connolly platforms 5, 6 & 7 (running through the Phoenix Park tunnel) to avoid the cost of opening Heuston (Kingsbridge) for the limited Sunday traffic demand at that time.
In 1966, the 50th anniversary of the Easter Rising, the station’s name was changed to Connolly Station after Irish revolutionary and socialist James Connolly. At the same time, several other main stations in the Republic were renamed after patriots executed for their roles in the Rising.
At the commencement of DART services in 1984, the C of D Jctn Rly entrance was refurbished and reopened for commuter traffic.
During the late 1990s, Connolly Station was completely renovated and partially rebuilt. An entirely new station hall was built, the roof over Platforms 1-4 was replaced, and a new bar/cafe and shops were installed. The former DART/Suburban station entrance (C of D Jctn Rly entrance) and the secondary station hall built with the DART (further north on Amiens St) were again closed, but a new entrance on the International Financial Services Centre side was opened. In 2004, the Luas Red Line (to Tallaght) began serving the station. As part of the preparation for this, the ramp which had been a bus terminus was demolished and replaced with a 2-platform tram station connected to the main concourse by escalators and lift.
Posted in Uncategorized | Tagged: back, Connolly, flickr, Photo, Photography, Station | Leave a Comment »
C#: Bind a DropDownList to IDictionary using AjaxPro
Posted by malakablog on May 1, 2009
- Implement an AjaxMethod to return IDictionary object
[AjaxPro.AjaxMethod]
public IDictionary AjaxGetIDictionary()
{
//Prepare the IDictionary object
}
- Use JavaScript to request the AjaxMethod AjaxGetIDictionary
MyAjaxClass. AjaxGetIDictionary (jsAjaxGetIDictionary_Callback);
- In the JavaScript function jsAjaxGetIDictionary_Callback add the IDictionary items to the DopDownList
function jsAjaxGetIDictionary (response)
{
try
{
var DictionaryItems= response.value;
if (DictionaryItems == null || typeof(DictionaryItems) != “object”)
{
return;
}
var myDropDownList = document.getElementById(“myDropDownList”);
myDropDownList.options.length = 0;
for (var i = 0; i < response.value.length; ++i)
{
myDropDownList.options[myDropDownList.options.length] = new Option(response.value[i].Value,response.value[i].Key);
}
}
catch(e)
{
}
}
Posted in Uncategorized | Tagged: AJAX, ajaxPro, ASP.NET, beginner, code, development, HTML, JavaScript, Programming, web | Leave a Comment »











