Author |
Topic  |
tribaliztic
Senior Member
   
Sweden
1532 Posts |
Posted - 13 March 2006 : 04:50:15
|
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 -
|
 |
|
tribaliztic
Senior Member
   
Sweden
1532 Posts |
Posted - 13 March 2006 : 06:20:21
|
I think it's better if I continue in my other thread now that the problem with MemberID is solved =) < |
/Tribaliztic - www.gotlandrace.se -
|
 |
|
Zuel
Average Member
  
USA
540 Posts |
Posted - 13 March 2006 : 10:37:44
|
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
|
 |
|
tribaliztic
Senior Member
   
Sweden
1532 Posts |
Posted - 14 March 2006 : 04:50:45
|
Yeah, I noticed that =) < |
/Tribaliztic - www.gotlandrace.se -
|
 |
|
puthen
Starting Member
7 Posts |
Posted - 26 September 2007 : 19:43:59
|
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. |
 |
|
tribaliztic
Senior Member
   
Sweden
1532 Posts |
Posted - 27 September 2007 : 01:09:51
|
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 -
|
 |
|
cripto9t
Average Member
  
USA
881 Posts |
Posted - 27 September 2007 : 09:41:08
|
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 |
 |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 27 September 2007 : 09:46:51
|
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 |
 |
|
puthen
Starting Member
7 Posts |
Posted - 30 September 2007 : 23:39:47
|
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. |
 |
|
Topic  |
|