Contents

 
Home
ASPRunner Professional 7.0 manual
Prev Page Next Page
 
 

Hide controls on Add/Edit pages, based on logged user name

 

To hide Horsepower field use the following code in Add Page: BeforeDisplay and/or Edit Page: BeforeDisplay event.

yellowbulbNote: Change the values listed in red to match your specific needs.

1. Horsepower edit control will be shown only if username equals "admin".

if Session("UserID")="adminthen

  xt.assign "Horsepower_fieldblock",True

else

  xt.assign "Horsepower_fieldblock",False

end if

2. Horsepower edit control will be shown only if current user belongs to the admin group.

if Session("AccessLevel")=ACCESS_LEVEL_ADMINGROUP then

  xt.assign "Horsepower_fieldblock",True

else

  xt.assign "Horsepower_fieldblock",False

end if

More info about ASPRunnerPro session variables.

Converted from CHM to HTML with chm2web Standard 2.85 (unicode)