Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 get MemberID without inc_header.asp?
 New Topic  Reply to Topic
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 13 March 2006 :  04:50:15  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message  Reply with Quote
Ok got it..
I used this in top of the code:
if memid = "" then
folder = Request.Querystring("memid")
else
folder = Request.Querystring("memid2")
end if

and it seems to work. BUT, I get an error on this line:
<form name="upldfile" action="ezuploadorig.asp?action=upld&<% = PID %>&memid2=<% MemberID %>" onSubmit="return ShowProgress();" method="post" enctype="multipart/form-data">

Runtime Error Microsoft VBScript error '800a000d'

incompatible types

/ezuploadorig.asp, line 174

(I translated the error so don't trust me on the wording)

Seems like it don't like that I use the memid2?
<

/Tribaliztic
- www.gotlandrace.se -
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 13 March 2006 :  06:20:21  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message  Reply with Quote
I think it's better if I continue in my other thread now that the problem with MemberID is solved =)
<

/Tribaliztic
- www.gotlandrace.se -
Go to Top of Page

Zuel
Average Member

USA
540 Posts

Posted - 13 March 2006 :  10:37:44  Show Profile  Visit Zuel's Homepage  Reply with Quote
Also Trib you need to do this:

<%=MemberID%>

You forgot the equals sign.<

My Completed Mods: News Mod | Zuel's Avatar Add-on
In Development: World of Warcraft Member Roster | [C# Based Forum]

Note - I may take a few days to recieve your email. Hotmail filters all new emails as junk. Would be best to post all questions, concerns in a forum topic to catch my immediate attention. This way others can assist and also correct any similar mistakes.

MSN / E-Mail: ucyimDa_Ruler@Hotmail.com

Personal Bookmarks: How to work a DBS File
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 14 March 2006 :  04:50:45  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message  Reply with Quote
Yeah, I noticed that =)
<

/Tribaliztic
- www.gotlandrace.se -
Go to Top of Page

puthen
Starting Member

7 Posts

Posted - 26 September 2007 :  19:43:59  Show Profile  Reply with Quote
Hi,Tribaliztic,
Did you ultimately get to solve the problem.Iam also trying to do the same in an asp upload page where i want to check if the member is loged in and if not redirct him to the login.asp.
can you put out the entire code for your page or send me via email please.
Puthen<

This account was hacked into by Image, a very honest guy as you all can see! Stealing people' s passwords IS his pasttime.
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 27 September 2007 :  01:09:51  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message  Reply with Quote
ouch, it's been awhile.. I THINK that I just forwarded the value in the redirect like this:
Response.Redirect "ezuploadorig.asp?memid=" & variable & ""
<

/Tribaliztic
- www.gotlandrace.se -
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 27 September 2007 :  09:41:08  Show Profile  Reply with Quote
You can use the chkUser() function located in "inc_func_common.asp"
It returns "mLev" (Members Level) and "MemberID".
<!-- #INCLUDE FILE="config.asp" -->
<!--#INCLUDE FILE="inc_func_common.asp" -->
<%
'## Open connection
set my_Conn= Server.CreateObject("ADODB.Connection")
my_Conn.Open strConnString

'## Check for the cookie
strDBNTUserName = Request.Cookies(strUniqueID & "User")("Name")

chkCookie = 1
mLev = cLng(chkUser(strDBNTUserName, Request.Cookies(strUniqueID & "User")("Pword"),-1))
chkCookie = 0

'##  Your stuff starts here
Response.Write MemberID & "<br />" & mLev
'##  Your stuff ends

'## Close connection
my_Conn.Close
set my_Conn = nothing
%>

<

    _-/Cripto9t\-_

Edited by - cripto9t on 27 September 2007 09:49:12
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 27 September 2007 :  09:46:51  Show Profile  Reply with Quote
You'll need to dim the MemberID variable first. Never mind, just spotted that you included config.asp; MemberID is already dimmed in there.

<

Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”

Edited by - Shaggy on 27 September 2007 09:47:45
Go to Top of Page

puthen
Starting Member

7 Posts

Posted - 30 September 2007 :  23:39:47  Show Profile  Reply with Quote
hi,
Iam developing the pages in .net frame work and hence it is a pain to incorporate include files(asp) in the webforms.Is there any work around?
I need to protect only one page in my website.<

This account was hacked into by Image, a very honest guy as you all can see! Stealing people' s passwords IS his pasttime.
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.33 seconds. Powered By: Snitz Forums 2000 Version 3.4.07