Feeds:
Posts
Comments

Archive for January, 2008

substring for MSSQL

I have a column called FileName with values such as “100.wmv, 200.wmv, 999.wmv”, but i just want to display “100, 200, and 999″ without wmv extension.
so I just use substring to solve the problem
select substring(FileName, 1, 3) as FileName from [TableA]
Here the explaination to use : SUBSTRING(string to manipulate, start index, length of string to [...]

Read Full Post »

Since I m using DNN to built module, I m also wish to utilize as much as possible from DNN framework.
To send Email, I m just simply use API below 
DotNetNuke.Services.Mail.Mail.SendMail
A single line of code to solve a problem. Here the simple example I used :
DotNetNuke.Services.Mail.Mail.SendMail(FromAddress, SendTo, “”, Title, output.ToString(), “”, “”, “”, “”, “”, [...]

Read Full Post »

extending Enum

Today I m faced a problem when I want to re-use Enum without major change on the based code.
Here the simple example,
I got a drop down list which bind Enum, here the sample code:
public enum Gender
{
[Description("I m a Male")] M,
[Description("I m a Female")] F
}
if you just bind the Enum, your dropdownlist will simply show you [...]

Read Full Post »

Finally I got a chance to check out DNN Skin Control (no choice, my task is to fulfill customer requirement),
When I m want to implement SSO in DNN, I got to customise the “User” control, disable the hyperlink allow them access the user profile page to do some funny stuff.
If you want to know more about Skin Control, here the directory path.  
DNN’s Skin Control [...]

Read Full Post »

I just discovered that DNNTabStrip can be controlled.
I got 4 tabs on the page, which is Tab A, Tab B, Tab C and Tab D.
When I m click Tab B, System will navigate to Detail page of B, then I click Back button, it will return to Tab A but not Tab B by default, [...]

Read Full Post »