Ask a Question related to ASP Database, Design and Development.
-
Krechting #1
How can I deny users changing records
Hi All,
I have an Access db which has a LoginCheck table.
I use this table to login with name and password.
But there is also in the table a field right which can be
"read" or "write".
I want to be able to use this field so users which can may
only "read" do not enter a page where a record can be edited.
I use the following code in each page.
Response.Expires = -1000 'Makes the browser not cache this page
Response.Buffer = True 'Buffers the content so our Response.Redirect will work
If Session("UserLoggedIn") <> "true" Then
Response.Redirect("login.asp")
End If
Now I need some code that when a user wants to go to the edit-page
and his rights are only "reading", he cannot get in.
Regards,
MArco
The Netherlands
Krechting Guest
-
Changing 'sitename' for all users
Hi folks, Sorry to bother you. I am an administrator of a number of sites which I inherited. We have a lot of Contribute users who have access... -
Restrict users from changing roles
Is there a way to restrict users from changing roles themselves? If a user goes to My Connections and then clicks Edit, they could, in theory,... -
new users / records since last login?? - help needed..!
Hi - using APS/Acsess/Vbscript How can I display the total new users/records in a table since last time i logged in on a member page. Help... -
Forms Authentication - "Deny users = ?" necessary
Thanks for your reply Hernan. I can't believe Authentication and Authorization are mixed... If I want to identify/authenticate a user (for... -
Changing X resources settings for CDE users
On Mon, 30 Jun 2003 22:21:58 +0000, Akop Pogosian wrote: How about /usr/dt/config/C/Xresources? It also seems to meet the criterion of being... -
Don Grover #2
Re: How can I deny users changing records
May be a better and more grace full idea is to still view page but not able
to edit
Read in read/write field and if its readonly set a session variable to
"readonly"
then swap the submit button text for the session variable.
<%
'Allows user to view but not perform any Data Insert & Update Functions
(ie. They can look but not change)
If Session("editaccess") = "0" Then
sReadOnly = "readonly"
sChangeButtonState = " ORDERING DISABLED"
Else
sReadOnly ="submit"
sChangeButtonState = "PLACE ORDER >>"
End If
%>
'Button line in form
<td nowrap><input type="<%=sReadOnly%>" value="<%=sChangeButtonState%>"
name="btnCheckout" class="cmdflat"></td>
Regards
Don
"Krechting" <m.krechting@chello.nl> wrote in message
news:a71c776d.0312241342.5294664e@posting.google.c om...work> Hi All,
>
> I have an Access db which has a LoginCheck table.
> I use this table to login with name and password.
> But there is also in the table a field right which can be
> "read" or "write".
> I want to be able to use this field so users which can may
> only "read" do not enter a page where a record can be edited.
>
> I use the following code in each page.
>
> Response.Expires = -1000 'Makes the browser not cache this page
> Response.Buffer = True 'Buffers the content so our Response.Redirect will> If Session("UserLoggedIn") <> "true" Then
> Response.Redirect("login.asp")
> End If
>
> Now I need some code that when a user wants to go to the edit-page
> and his rights are only "reading", he cannot get in.
>
> Regards,
>
> MArco
> The Netherlands
Don Grover Guest
-
Bullschmidt #3
Re: How can I deny users changing records
If Session("UserCanReadOrWrite") <> "write" Then
Response.Redirect("login.asp")
End If
Best regards,
J. Paul Schmidt, Freelance ASP Web Developer
[url]http://www.Bullschmidt.com[/url]
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Bullschmidt Guest



Reply With Quote

