Thanks to Daniel C. Douglass at ASPAlliance
Thursday, August 28th, 2008Adapted from ASPAlliance
Thanks to Douglass who submitted this where it explains on how to access Public variables/functions of a Dynamically created User control or custom control in ASP.net c#. Apologies if this post upsets anyone in infrignes anything. Please contact me to let me know if theres a problem.
Enjoy
——————————————————–
Title: Solution to accessing properties dynamically
Name: Daniel C. Douglass
Date: 5/20/2005 12:25:31 PM
Comment:
Class name of Custom Control: New_Vote
Public Properties (in New_Vote): DirectorName, VoteID
Custom Control Filename: New.Vote.ascx
The following code should be placed in the code-behind of the web form calling the user control:
//### load user control
Control c = LoadControl(“Controls/New.Vote.ascx”);
//### cast the generic control to be voting control
New_Vote Vote = (New_Vote)c;
//### set control properties
Vote.DirectorName = “Daniel C. Douglass”;
Vote.VoteID = 117;
TitlePanel.Controls.Add(Vote);
This should help everyone!
Noobs setup for Cactus Framework CCTK
Tuesday, August 26th, 2008Wow. its really a challenge for me to install Cactus tookit. 1st step done and next step coming. I would strongly suggest to view http://www.cactuscode.org/WaveToyDemo/ if you have not played with cactus before. Good luck!.
I have had success installing it on Ubuntu Linux. Remember to use make instead of gmake as described in the installation procedure. You might have to install GFortran, CVS, GCC C++, GCC C. I cant remember all of them, but when you try to compile using the make, it will let you know if you are missing certain packages. Just carry on and install the missing ones.
Tibet, tibet and more tibet
Sunday, August 24th, 2008Hmmm. Sometimes we can all blame the media for manipulating facts. What we see and hear, we should not always 100% believe. Things about Tibet perhaps some didnt know. Its a buddhist country and has a long history back to 600 BC where it was then ruled as its own kingdom. Shortly after it joined under a unified central government into China and became its province where China has lifted taxation and allowed its own management party plus funding it from Chinese central government. Offering protection with troops dispatched into its central government. With respects that Tibet is run on religion based (No war and army policy), offering protection is one of its ways to protect its people.
Every country has its dark side where decisions are made wrongly causing casualties. Even dating back to 1700, where the infamous joint allied troops consisting of UK, USA, France, Japan..etc 8 countries invaded plundered and massacred right into the heart of China, thru Tibet and South china. In our new generation, we understand this to forgive and forget about past generations.
In terms of economy, I certainly have to weigh the benefits and downfalls under Chinese rule. Tibet has high lands and a high volume of poverty and low provided education since ages. When China assimilated Tibet as a province, Tibet benefited from Chinas central economy boom and equal support.
I now have to say, perhaps if one truely asks a Tibetian (provicial name like Beijinese, Xichuanese, Cantonese are part of the over 60 cultural ethnic groups in China), they are infact quite pleased to be as a family in China.
Now back to the revolts and unpleasantness in everywhere else in the world, if people sympathizes with some treatment that is made to Tibet. Its in fact the same situation, like a group of extremists who has an alternative plan stages revolts. Even in British rule, such actions would not be tolerated.
I have to say this are government to government movement and decisions, as it would be more civilized to act and negotiate than blindly following the media, making a fool of ourselves, or gain some personal attention.
The bottom line is, if we are all so good at politics perhaps we dont even need our own government, we can run it ourselves; This is of course wrong. I say let the experts at these field handle this. Do what you are best at and stop meddling in other peoples problems when we cant even handle our own.
CVS and SVN versioning control system
Tuesday, August 12th, 2008
After looking at various SVN and CVS products, I find that tortoiseSVN and tortoiseCVS from sourgeforge has to be the most user friendly and easy (No messing about) product for Windows. Unfortunately there are none for linux and mac. There are however some great alternatives but I wont be going over them today.
So what is SVN or CVS? Bottom line is, if you are a developer, or freelance or someone who codes, its a bonus point to put on your CV that you use a Software Version System. All products, codes, websites, applications use at least some form of versioning system. The basic idea is that it is a central server that hosts all the current/latest version of the code including previous versions, so that one can “revert” back to older versions if necessary. The software also helps in resolving conflicting code and helps plan out software releases and bug fixes versions.
They can be found at [ http://tortoisesvn.tigris.org/ ] and [ http://www.tortoisecvs.org/ ]
