Home | Advertising Info82 USERS CURRENTLY ONLINE   
PowerASP
   Site Search Contact Us Friday, March 14, 2025  

Active Server Pages what is asp programming how to sample asp example code scripts software asp forum mail sessions applications global.asa CJWSoft ASPProtect ASPBanner ASPClassifieds



Blog Entry: 3/25/2006 4:48:52 PM

Thanks for that.

 

I have tried InStr("*2*",>"0") in the query design window but it does not return any members.  

 

I have orded a Access Bible to help me in furture

,


IMPORTANT UPDATE - READ THIS
http://support.cjwsoft.com/forum/forum_posts.asp?TID=205& ;PN=1


The IPN Subscription Pack which is built in to ASPProtect 7 contains all the pre-built scripts you need to implement PayPal IPN Subscriptions with ASPProtect. IPN stands for (Instant Payment Notification). It allows you to set up scripts on your server so whenever a PayPal payment is processed the PayPal server sends info to your server regarding the transaction and vice versa. This is a fully automated process and allows you to charge users for access by the month or however long you like.

The Subscription feature of PayPal handles recurring billing automatically. The PayPal server will communicate with the ASPProtect system and keep everything up to date with users and their subscriptions.

This Support Pack basically gives you an additional signup and registration directory "paypal_sub_signup" and it should not interfere with any changes or customizations you have made to your ASPProtect setup. New users can register in this directory and sign up for a subscription at the same time. Existing users whether active or expired can be sent to this directory where they can lookup their account and start a subscription. You can also assign various Access and Group Levels during signup and you can set up various prices for various amounts of time as well. This is a real-time setup for the most part. As soon as a user pays via PayPal your system is updated and they will have access.

To use this all you need to do in ASPProtect 7 is enter your PayPal account name into the settings screen. It will be an email address. You'll need a business or premier account with PayPal and you will need log into your PayPal account and turn on IPN in you profile. They make you enter a default IPN URL. We do not use that so if you already have something there leave it there. If you dont have something there you can type in any the full url to any page on your server. It's probably best to send it to an empty ".asp" page or something.

Changing Payment Options

In the "paypal1.asp" file there are some sample payment options set up.

They look like this and you can have as many as you like.

<!-- Begin Payment Option Code -->
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">

<% Label = "Membership (1 Month) $9.99 Recurring" %>
<!-- Begin Form Fields You Can Edit.. See PayPal Subscription Manual For Details -->
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="a3" value="9.99">
<input type="hidden" name="p3" value="1">
<input type="hidden" name="t3" value="M">
<input type="hidden" name="src" value="1">
<input type="hidden" name="sra" value="1">
<!-- Field Below must have 2 commas First two values are optional (access level,groups,user ID)-->
<input type="hidden" name="custom" value=",,<% =User_ID %>">
<!-- End Form Fields You Can Edit.. See PayPal Subscription Manual For Details -->

<!--#INCLUDE FILE="form_data_inc.asp"-->
<input type="image" src="https://www.paypal.com/images/x-click-but20.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">

</form>
<hr>
<!-- End Payment Option Code -->

 

To really understand what these form values mean it is best to look through the PayPal Subscriptions Manual which is a PDF file you can get from the PayPal Site.

This link was valid the last I checked...
Subscriptions and Recurring Payments Manual

It also may be helpful to use their wizard to create some subscription buttons with different settings and then look at the code generated.


