To redirect to the profile edit page after successful login, use the following code in the Login page: After successful login event.
var tblUsers = GlobalVars.dal.Table("UserTableName");
var rs = tblUsers.Query(String.Format("UserNameField='{0}' and PasswordField='{1}'", username, password), "");
var result = CommonFunctions.db_fetch_array(rs);
MVCFunctions.HeaderRedirect("tablename", "edit", String.Format("editid1={0}", result["IDField"]);
MVCFunctions.Exit();
See also:
•Redirect to details page after master record was added