Eight Constitution Medicine (ECM) is a comprehensive system of healing that has been proven effective for over 2500 years. It is one of the fastest growing health care modalities today. Why does one get tired after eating a meal? Why is one allergic to a particular food or medication and others are not? Why does one […]
Blog
Risk dice roller
Here is a simple mobile app I helped my son write. He is a big Risk fan and this seemed like a great way for him to get introduced to android development. Risk Dice Roller app is designed to replace dice needed for the original risk board game. It automates the rolling process and keeps […]
MS SQL query to Find Columns or Fields in Database
If you need to locate a field in a large database and you don’t know what table the filed is or not really sure of the exact spelling of the field, you can use this simple query to search for fields names in a database.
Inject onload javascript for asp.net aspx master page
1. Add reference to HtmlControls on top of your cs file 2. In your Page_Load function of the .cs file add 3. Make sure your master page BODY has the the matching id from above. in this case: 4. In your aspx file, add you load function.
document.getElementById in asp.net with Master Pages
Using JavaScript to locate controls in ASP.net pages that are linked to master pages can be tricky. This is because the ASP.net reassigns control IDs dynamically and the names change. A simple solution is to use asp.net inline Tags. For Example: Instead for using: document.getElementById(“Label1″) try using: document.getElementById(“<%=Label1.ClientID%>”)
c# function for a Bezier Curve
The Bezier Curve formula below can be used to define smooth curves between points in space using line handlers (line P0 to P1 and line P2 to P3). P(t) = (1-t)^3P0 + 3(1-t)^2tP1 + 3(1-t)t^2P2 + t^3P3 At t=0 you will be at p0, and at t=1 you will be at p3. The function below […]