This topic is locked

Font Color & Login screen

3/28/2007 14:09:28
ASPRunnerPro General questions
Corinne author

Hi,
I have a couple of questions. What is the correct syntax to change font color on hte list page? I know it needs to be under custom on the "View as" settings. I'm using 4.1. Just something simple if the value on the text box is not equal to N/A then the font color for the value should be red.
Second question has to do with login. The app I'm workign on just needs the login so that only specified users can see the list page. The whole app is view only but I need to limit who can view it. So far I used "Username & password from database & filled everything in correctly. The new users can register and their password is encrypted (very nice feature!). So my question now is how the user name that they enter is validated by SQL. I know that this isn't just an ASP Runner question but I was hoping that someone else might have come across this question. I can enter myself in as a user usimg my network login name (which has admin rights) and I can see everything correctly. I try entering another user (with network login as user name) and they can get past the login screen but then when the list page loads it shows that there are no records found. I was wonderingif it might be permissions on hte view that I created for the datasource? Like I said I know that this question isn't specific to ASP Runner but someone might have come across this before.
Thanks,

Corinne

Sergey Kornilov admin 3/28/2007

"Custom" View type and the following code should work:

if strValue<>"N/A" then

strValue = "<font color=red>" & strValue & "</font>"

end if


In regards to your second question - take a look at User Group Permissions that can prohibit access to data tables for selected types of users.

G
Gilbert 3/28/2007

Maybe this could help you. In my case I need more than one Admin Account so I add this line of code in the Afert sucessful login Event:
if Session("UserID") ="TES" then SESSION("AccessLevel") = ACCESS_LEVEL_ADMIN
TES is of of my users. In this way when this Admin user login he see all the records on the table.
Gilbert