edit-task
Home
Up
Delete
Task Name:
Task Description:
PAGE setup page executed on all pages to execute code for page, can be unique 'per directory'
TaskGroup ID:
Start Date:
Start Time:
Duration:
Priority:
Status:
To Do
Completed
In Process
Add Photo:
Owner ID:
Content:
use HTML
Edit Content
<h1 style="text-align: center;">[ PAGE - pageStart ]</h1> <h2>[WHAT]</h2> <ol> <li>[ def ] page that executes prior to any </li> <li>[ args ] none, </li> </ol> <h2>[WHY]</h2> <ol> <li>x] SET the page layout to default siteLayout</li> <li>x] SET if user comes to page directly, sets the 'user' to anonymous</li> </ol> <h2>[WHERE called from]</h2> <ol> <li>] http://sospep.com/</li> </ol> <h2>[WHEN]</h2> <ol> <li>]</li> </ol> <h2>[EXAMPLE]</h2> <ol> <li>] </li> </ol> <h2>[HOW-TO]</h2> <ol> <li>]</li> </ol> <h2>[REFERENCE]</h2> <ol> <li>] index <a href="task?id=1599" target="_blank">-v-001</a> - orig page</li> <li>] index -v-002 - ] FEA user analytics </li> </ol><hr /> <h1 style="text-align: center;">developer implementation</h1> <h2>[process]</h2> <ol> <li> </li> </ol> <h2>[notes]</h2> <ol> <li> </li> </ol> <h2>[by_date]</h2> <ol> <li>[YYYY-mm-DD]</li> </ol><hr /> <h1 style="text-align: center;">status</h1> <h2>[current]</h2> <ol> <li> ] </li> </ol> <h2>[next]</h2> <ol> <li>] </li> </ol> <div><strong>* have all this code in -v-001 </strong></div> <div> <div><strong>// 2011.06.13 - moving the initialization of these to App_Start</strong></div> <div> // Session["current_user"] = "guest";</div> <div> // Session["current_db"] = "today's featured"; </div> <div> // need class with set and get methods</div> <div>// 2011.06.27 </div> <div> // i] user has NO ACCOUNT , RETURNS db(todaysfeatured) </div> <div> // ] user has account and NO db(firt time),RETURN new blank sospep db</div> <div> // i] user has account and HAS 1 db, RETURNS db(users)</div> <div> // ] user has account and HAS mult db, RETURNS selectdb dlg</div> <div> </div> <div> // var DatabaseExists=false;</div> <div> <div> </div> <div> // REPLACING WORKING </div> <div> // var currentDbNameShort =@MyHelper.getCurrentDbNameShort(@WebSecurity.CurrentUserName);</div> <div> // Session["current_db"]=@WebSecurity.CurrentUserName; WORKS</div> <div> // REV - change to short db name using helper function to create/extract the "default" short db name(DbNameShort) which is just the user email address prefix part(before @ symbol)</div> <div> </div> <div> // GET the userID for the authenticated user</div> <div> // var id =@WebSecurity.GetUserId(@WebSecurity.CurrentUserName);</div> <div> </div> <div> // REV - GET the name of "the db" OR "THE DBS" that the user has access to </div> <div> </div> <div> // var db=Database.Open("StarterSite");</div> <div> </div> <div> @* </div> <div> var sqlQ="SELECT db,dbExists from webpages_Membership WHERE UserId=@0";</div> <div> var rec =db.QuerySingle(sqlQ,id);</div> <div> </div> <div> // var exists=rec.dbExists;</div> <div> // bool DatabaseExists=exists.AsBool() </div> <div> *@</div> <div> </div> <div> </div> <div> @*</div> <div> // GETS the dbName ( 1 only )</div> <div> var sqlQ2="SELECT sName from UserProfile WHERE UserId=@0";</div> <div> // REV WA - now using dbs table, ( again 1 name only)</div> <div> var sqlQ2="SELECT sName from db_owner WHERE ownersUserId=@0";</div> <div> var name =db.QueryValue(sqlQ2,id);</div> <div> *@</div> <div> </div> <div> // OLD var freindlyname=rec.db;</div> <div> // if (rec.dbExists)</div> <div> </div> <div> </div> </div> </div> <p> </p>