Recent Posts
Calendar
April 2009
S M T W T F S
« Mar   May »
 1234
567891011
12131415161718
19202122232425
2627282930  

Archive for April 30th, 2009

DotNetNuke CSS in your Module Settings

tp_vol1_002 I have a friend that is working at a local college who called recently because he was having some trouble with his CSS using the Module Settings feature where you can add additional code for the Module’s header and footer.

If you aren’t already aware of this feature, now would be a good time to learn about it.  it can be used to embed javascript into your form, add or change CSS or even provide additional wrapper code for your module.

Read the rest of this entry »

Initializing An Array inline

arct-075 This is part two of the discussion I started yesterday about the StackOverflowException, where I explained how memory gets allocated for the different types of variables we have in our systems and how understanding that can prevent the StackOverflowException.  The question came back with some code this time which looked something like this:

private mystruct[] m_struct = 
    new mystruct[6000000];
private mystruct[] GetStructArray()
{
    m_struct[0] = 
        new mystruct(3, 2);
    ...
    m_struct[5900000] = 
        new mystruct(5,4);
}
struct mystruct
{
    public mystruct(int i,int j)
    {
        m_i = i;
        m_j = j;
    }
    public int m_i;
    public int m_j;
}

Read the rest of this entry »