ASP Adding A Link To User Profile

Category: Programming Written by Naldi Hits: 937

* AfterSuccessfulLogin event. In this example id is a primary key column name in login table :


* Create a new menu item via Menu Builder :

- Link type: Application page
- Link to: Users (login table) List page
- Link text: My profile

* Add the following code to MenuItem: Modify event :

if menuItem.getTitle()="My profile" then
menuItem.setUrl_p1("users_edit.asp?editid1=" & Session("user_id"))
end if

ModifyMenuItem = true


* Finished.