Bascially these are the important ones..

  • a3 - amount to billed each recurrence
  • t3 - time period (D=days, W=weeks, M=months, Y=years)
  • p3 - number of time periods between each recurrence
  • The custom field is something we are using to send info from ASPProtect to PayPal.
    it allows you to set the access_level or groups access (groups support require the ASPProtect Option Pack)

    <input type="hidden" name="custom" value=",,<% =User_ID %>">

    or this example where we are setting the access_level to (2) and also giving the user access to groups (3 and 4)

    <input type="hidden" name="custom" value="
    2,*3*4*,<% =User_ID %>">

    Here is how it works.
    The value setting (red) is essentially and array that can be made up 3 elements separated by comma's

    access_level,groups,User_ID

    If you do not want to set the access_level or groups access.. then you don't even need to edit the setting.

    Values must be separated by a comma even if there is no value and there can be no spaces.  If you didn't want to set an access level or groups there would still be 2 commas at the beginning.  etc etc
    Basically there must always be 2 commas but you only have to set last values which is the User_ID from the ASPProtect system.

    The 1st value is the access level you want to user assigned to.
    The 2nd option is the groups you want the user assigned to. (requires option pack)
    The 3rd option is the User_ID which the system takes care of. Do not edit this option. Leave it as <% =User_ID %>

     

    cwilliams38421.7141782407,



    ADODB.Recordset error '800a0cc1'

    Item cannot be found in the collection corresponding to the requested name or ordinal.

    /aspprotect/password_admin/default.asp, line 287

    I'm doing an upgrade from an OOOOOOOOOOLD version (not sure if it was 6 or not) and it read my database OK prior to adding a new user. Now I get this error message. I was able to run the password encryption function OK, but I still get this error when I try to view the password_admin stuff. I can log in via the "get_me_in" asp page just fine, but I get the above error.

    If I try to log in with my admin account, I get

    ADODB.Recordset error '800a0cc1'

    Item cannot be found in the collection corresponding to the requested name or ordinal.

    /aspprotect/password_admin/check_admin_inc.asp, line 166

    *****

    OK, my question is this... if I retype all the info from the old DB into a brand new one, never before used, that would work, right? I only have 108 users, so that's about an hour of work. Or is there a 5-minute fix that I can try? I've done some messing around that got nowhere and returned all edited files to their original state, with the exceptions of the ones calling the DB location.

    I'll start the C&P process and await your reply...

    On a side note, I really love the new format and am excited about the new features. I'm not married to upgrading the DB and if copy and paste is faster (I just need first name, last name, username, password, email, and expiration date), then I'm using v.7 that much faster.

    cwilliams38457.6090509259, Well at least now the import/export link shows up now! lol,

    I did a google search and it turns out that error very well might have to do with ASP trying to send an email and that process failing.

    That tells me your emailing from the application is not working so it is probably not something you edited incorrectly.

    see this article...

    80040211
    http://www.aspfaq.com/show.asp?id=2026

    Emailing was working as when I did your installation (I think I did it months ago, didn't I) so it must be some incorrect changes to your email settings in the admin settings screen. Try sending an individual email to a user from the admin users screen and see if it works. My guess is you will get the same error and means your email sending options are no longer correct or valid.

    If that is the case I would ask you if you changed them or possibly something changed as far as your email setup goes. Passwords ? EMail Server .. etc etc etc

    ,

    Running in parallel for testing is actually a smart way to do it, but the truth is you don't use anything from version 6 except the upgraded database (we have a tutorial on how to upgrade the database)

    Version 7 was a drastic change /rewrite to all of the asp files that come with the application. So you will be starting out with fresh version 7 ".asp" files and folders... You will also find that once you get version 7 running that editing certain things like the look of the users area and the login screens is much easier to do.

    That being said any of your own ".asp" pages that you protect use the same protection code they always did, so there will be no drastic changes needed there when you do finalize the upgrade.



    If using MSACCESS as the database I suggest installing the application somewhere in your web and using a fresh ASPProtect 7 database. Once you are familiar with the setup and everything is working fine. Attempt the database conversion and when your done stick your converted database in there and see if everything is ok.

    Also, if you already purchased the application download the latest version before doing the install. It's the same download URL. If you don't have it email me and I can hook you up. I have added some new features and fixed a couple minor things since it's release.

    So far the feedback on version 7 has been awesome..

    cwilliams38414.0133680556,

    Cool.

    Well I'm in the middle of uploading the txt file and it's about half way done and sitting there...so I'm keeping my fingers crossed.

    ,

    User Registration

    The "users" folder allows users to sign themselves up and edit there accounts as well as retrieve lost passwords..

    In the settings tab of the ASPProtect admin area there are options for which fields are used and which are mandatory when a user signs up. The only validation the system performs by default is checking for mandatory status. If you want to add more validation so reduce the chances of input errors that is up to you.

    You can add additional server side validation by doing server side checks on the save pages... you can also make the field sizes larger in the database if you think you need to. You'll need to be good with ASP to do this.

    Always backup your files before making changes to them so that you can revert back to a working copy if you mess something up.

    ,

    I noticed that is grabbing the wrong URL for some reason. Even when i mouse over the URL its somehow getting the users sub directory. How.. i dont know... when i erase that users in the url it works perfectly.

    I am looking at the code in the .vb file and i dont see anything that could be causing it to do that... but then again i am no programmer LOL

    Its obviously kicking in that users subdirectory somehow... what are your thoughts?

    ,

    I was actually able to do similar thing by allowing our dedicated search engine to access the site unchallanged.

    <%
    If Trim(Left(Request.ServerVariables("HTTP_USER_AGENT"),11)) = "MYPASSWORD" Then  
     SearchFlag = True
    End If
     
    If SearchFlag <> True Then
    If Session("Access_Level") > CHECKFOR or Session("Access_Level") = "" Then 
    %>
    <!--#include virtual="/Auth/check_user_Code.asp" -->
    <head>
    <title>My Title</title>

    </head>

    <body>

    My Protected stuff here

    </body>

    </html>

    For this to work, the search engine must pass the PW to the web site. I just was not sure how to do the same thing with IPs. I will play with the code and see what happens. If it works, I will post it here to help others, if this is OK with forum rules.

    Thanks,

    Mo

    ,

    I have activated both activity and log files. The directories exist on my server and don't give any errors.

    When I check the activity tab, some times there are a number of items in it.  Other times, there is only my login info.  From what I can see, it is supposed to show the last 50 items of activity at all times.  Am I missing something?

    Also, when I click on the log file tab, there is no file or information to see.  Is there something I need to do beyond activating it in the settings area and making sure the directory has write permissions?

    Thanks.

    , hi,

    Sounds like permissions.. the text file that the config file data is not being written to.

    open the file "data/config/aspbanner_unlimited_config.asp" with a text editor and see if your values are getting saved.. if they are not its permissions to that folder and file as far as not saving config settings goes.

    You may also want to check out "data/show_path_info.asp" which if run from the browser has info on manual/alternate setup scenarios.. as far as what directories you put things in and also editing the config file manually.

    lastly make sure the filesystem object is not disabled by something like norton script blovking or something similar which can also cause trouble regarding writing to text files.

    ,

    These are 4 valid examples of calling a flash movie.

    The more simple examples may cause problems for people that don't have the flash plugin installed. I really do not know as I am no flash expert. All these work fine for me. Of course I have the latest flash plugin installed. Perhaps some of you can shed some light in this. The 3rd and 4rth examples are obviously only slightly different and mention different versions of flash as far as downloading the plugin goes.

     

    <EMBED src=" http://www.aspbanner.com/test/aspbanner/images/banners/power asp.swf" WIDTH="468" HEIGHT="60">

     

     

    <object width="120" height="22">
    <param name="movie" value=" http://www.aspbanner.com/test/aspbanner/images/banners/power asp.swf">
    <embed src=" http://www.aspbanner.com/test/aspbanner/images/banners/power asp.swf" width="468" height="60">
    </embed>
    </object>

     

     

    <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swfl ash.cab#version=6,0,40,0"WIDTH="468 " HEIGHT="60" id="myMovieName">
    <PARAM NAME=movie VALUE=" http://www.aspbanner.com/test/aspbanner/images/banners/power asp.swf">
    <PARAM NAME=quality VALUE=high>
    <PARAM NAME=bgcolor VALUE=#FFFFFF>
    <EMBED src=" http://www.aspbanner.com/test/aspbanner/images/banners/power asp.swf" quality=high bgcolor=#FFFFFF WIDTH="468" HEIGHT="60" NAME="mybannername" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
    </EMBED>
    </OBJECT>

     

     

    <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" http://active.macromedia.com/flash2/cabs/swflash.cab#version =4,0,0,0" ID=banner WIDTH="468" HEIGHT="60">
     <PARAM NAME=movie VALUE=" http://www.aspbanner.com/test/aspbanner/images/banners/power asp.swf">
     <PARAM NAME=quality VALUE=high>
     <PARAM NAME=bgcolor VALUE=#FFFFFF>
     <embed src=" http://www.aspbanner.com/test/aspbanner/images/banners/power asp.swf" quality="high" bgcolor="#3CBDCD" WIDTH="468" HEIGHT="60" TYPE="application/x-shockwave-flash" PLUGINSPAGE=" http://www.macromedia.com/shockwave/download/index.cgi?P1_Pr od_Version=ShockwaveFlash">
    </OBJECT>

    cwilliams38089.6129513889,

    [QUOTE=cwilliams]
    Is that a real term or just something you named it cause they have like a zillion people using that SQL server?[/QUOTE]

    yeah thats it, you buy into a part of the sql server so it's an sql server hotel...

    , I have been using the AspHttp Component method for displaying my ads along with the google adsense code.  However, in the last few days my site was taking too long to load, so I replaced the AspHttp component, with Javascript method.  The site was back to speed.  But now, the Google Adsense banners do not show up.  Is there a solution for that?  Can the Javascript show Adsense banners also?  Because they do show the Flash banners., My guess it they are runnign some sort of ad blocking software like norton ad blocking. Something on the client side blocking ads or anything with the word ad in it.

    I would investigate that., Okay, I'm going nuts trying to find that settings screen.

    I've got a dedicated server that I connect to using "Remote Desktop Connection" so it looks like a regular Windows desktop. It's running Windows Server 2003.

    There's a program called "IIS Manager" but I've looked at all the options for all the different sections and I don't find anything that looks even remotely like that screen.  And, of course, Windows Help is no help at all.

    What program do I run to get to that configuration screen?

      Thanks,

      Robert Gidley
    ,

    Hi,  Its just a generic error that really doesn't mean much of anything except that something wrong with your data connection.

    http://support.cjwsoft.com/code/moreinfo27-1.htm

    could be invalid permissions on the database folder... could be any number of things

    when setting up your connection I suggest going dsn-less.
    http://support.cjwsoft.com/code/moreinfo9-1.htm

    It is better/faster and also a lot easier to set up.

    ,

    This is great documentaion for windows script 5.6
    in windows chm file format for jscript and vbscript.

    We use server side vbscript in all our our ASP 3.0 applications so this info can be a lot of help.

    2005-02-18_150921_vbscript_docs.zip


     

    cwilliams38401.6321990741, You know what, you really are frigin goofy to say you might think we didn't write the software. I got source code to the license dll as well as about 12 revisions of the application sitting on my development server as well as about 1200 emails between John & Myself as we worked on it. Not to mention all those .vb files that come with the application. What do you think those are ? I bet you don't even really know based on something you said in one of your earlier forum posts.

    Did you even read this cause this is YOU... !!!
    http://support.cjwsoft.com/code/moreinfo234-1.htm
    And we say right on the ASPProtect.NET product page to read that article before making a purchase.

    Moving on... it basically says on the site ASPProtect.NET works the way it is shown to work. You can use it that way or you can further edit the code with Visual Studio.NET. If you are so good with asp.net then you should be editing the code to work differently or writing your own authentication that works exactly how you want it to. End of story. You keep arguing about things your done... you are so done !!! I won't keep putting up with you., I have no idea.. perhaps PM me info on how to log into your site and reproduce the issue.,

    Sorry about earlier post in wrong area-

    I have followed instructions to set up access levels (adding the

    <% CHECKFOR = "4" %>    for user level 4 for instance.) The database is connecting properly and the basic check for login is taking place, but it seems that all users have access to all levels no matter what is on the database; i.e I set up a test page with "checkfor=4" and all users have access to it, even those with lower leve access.

    Any ideas?

    Thanks

    ,

    works fine now

    , ok, glad it is working,

    It's just a generic error that means one of 1000 different things is wrong.. there is a lot of information on in in these forums as well as links to articles about it.

    http://support.cjwsoft.com/forum/forum_posts.asp?TID=27& PN=1

    usually it means permissions to the database folder are incorrect or the physical path you are specifying for your dsn-less connection is invalid..

    everything has to be perfect

     

    cwilliams38370.5271296296, not sure, I havent used 2005 yet

    seems like the process should be fairly similar.. you'll have to figure it out

    I am going to order a copy of it.,

    It happens at least once per hour or every time a banner is edited in the system by the admin.

    Changing its frequency would be somewhat complicated. You'll have to make changes to the code in a few places and you will effect performance adversely by doing it more often as it will mean a lot more database queries which defeats the purpose of doing it once per hour to conserve resources. The reason is when you change the frequency of that you also change the frequency of the entire banner application variable caching system. It difficult to explain but it unlike most banner systems out there it basically fetches banner rotation info every so often instead of every single time your page needs a banner. It stores this rotation and cycling information in ultra fast application variables. The docs actually go over a little bit of how that process actually functions under "using the system / Setting Up Banners
    "

    Its a customization I just can not support and I do not recommend doing, but if you really want to you should look at the "aspbanner_inc.asp" file

    this is the part that makes it happen at least once per hour (requires visitors to your site to happen obviously)... you'd have to cleverly recode it to work slightly more often

    ' Checks the time the banner data was last updated and basically updates it if an hour or more has passed
    If Cint(Application("BannersLastUpdated")) <> Cint(Hour(time)) Then
    %>
    <!--#INCLUDE FILE="appinfo_inc.asp"-->
    <%
    End If


    There may be more to changing this than that, but this is all I can tell you.

    cwilliams38441.6427083333, Ok.. glad you got it working.,

    yea.. it sounds like aspimage is not working right.

    You wont get any errors..

    I would suggest using some of aspimage's sample asp pages in your web and see if they do their thing. You need to be sure aspimage is working correctly under the ,ost simple of circumstances

    Though ASPImage is the standard in ASP image resizing and has been around forever and it works very well. Their support is almost non-existant.. in 6 years they have never answered any email I have sent them. I have sent them 6 or so over the years and then just stopped trying. I bought a server bundle too way back then for like 300.00 or so when we had a company called gisco. You would think they could answer my emails. I think that guy just made a ton of asp components back in the day and then just took a seriously long vacation. Updated them a few times in between when he felt like it and making good money the whole time.. More power too him I guess. I'd love to be in his shoes when he sells an enterprise license for 3000.00. Maybe he isn't even around anymore and the someone he knows just kept the sales going. Who knows..

    Anyway... it does a great job when ya get it working.

    Personally this is how I install it and it works every time.
    I like to put their dll in the system32 folder.
    Register it.
    Run their licensing prog to make it a full version if you paid for it yet.
    Right click on the dll and give the "everyone" account modify permissions
    Right click on the "windows/temp" folder and give it the same permissions

    ,

    Triple check the upgrade instructions because I think you missed something important.

    line 227 on "/password_admin/save.asp" refers to the "Password" field

    the error your getting most likely means it is not there..

    Pay close attention to the areas in the upgrade instructions regarding renaming your existing "Password" field to "Old_Password"

    Then making a new "Password" field and carefully following the instructions needed to convert your old passwords for use with the new system.

    If you don't everything carefully and perfectly this is the sort of error you will get.


    cwilliams38451.8787268519, Humm..

    I have no idea where links to hose graphics are being called.

    I checked the source of edt_banner.asp and I see no calls to any images named like that

    I didnt see any calls in the header and footer files either...

    , humm, I am curious

    If these people are employees and sales reps why are are you using expiration dates at all ? and why the renewing issues... etc etc

    I am sure there is a reason but you did not explain.

    it might help me to better understand and possibly think about new features for new versions in the future., To finalize this thread.. a target was added to the form by the customer by accident thus causing the situation,

    I really need more info on what you have going on?

    This can sometimes be cause by a slow server / bad data connection.

    Sometimes caused when someone is using the option pack but did not make the proper changes to the database.

    Sometimes caused when a user adds users the database on his own and does some "incorrect" things..

    The more details you can provide the better. Think of anything and everything and describe it.

    SQL or MSACCESS... version of either
    Server OS
    Using Option Pack or not
    Did you have your host set permissions...

    etc etc etc

    cwilliams38300.5380092593,

    I checked through the code and could not find anything as well. 

    However, I do think it may be related somehow to the code as I get the messages popping up in the error log only after I have edited a banner.

    If there is nothing obvious, I may just set my error log to filter and automatically delete this type of error.  Not something I prefer to do.

    Thanks for the quick response.

    Otherwise the program is working very well and I'm happy with it.

     

    ,

    i took another look at the file, and realized that when i was looking at the data structure i had confused "banner_image_URL" with "banner_link_URL". i lengthened the latter, and now all is good.

    sorry for the false alarm, and thanks for a very-to-work-with product.

     

    ,

    Great Thank you!

    As of thus far the program is working rather nicely.

    I am very impressed :)

    ,

    Hi Chris

    After turing off the delayed stats feature the internal errors have stopped and it still serves banners, although I havent checked the logs yet. I will and post any errors.

    I left my test page up last night at say 11pm serving 4 banners of different sizes rotating every 15 seconds, now at 9am the page is just displaying 1. If I refresh the page they all reappear.

    Regards
    Colin

    ,

    Hello,

    I dont know exactly how you go about that and it would really depend on a lot of things like when the ad started and how yu wanted t handle that. it would involve custom coding though, not a change in the database.

    , Actually quite well.  I have this problem worked out and it actually isn't to bad.  But  now I am getting some strange error messages.  I will start another post.

    Cheers
    Roy
    ,


    Timecard Entry: 3/25/2006 4:48:52 PM

    radlog, dial up issues, radlog,, Checking and responding to e-mail from home., Travel to TaskForce 7 Miles, To Sackets Harbor, fixing hung modems on the LInux com servers. went over to building to straighten out portslave on ns6. Modems weren't resetting, Marketing, Worked with Dave foster and Howard to get a temp site up for TICC, Working on using some of those components we bought to automate the Realtor.com export process. One component can zip the pictures into one big file. ANother one can FTP but it is giving me trouble... I think because the zip file ends up being 26 meg and that might be too big for it., Met w/ Nic & Jim G RE BOCES status of RFP., Travel To NY for VBITS, General - Watertown, timecards, etc., Alexbay.Com - Adding newer membership listings component to framed website. Showing Dave as I go. (trade), graphics dev division mtg, made 250 more CD inserts, converted newsletter to web page format and emailed Jim w/link, began reading costguard manual. s/w vapco on dsl training for cp's. issued new cpid for digital junction per km in burlington-revised spreadsheet to sw for emerald., e-mail, Phone calls from Beth and Dave about some misc things., Music-Contact, re: move to Shark, Contacting people in IPRS, working w/ Charles from Verizon, getting info and people awake to help me., Errol Line Redirection,Inventory, #2000-79-99 - CaskinetteAuto.Com - Added upload manager and admin for contest form., check voice mail/email- fisherman wharf= create trouble report, Charts, MBOs, lunch, teched phone calls, helped chad edwards with a demo for china, E-Mail, Voice-Mail, Etc., 3 calls, kept up on radlog, finish working on the routes making sure they are operating correctly, phones, dial up issues, radlog, ,

       Active Server Pages Rule The World
    Contact Us  
    All artwork, design & content contained in this site are Copyright © 1998 - 2025 PowerASP.com and Christopher J. Williams
    Banner ads ,other site logos, etc are copyright of their respective companies.
    STATS Unless otherwise noted - All Rights Reserved.

    PowerASP active server pages asp.net microsoft .net framework sdk learn asp what is asp tutorial learn asp.net CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com