I was asked to read all Mail merge Files in an HTML Template and then perform a mail Merge.
The MailMerge Fields were like ##[Field]##.
So thought to use regex to find the fields.
The biggest task for me was to write a regex for Matching ##[Merge Fields]##.

OM. Trayambakam Yajamahe,
Sugandhim Pushtivardhanam;
Urva Rukamiva Bandhanaan,
Mrityor Mokshiye Maamritat.
OM triyambakam yajāmahe sugandhim pushTivardhanam,
urvārukamiva bandhanān mrrityormokshiya māmrritāt.
Meaning :
Om. We worship The Three-Eyed Lord Shiva who is naturally fragrant, immensely merciful & and who is the Protector of the devotees. Worshipping him may we be liberated from death for the sake of immortality just as the ripe cucumber easily separtes itself from the binding stalk i.e.By your Grace, Let me be in the state of salvation (Moksha) and be saved from the clutches of fearful death.
The Maha Mrityunjaya Mantra is very much a protector from accidents, mishaps and daily calamities in the modern busy life.
I am writing this post to help people like me who are new to nunit. Bascially it’s easy to setup but some time it can be really hard for some people.
I had to display Yes or No based on databind this is how I did it.
<asp:Label ID=”IsUserActiveCheckBox” Text=’<%# if(Eval(“IsUserActive”),”Yes”,”No”) %>’
runat=”server” />
Also Bind will not work if you are databinding it.
Here is another example where I used code behind.
in Aspx :
<asp:RadioButtonList ID=”rbGLRSearch” runat=”server” RepeatDirection=”Horizontal”
OnSelectedIndexChanged=”EnableCluster” AutoPostBack=”true” SelectedValue=’<%# GetCheckBoxValue(Eval(“GLRSearch”)) %>’>
<asp:ListItem>Yes</asp:ListItem>
<asp:ListItem>No</asp:ListItem>
<asp:ListItem>N/A</asp:ListItem>
</asp:RadioButtonList>
in code behind :
Protected Function GetCheckBoxValue(ByVal bool) As String
If bool Is Nothing Then
Return “N/A”
ElseIf bool = True Then
Return “Yes”
ElseIf bool = False Then
Return “No”
End If
Return True
End Function
Today I have decided that I will start writting one post everyday. Lets see how far I go.
Today only one bug( rather a minor change) was requested by our clients doing UAT.
Problem : We have ajax calanderextender and it shows all the dates for the selected month.
Solution : So rather than doing something in the code the best thing to do was just try and chage the CSS.
Came across this blogs.
really good collection of tools.
worth trying them.

