T O P I C R E V I E W |
tribaliztic |
Posted - 09 March 2006 : 08:26:49 Is it possible to get MemberID without using inc_header.asp?
I'm working on an uploadthingy with a popup-window. At first I used this link: <a href=""javascript:openWindow6('ezuploadorig.asp?memid=" & MemberID & ')""> and then got the memid via Request.Querystring("memid").
But: after selecting the files I want to upload the popup-window reloads and the memid is lost... If I include the inc_header.asp I get an error as stated in another thread. < |
15 L A T E S T R E P L I E S (Newest First) |
puthen |
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.< |
Shaggy |
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.
< |
cripto9t |
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
%> < |
tribaliztic |
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 & "" < |
puthen |
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< |
tribaliztic |
Posted - 14 March 2006 : 04:50:45 Yeah, I noticed that =) < |
Zuel |
Posted - 13 March 2006 : 10:37:44 Also Trib you need to do this:
<%=MemberID%>
You forgot the equals sign.< |
tribaliztic |
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 |
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 |
Posted - 13 March 2006 : 03:55:43 How can I add "member_id" to this url then: <form name="upldfile" action="ezuploadorig.asp?action=upld&<% = PID %>" onSubmit="return ShowProgress();" method="post" enctype="multipart/form-data">
I tried this: <form name="upldfile" action="ezuploadorig.asp?action=upld&<% = PID %>&memid=<% MemberID %>" onSubmit="return ShowProgress();" method="post" enctype="multipart/form-data">
But it didn't work.. < |
tribaliztic |
Posted - 13 March 2006 : 03:43:07 As soon as I enter this line: folder = getMemberID(strDBNTUserName)
I get this error: ADODB.Recordset (0x800A0BB9) Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/inc_func_secure.asp, line 78 < |
Davio |
Posted - 11 March 2006 : 15:34:34 quote: Originally posted by Zuel Davio knew that! 
  < |
Zuel |
Posted - 11 March 2006 : 12:41:04 Here's your problem: folder = getMemberID("strDBNTUserName")
You are looking for a Member named strDBNTUserName. Try it without the quotes.
folder = getMemberID(strDBNTUserName)
Davio knew that! < |
Davio |
Posted - 11 March 2006 : 06:59:01 If you have config.asp included, you don't need to have this code in your file:strDBNTSQLName = Request.Cookies("Snitz00User")("Name") < |
tribaliztic |
Posted - 11 March 2006 : 05:18:30 I already have config.asp included =) I still get the same error if I try this:
folder = getMemberID("strDBNTUserName")
Why won't it work? The complete code is here: http://www.gotlandrace.se/tabort/ezuploadorig.txt < |