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

Active Server Pages asp source code database MS SQL MS Access .mdb adovbs.inc cookies calendar codes sql commands scripts asp programming tutorials iis web server components CJWSoft ASPProtect ASPBanner ASPClassifieds



Blog Entry: 3/25/2006 4:25:38 PM

DONE IT

DON'T WORRY!

DON'T ASK HOW, BUT NOW IT WORKS!!

THANK YOU IF IT WAS YOU, OR THANK YOU GOD IF IT WAS ME!!!

, Oh also, I tried to run the asp on my machine (win XP) and unless I'm missing something fairly obvious, I cannot get it to run correctly...when previewing it, I see all the code instead of what I should be seeing.,



all I can say is try other things...  like

mail.yoursite.com

or

smtp.yoursite.com

etc etc etc

replacing yoursite with the name of your domain of course


the settings for sending email via ASP are no different then the settings you would use in outlook or something... except sometimes on the server level localhost works as the email server because they set it up to allow that

and of course those 3rd party emailing components need to actually be installed on the server

,

Understood.... can you point me to a place where there are other methods of calling banners?  Do you mean not use Flash?  I am new to this and will need some pushing over the cliff!

 

Thanks

Dave

, to finalize this thread.... turns out I was correct and this person was not unzipping the zip file correctly. ,


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,

    Hi Chris,

     

    Thank you for your prompt response.

    Our current project requires alot of customization.

     

    Yes, the error is probably a data problem and not due to your code, because we needed to make modifications to the database.  But that's why debugging would be helpful.

     

    Basically our intent to modify the asp protect code stems from the fact that our client doesn’t want certain fields to be recorded or to appear: address, city, state, zip etc…

     

    We are happy to be able to modify the HTML, but we also want to modify some other default behavior, such as which page opens when the "cancel" button is hit in the editaccountinfo.aspx page.

     

     

    ,

    Okay, thanks, I'm going to change the method tonight and see if it makes a difference

    I'll report back

    Dave

    , well, thats a network drive path and in my opinion a very poor way for them to have set things up. It can work as long as permissions get set there and they have the anonymous webserver accounts set up correctly to handle that scenario, but performance isn't the best because your accessing the access database over the network. Access databases are not just not meant to be connected to over the network in a web based scenario. Quality ASP hosting companies do not set up their servers that way and it can often be difficult to get things running as it is a more complex setup on their end. Meaning if they dont synchronize the IUSR_machine accounts correctly you'll have permission issues.

    http://www.aspfaq.com/show.asp?id=2168 ,

    thanks!! the file took care of the extra slash. I also fixed the problem by modifying the permissions.

    dazed

    ,

    not really, aside from looking in paypal and manually adding each one for each user...

    how many users are we talking about anyway ?

    and were any of the users new sign ups from scratch because if they were and that field didnt get populated that is weird?

    ultimately aspprotect does not use that field. I was just storing it for the sake of storing it... so its not a big deal but I would still like to figure out what is going on

    removing the expiration dates from paypal subscripbers will be enough to fix the issue your having about them getting the expiration notifications

    , that information is actually not helpful in determining whether parent paths is enabled or not.

    You should really ask your hosting company or better yet try doing a server side include to page one directory up and see if you get an error.

    example

    <!--#include file = "../myfile.asp"-->
    cwilliams38302.6484259259,

    this could go on forever...

    if you want PM "private message" me info to log into your site.. show me the pages we are dealing with...

    and I will take a look at it all...

    CJW

    ,

    I am using ASPProtect's password program, which has been very successful, for managing over 1,500 military veterans' memberships at http://www.vspa.com.  What I am trying to do now is utilize the "Groups" code, as generated by the Admin page, to prevent members with expired accounts (and non-members) from accessing restricted "members only" .ASP pages they may have bookmarked, or found via web search. The code generated and used is as follows:

    <%@ LANGUAGE="VBSCRIPT" %>
    <!-- Begin ASPProtect Code -->
    <!-- Groups with access to this page. ( * ADMIN * Member Current * Member Life * Officer/Staff * ) -->
    <% GROUPACCESS = "10,12,14,19" %>
    <!--#INCLUDE FILE="check_user_inc.asp"-->
    <!-- End ASPProtect Code -->

    The above is placed over the <html><head> statements on the page.

    When I am logged in the code works perfectly! When I log off and try the URL again, the page appears in its entirety but with a Login box for Username and Login Password at the top of the page. You may view the problem at: http://www.vspa.com/aspprotect/vspa-password-enter.asp .

    What I would like to have happen is expired members and non-members would be sent (or Redirected) to a Login page. I do not want the Login password box to merely be inserted above the page that I am trying to keep them from visiting.

    Don Poss,
    VSPA Webmaster

    ,

    ASPProtect v7.x has a new feature called groups.

    Groups are meant as a replacement for using the access levels as they are much more powerful. Support for pages protected using access levels is left in tact for backward compatiability for a customer that was using them.

    A customer recently told me groups could not be used like access levels and that 8 access levels was not enough. This is how I explained that groups can do everything access levels can do.



    Groups can honestly do everything access levels can do if you really think about it.
    Using groups and protecting pages accordingly you could actually create a system that basically worked identically to the way the access levels works.

    For example..

    You make 8 groups and assign users to them accordingly


    Protection code on page allows access to groups 1-8
    The aspprotect system generates this code for you…

    <% GROUPACCESS = "1,2,3,4,5,6,7,8" %>
    <!--#INCLUDE FILE="check_user_inc.asp"-->

    In this case a user assigned to any one of those groups would have access..

     

    Protection code on page allows access to groups 2-8
    The aspprotect system generates this code for you…

    <% GROUPACCESS = "2,3,4,5,6,7,8" %>
    <!--#INCLUDE FILE="check_user_inc.asp"-->

    In this case a user assigned to any group between  2-8 would have access..

     

    Protection code on page allows access to groups 3-8
    The aspprotect system generates this code for you…

    <% GROUPACCESS = "3,4,5,6,7,8" %>
    <!--#INCLUDE FILE="check_user_inc.asp"-->

    In this case a user assigned to any group between  3-8 would have access..

    and so on... I think you should get the picture by now

    , does emailing work at the simplest level.. ??

    meaning does a user get an email when you send an email from the admin users screen ?

    if emails are not sending it could very well be the setting you have chosen for emails in the settings.

    the best thing to do is keep trying to send an email there and try different emails settings until you get something that works... even when I do installs for people I often have to try a lot of various things before I get emails to send.. like picking different components and trying different things for the email server address because what they tell me is often wrong

    also, sometimes emails get sent but depending on where they go they may get deleted as spam.. aol, hotmail, msn, and yahoo are famous for that ,

    Hi,

    I need to be able to add about 9 checkboxes to the register.asp. would I be able to use one of the custom fields?

    The other thing is once I add the checkboxes the value must be written to the DB and later read when displaying the person's Album.

    Any idea on how I can do this.

    Thanks

     

    , All fixed... I changed the remote server from localhost.omegaphibeta.net or whatever it said there to localhost

    I sent a test email to myself and got it no problem

    the error you were getting was email component related , >>1. What is telling paypal to return the info to the ipn.asp page for processing?  Is that something I have to set up in my paypal account?

    Nevermind on this question.  I found the notify_url variable.  :-\

    Thanks,
    Michelle
    ,

    I am confused.

    Humm, how did ASPBanner 8 come with your purchase of ASPProtect ? That is not something I am aware of or something I do. Please provide more information on how you obtained ASPBanner 8. If I gave yu a copy for some reason please refresh my memory so I can go look up th emails about it. I need to know you have a valid license.

    Now, as for the two not working together and the login screens messing with each other. I am even more confused. Tell me more as I just do not understand what you did ? ASPBanner has it's own user database and login system so there is no reason you should be mixing the two together as far as logins go. The two applications can certainly be in the same web together and not bother each other. ASPBanner can certainly serve banners to any pages you protect with ASPProtect or don't protect, but you certainly should not be protecting any ASPBanner code with ASPProtect code.  ASPBanner already has code in it to do that. If that is the case don't do that. ASPProtect is not meant to protect code that already has a login system. That should just be obvious as far as I am concerned and hopefully you dintn't try to do that.

    (you said you just put the directory in there but there must be more too this than that)

    But again, tell me more. I can't really know everything  ??

    I just dont see how your ASPProtect pages could be effected by ASPBanner unless you really did something wacky like included the ASPBanner "check_user_inc.asp" instead of the one that comes with ASPProtect or overwrote it... etc ect

    If in the same web aspprotect can be wherever and aspbanner needs to be in a folder called "aspbanner". There should be no conflicts under normal use and the two will essentially run seperate of one another.

    ,

    I have set up a user to be redirected to a different page when logging in for the first time.

    I assumed this function would count the number of times a user has logged in. When the login count was greater than 1, the user would be taken to the default.asp 

    This isn't happening. The user is always redirected.  The user login count in the database is now 9.

    What am I missing?

     

    ,

    as far as permissions are concerned I wrote two large articles about permissions that cover everything in detail on how to properly set them

    http://support.cjwsoft.com/code/info11.htm

    see the windows 2003 and windows xp permission threads

    From things you are saying I assume this is your server. My comments about the path looking funny are because very few commercial hosts would use the "c:\inetpub\wwwroot\" directory. If you are using that and that is correct info then that is fine.

    as for knowing whether or not the filesystem object is working the best thing to do is to try to write  a text file somewhere in your web and see if it works. Testing something under the most basic scenario is the key to troubleshooting asp issues.

    http://www.devasp.com/samples/writetofile.asp

    ,

    Just to put an end to this thread here is the solution for anyone reading.

    The permissions were ok.

    The data connection string never got edited in the "dataconn_inc.asp" file so it was invalid the whole time.

    Once that was corrected the application ran.

    So really this whole thread was over not following the directions and not editing the data connection string... 

     

    ,

    so use the connection string the readme.txt in the sql installation folder file tells you to... it has the correct username.. I just posted that info above

    or change the username in the connection string so its rigfht

    or go into sql and give any user you want access to the database and use them



    Any connection strings that come in the datacon_inc.asp file the way it ships are examples. We fully expect people to edit them.

    Also.. the SQL scripts primarly goal is give you a properly set up database with correct files and table settings. Users and permissions often need a little extra attention from the installer as that part doesn't always get set right by the scripts It really all depends on what sql user you are when you execute the scripts. Many times the user someone logs in with doesn't have permission to make users and set permissions.

    cwilliams38325.9116898148,

    Whein I went by the numbers off of your directions, which work well up to that point, the import would time out.

    At that point I tried to import directly into access...and then it hung trying to login.

    okay so I've put in a clean database and created a new record for me as admin.

    ,

    Hi,

    The source code comes with it.
    They are the.vb files.

    I don't give out any project files for reasons stated in the article below.

    Please read this in full if you want to edit the application in Visual Studio.NET

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

    ,

    I think its great to share a mod.

    I will have  few with the new album.

    , Installing and running NET on a DOMAIN CONTROLLER is a BAD idea period. Besides the security risks you will have nothing but endless problems with that setup. Domain controllers ARE NOT and NEVER were intended to be run as any sort of application server. Your best bet is to run your asp and asp.net scripts from a member server or one set up just for web apps. Of course if your in the mood to mess around endlessly it is possible to make that work, but why would you want to when the prefered solution is a heck of a lot easier.
    , The webpage header for CJWSoft  states "Web Development for Win NT/2000 servers" - a little dated cause it works just fine on 2003 too, right? :), sorry for the confusion, but I am not that good with the tech explantions yet.
    what it boils down to is I have an Access Database containing over 100 members names.  I want only those people to be able to get into the secure pages.
    Thanks.  Harvey
    ,

    Javascript Popup/Pop Under Generator

    Until I have time to make one I suggest using the one on the banmanpro support site as it is pretty nice.

    Just dont use option 2 on that page as that is specific to banmanpro


    http://www.banmanpro.com/support/popupgenerator.asp

    cwilliams38291.614849537,

    Suprising I started this tread off on ASPImage, but I resolved my issue and forgot to change the thread topic.  I will try your suggestion.

     

     

    ,

    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

    ,

    Flash files cannot track clicks unless you edit the original flash file to link to the aspbanner system redirect URL.. feeding it the correct ID of the banner.

    When that link is clicked on it will then track the click and redirect the user to the “link url” specified for that banner. 

    The system actually generates the necessary ASPBanner URL for you. That link is shown on the banner edit screen.(you must save the banner at least once and come back to that screen to see the link though) 

    Really the best way to show it is with an example as seen below.



    Basically the flash banner file "powerasp.swf" highlighted in green needs to be edited to link to the banner redirect url which is highlighted in red.... the banner redirect url will then track the click and ultimately send the user to the Link_URL highligthed in blue.

    All banners systems work this way when it comes to flash files.
    It’s the nature of flash and the web browser, 

    The flash source code must be edited to link to the redirect url in the ASPBanner system. There is no possible way any banner system can track a flash click unless the flash file links to the banner system 1st.... because that click is handled by Flash and the web browser. 

    In some cases if you do have the original source file for the flash banner then you are out of luck as far as tracking clicks goes.



    On a side note... if you create flash banners the way this article says you can actually feed a .swf flash file a link for it to click to. Instead of it being hardcoded.

    http://www.macromedia.com/resources/richmedia/tracking/desig ners_guide/index.html

    This is really the way everyone should design their flash banners from now on because the url it links to can be easily changed at any time without editing the flash file source code. 

    cwilliams38085.095150463,

    I'm getting errors when clicking the Update Config Button in the System Info page and when clicking the log files button.

    I'm not sure if it's a permission thing or not.  ASPNET and IUSR both have modify access to the _database folder and childs, yet I'm still getting the error:

    Access to the path "D:\Inetpub\wwwroot\aspprotectnet\_database\xsd\aspprotectne t_config.xml" is denied.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.UnauthorizedAccessException: Access to the path "D:\Inetpub\wwwroot\_database\xsd\aspprotectnet_config.xml" is denied.

    ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

    To grant ASP.NET write access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

    Any ideas?

    Thanks

    ,

    Something very strange is happening.  Some users can't see the classified ads in their browser.  This is specific to the user's computer, and they can check other computers and see it fine.

    In each case, the user is using windows explorer 6.0 browser with windows xp.

    they can't see the ads listed on the ads page, but they can see the categories.

    also, they can't see the place ad link on some pages.

    Do you think that their browser is blocking the javascript for the mouseover message?

    thanks.

    ,

    Yes worked fine

    thanks

    ,

    - I am using the original files that came with the software.
    - The software ads items to the database flawlessly.
    - ASPImage works great.

    - When I try to remove an ad or an image it says it's been removed.
    - The ad does not show up on the site anymore.
    - BUT, when looking at the sql database the ad is still listed there.

    Why is the software not deleting the columns from the database and the images from folder?

    Note: My other tables for other projects, in the database, allow me to delete them.

    ,

    Is there anyway to limit the number of Albums each user can make?

    , Well, hold everything.

    Looks like I did it right. The latest user showed up in the correct group.

    I guess the ASP pages had to refresh at the server or something...

    It's still a great product, BTW. Almost five years for my enjoyable ride with ASPProtect!
    ,


    Timecard Entry: 3/25/2006 4:25:38 PM

    Posted account and ans phones.Did a detail., Took in 1 call, very easy problem., to watertown, Working on converting reports in Softmls, hosting/development support: Cori Kennedy, Century 21 Real Estate, fixed link problem on calendar events page on Partners site (partners.gisco.net), made copies of articles for Paul and ran copies for packets for the meeting, packed up the coffee maker for Beth and Steve and I headed for Watertown, printing more newsletters, working on new tech manual, Sales tax research, NY & VT, Email from a friend who wants to set their mother up with internet access for christmas. reply to message and url to where they can signup online., site survey of henderson Manufacturing, Working on TS Peck's frame. Installing their router., Still calls on signups and reactivations., Burlington to Plattsburgh, 35 miles, Remington Museum - Making requested changed to storefront, helped michele clean up bugs with inventory, Still no online issues but it slowed some as well., Web billing, Working on Softmls with Chris W., Proposal and Design discussion w/Corey Kennedy/Century 21 real estate, working on some troubles on the network, Channel Partners Meeting, worked on Real Rock poll, researched IBM s390's/VM/VSE for Steve, researched LookSmart and wrote them about setting up different home pages for national users, installed SR-1 for Office2000, steady, Dave K of AlphaPaging stopped by discussed upcoming work, worked on mop for rack chassies., to N.Lawrence, Johson Lumber scanned Log Home Plans into Photoshop, Working with Ed getting my laptop to work with the proper drivers and then going over some plans, Wan meeting,

       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.

    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 www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com