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

Active Server Pages ASP control controls class classes module script Scripts applet CJWSoft ASPProtect ASPBanner ASPClassifieds



Blog Entry: 3/25/2006 4:32:37 PM

Christopher,

Thanks for the reply. I think I've found my problem, but can't test until later in the evening as it is on a live site.

Darrell

,

I've encountered another problem.  When i edit the link for existing banners and save it, the banner reverts to the old link instead of the new one.

The directory where the the database is located to rwed so the permissions is not a problem.

 

Any advice?

 

Thanks

 

,



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,  I moved the password check file out of /user and am getting this message:

Microsoft VBScript compilation error '800a0400'

Expected statement

/asplog/check_user_inc.asp, line 404

End If
^
Is this a standard database connection error so I should ask my IIS to make sure permissions are correct?
Thanks..!
,

We can't seem to find the purchase emails for this install of ASPProtect.

It would have been in May 2004 for NetOptions LLC or CareerMatrix.com

We noticed it should have been v6 of ASPProtect.

Can you resend the download links?

,

any asp code that accesses an access database, writes to text files, or allows for picture uploading will need permissions set on certain directories

every application out there is going to need permissions set at some point

its just a fact.. and if your hosting company does not give you a way to manage permissions or have it done when you ask they do not know what they are doing and they are not supporting your asp hosting needs

see my article for more info on the whole process
http://support.cjwsoft.com/code/moreinfo136-1.htm
the part newar the bottom talks about hosting companies

, there is no straight answer to a question like that..

I think my code is very easy to figure out and work with...

What your asking all depends on your skills and also what sort of payment processing system/merchant account you go with and what sort of ASP example code they provide you,

Hello Chris:

Yes I'm using the Option Pack.

-Ricardo

,


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, you would have to edit the application in visual studio.net.. change some things around  and recompile the application... in the process figuring out how you want to handle all of that (probably combining the username and email fields just on the registration form then saving both values to the database)

    very doable.. just not anything documented or supported as it is custimization

    I do have a very  nice article on the forums on how to set up a project in visual studio.net with the application..  it is in the forums,

    look in the "check_user_inc.asp" file

    Thank you that did it !!

    ,

    Christopher

    Found this but I dont really know what to do with it or even if its the right thing.

    <%
    '=========================================================== ==================='

    ' Application:     Utiity Function
    ' Author:          ; John Gardner
    ' Date:         & nbsp;  20th December 2004
    ' Description:     Used to check the validity of a postcode
    ' QueryString:     None
    ' Version:         V1.0

    ' Required routines:        &nb sp; None
                        
    '----------------------------------------------------------- -------------------'

    function Check_Postcode (byRef strPostcode)

    ' This routine checks the value of the form element specified by the parameter
    ' for a valid postcode.

    ' The definition of a valid postcode has been taken from:
    ' http:'www.royalmail.com/docContent/other/Downloadable_Files/ PAF_Digest_Issue_5_0.pdf

    ' If the element is a valid postcode, the function value is returned as TRUE
    ' and the postcode is returned in uppercase with the separating space in the
    ' right place.

      Dim strPostcodeRegExp(2)   ' holds the regular expressions for valid postcodes
      Dim intCount        &nbs p;      ' For loop counter
      Dim strPostcodeCopy        ' Copy of postcode
     
      ' Variables used to hold regular expression object  
      Dim objRegExp, objMatches, objMatch
     
      ' Expression for postcodes: AN NAA, ANN NAA, AAN NAA, and AANN NAA
      strPostcodeRegExp(0) = "^([a-z]{1,2}[0-9]{1,2})([0-9]{1}[abdefghjlnpqrstuwxyz]{2})$"

      ' Expression for postcodes: ANA NAA, and AANA  NAA
      strPostcodeRegExp(1) = "^([a-z]{1,2}[0-9]{1}[a-z]{1})([0-9]{1}[abdefghjlnpqrstuwxyz]{2})$"
     
      ' Exception for the special postcode GIR 0AA
      strPostcodeRegExp(2) = "^(gir)(0aa)$"

      ' Copy the parameter and convert into lowercase
      strPostcodeCopy = Lcase(strPostCode)
     
      ' Assume we're not going to find a valid postcode
      Check_Postcode = false
     
      ' Strip out spaces
      strPostcodeCopy = Replace (strPostcodeCopy, " ", "")
      Check_Postcode = False
     
      Set objRegExp = New RegExp
     
      ' Check the string against valid types of post codes
      For intCount = 0 to Ubound(strPostCodeRegExp)
     
        ' Check next pattern in list
        objRegExp.Pattern =  strPostcodeRegExp(intCount)
        If objRegExp.Test (strPostcodeCopy) Then
       
          ' Post code found. Ensure input parameter is in correct format.
          Set objMatches = objRegExp.Execute (strPostcodeCopy)
          Set objMatch = objMatches(0)
          strPostcodeCopy = Ucase (objMatch.subMatches (0)) & " " &  Ucase (objMatch.subMatches (1))
         
          ' Show that we have found the postcode
          Check_Postcode = True
        End if
      Next
     
      ' Ensure that the uppercase postcode gets returned if valid
      If Check_Postcode Then strPostcode = strPostcodeCopy
     
    End Function
    %>

    regards

    John

     

    ,

    Yea.. that error is totally because the asp pages are looking for fields in the database that are not there.. and causing a nasty loop.

     

    if using the option pack you must go over the directions very carefully...
    Make sure everything works step by step..

    After upgrading to option pack code you either need to upgrade the database from the base system or use the newer database provided with the option pack.

    Then.. you want to test every function of the groups.. if pages act slow and seem odd... especially the groups page and edit users page..
    Then your not using a valid database. Either you didnt upgrade the old one, are not using the new one, or your connecting to an older verison by accident and not realizing it.

    That's pretty much it...

    cwilliams38300.5555671296,

    I have imported like 50,000 users into an access database when testing... it took like 4-5 minutes but worked..

    course it really all depends on the setup how many you can get away with

    something must still be wrong

    have you tried just importing 1 or 2 users for troubleshooting sake ?

    I would also recommend that after any timeout you reboot the server or at the very least do an "iisreset" to get things back to normal

    ,

    Encountered another issue.  When entering a user name correct but the wrong password get the following error:

     

    Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

    [Microsoft][ODBC Microsoft Access Driver] Syntax error in string in query expression '(Username = 'ROBERT') AND (Password = 'Z£$'.

    /check_user_inc.asp, line 115

    Did I do something else wrong?!

     

    Thanks

    ,

    You really should check out the documentation regarding the config file before you go any farther.

    If the server supports ASP.NET you do not have to spend any money to have real fast loading thumbnails.


    Also, licenses of ASPImage only cost 69.95 and regardless any quality host supporting ASP should have one of the 3 supported resizing components installed or else you should consider a better host like www.alentus.com Places like that have good hosting prices and give you access to 3000.00 worth of 3rd party asp components.

     

    , Just copy the files over. have permissions set on any folders that need it, and edit the data connection so it's valid for the new server. Once you get logged to the admin area go update all the settings so any urls are valid.

    really its no different than a new installation so just follow those directions but use your existing files.

    There is no domain pointing involved...

    As logn as the old stuff is not accesible on the live internet you don't need another license.

    As for my installation fee of 25. That is only for new installations. I charge more for something like that as there may be compications such as custom changes to the code that I would have to deal with. Customers often custimize the login and users area.. etc etc .. and there may be hardcoded urls and what not to worry about changing.


    LASTLY, I noticed all your other posts are in the ASPProtect 7 area so the installaton process for that is a bit different than for Version 6 so what I said above is not quite the same process. Please make sure you post in the correct area when asking questions. ,

    All this being said installing the desktop version of SQL may be a little tricky as it may complain that your SA account needs a strict password.

    The solution is to run the SQL Desktop setup.exe with some parameters specifying a password for the SA account.

    So you go to the command prompt or make a shortcut to the setup file and run something like this

    setup.exe SAPWD="YourPassword"

    minus the quotes...

    I got that info from this article and it worked fine
    http://www.experts-exchange.com/Databases/Q_21036508.html

    The other thing to remember is it might take a reboot to actually see the SQL server icon running in the taskbar. You may also need to go into the administrative services and enable the "SQLSERVERAGENT" as well as set its startup type to "automatic"

    And a reboot here and there..

    Whammo... your in business...

    , No, Unfortunately.
    I have seen your messages.
    I have not edited the code at all.
    Tomorrow I will install the sql database again from your script as I did before and I will try again. I will send all the details.
    Thank you again.
    ,

    yes, usernames and passwords are both case sensitive. It increases security.

    , Personally, I think that is something you should work into your existing site code or something you should handle on your own.

    It's basic site maintenance issues.. and something every webmaster must deal with on an individual basis. If you are going to upload a new version of some large file of course you should go disable wherever people are dloading it from and then wait/re upload/turn things back on.. etc etc

    It is not going to be a feature of ASPProtect and I don't see why it should be. If you want to have some sort of global site is temporaily down thing you should have a common server side include on all your pages right after the password protection include file. In that include file you could easily stop site access with a response.end and also show a message.

    Or you should disable a file download page manually on a file to file basis.

    Really, big busy sites that have their sh*t together use versions of files for a reason. Every new upload is a slightly new version revision and has a slightly different file name They do this partially to eliminate the problem your talking about and also because that is the way it should be done. Nothing gets uploaded over itself ever. Even if there is a mistake in a file they upload a new revision and document it in the revision/changes file. And of course they dont show users a link to a new file revisions until it is uploaded.
    ,

    Hello,

    Unfortuantely I can not help you much regarding the javascript because I am a server side code kinda guy. Client side javascript just isn't my thing. That was free javascript code that I used for that function. I really do not know enough about editing client javascript. Sounds like you might though.

    Style 1 is really a relic left over from the standard version. I just left it in in case someone wanted to use it. Like I said because it is javascript making it do more than it does is tricky (at least for me)

    Now,, for actually getting description code. The thing to do is check out how that all works in the pic_window.asp file which is what style 2 two uses. Bascially descriptions for an particular album get stored in one text file. We read that test file. Put the lines into an array. Then display the info which gets run through a functions to convert some special characters used when saving back to normal.

    I tried to look at your site but it woulnt load for some reason.

     

    cwilliams38420.0809259259,

    If you bought ASPBanner Unlimited Version 7.3 Before August/01/2004 this file needs to be updated.

    It fixes a bug where CODE type banners do not work correctly with a weight higher than 1.

    Basically, blank banners will rotate and you will see nothing sometimes.

    Copy this file into your ASPBanner folder over the existing file of the same name.

    2004-08-03_045728_appinfo_inc.zip

    cwilliams38209.5383680556, This user has notified me that the issue has been resolved based on what I told him., If by permissions ou are reffering to the IUSR with write/execute
    permissions, they are already set. I get this error when I hit the 'Create New
    Export File From Current User Database' link:

    Microsoft VBScript runtime error '800a004c'

    Path not found

    /ASPProtect/password_admin/export.asp, line 76

    Any other suggestions?,

    Ok, I started the database tables from scratch. I did everything using sql enterprise manager and query analizer..

    Same thing happens... certain passwords just do not work.

    So I did a lot of testing and I have come to the conclusion that this has something to do with the regional settings of that SQL server.

    Here is an example.. see the screenshot below.

    Username "admin" password "petepetepete"

    The top query done in Enterprise Manager is valid and shows the user.

    The bottom query is also valid but it does not show the user.

    And that is exactly what is happening from the ASP codes point of view.



    Now, this means that even though that encrypted password is getting saved to the databse correctly this particular SQL server just cant deal with it from a QUERY.

    It works fine on two different SQL servers that I have. It's just got to be something regional related like unicode characters not being dealt with correctly or something odd like that.

    I tried changing the collation data for the "Password" field type on that SQL server and it looks right. I don't know what else to do but it is something about that SQL server. There may be a way to change the regional setting through the connection string but I cant find any articles on that right now.

    One solution I have for you to get this working there is to eliminate the encryption factor then I dont think you will have these issues.

    It's either that or find another SQL server with US type settings or use MSAccess. ASPProtect runs nearly as fast on Access as long as you do not have over 10,000 users or whatever. The system hardly ever accesses the database so it performance under MSAccess is always good.

    Let me know what you want to do. I can shows you how to eliminate the encrypytion factor if you want to try that. I think if I make you a custom version of the RC4 function you can just replace that and then the system will use plain passwords.

    Your call..

    ,

    ConnectionString = "DBQ=C:\TradersReportsCom\aspprotect\data\database\ASPProtec t_access2002.mdb;Driver={Microsoft Access Driver (*.mdb)};UID=Admin;Password=temp"

    I have already set the folder permissions as indicated in the documentation.

    ,

    [QUOTE=cwilliams]Humm, Did you make any changes to the code ?
    Solid Black is not the default so it must have changed at least once.[/quote]

    I did change the top_logo.gif and the associated link. That was on the default page not the Solid Black skin which is unchanged. After downloading/uploading the skins I tried changing it to one of the Beach skins and that's when it changed to Solid Black and has been stuck there ever since.

    [quote]Otherwise it might be some sort of application variable problem.
    I would make sure the web is and "application" in the IIS console.[/quote]I don't have access to the Microsoft IIS console as this is a host site. I can access the site's "control panel" but it does allow for those type of settings. Mostly just permissions, DSN entries, etc.

    Thanks.
    Al

    ,

    Microsoft has a free version of SQL server 2000 than you can run on a development machine.


    http://www.microsoft.com/downloads/details.aspx?FamilyID=413 744d1-a0bc-479f-bafa-e4b278eb9147&DisplayLang=en

    This is really the same thing as the MSDN version of SQL server that comes with Visual Studio

    It is limited in two ways.

  • No single database can exceed 2 gigabytes in size. However, each Desktop Engine server instance can contain many databases, each of which can be up to 2 gigabytes in size. Each computer can host up to sixteen instances of Desktop Engine.

  • Performance will rapidly decline when more than five simultaneous users use the database engine at the same time. With five users or less Desktop Engine will operate with full SQL Server speed.

    After you install this your going to need a way to connect to your sql server as well as a way to run queires on it.

    I suggest either install the client tools off any SQL 2000 Installation Disc (giving you enterprise manager and query manager)

    or use the FREE SQL Server Web Data Administrator which will do amost everything you  will need to do. It is really very slick
    http://support.cjwsoft.com/forum/forum_posts.asp?TID=127& ; ; ;PN=1

    Then you have a pretty sweet setup for testing and developing locally using SQL server.

    If you are wondering why someone with a real SQL Server 2000 cd wouldn't just install the real SQL server locally it is because the server part will usually not install on XP Pro or non server versions of windows for licensing reasons. (at least every SQL 2000 CD I have is like that regardless of whether it is standard or enterprise) But the client side tools on the cd are invaluable so I just install the Desktop Version of SQL along with the client side tools and everything works great.

  • ,

    in the version you have changing it is not something we covered

    I believe you will find it the "config_inc.asp" file in the root though... be careful with naming it though because if you use any spaces or weird characters it might cause issues with various functions in the application like emailing.. I recommend just using letter, numbers, and maybe dashes

     

    ,

    it is by design actually and something that can be improved
    (I just never thought of it when I 1st designed the system and it is actually planned to be added in Version 8)

    The trick would be to reset those session variables anytime someone edits and saves their information... not very hard at all

    you would do it on the save code page for when a user edits themself.
    you want to grab the info posted from the form and  reset each session variable at the same time everything is re-saved to the database

    example

    Session("Company_Name") = Request("Company_Name")



     

     

    ,

    ok, well if you want to test on your own....  in the ipn.asp file for the subscription folder you will see this area of code used for testing

    ' Un-comment this section and give this directory proper permissions to enable logging to a text file
    ' Very helpful for troubleshooting
    '   Set ObjMyFile = CreateObject("Scripting.FileSystemObject")
    '   LogFileName = ("paypal.txt")
    '   'Open Text File.. If doesn't exist create it and append to it .. If exists just append to it
    '   Set WriteMyData = ObjMyFile.OpenTextFile(Server.MapPath("paypal.txt"),8,True)
    '   RowHeaderString =  ""
    '   RowHeaderString =  RowHeaderString & OrderID & vbTab
    '   RowHeaderString =  RowHeaderString & Custom & vbTab
    '   RowHeaderString =  RowHeaderString & User_ID & vbTab
    '   RowHeaderString =  RowHeaderString & subscr_id & vbTab
    '   RowHeaderString =  RowHeaderString & txn_type & vbTab
    '   RowHeaderString =  RowHeaderString & subscr_date & vbTab
    '   RowHeaderString =  RowHeaderString & Access_level & vbTab
    '   RowHeaderString =  RowHeaderString & Groups
    '   WriteMyData.WriteLine(RowHeaderString)
    '   WriteMyData.Close

    now that folder will need modify permissions for the text file to be written to but this is a good way to test if the ipn.asp page ever gets hit by paypal.

    ITS REAL IMPORTANT THAT THE TEST FILE CAN BE WRITTEN TO OR DOING THIS WILL JUST CAUSE MORE ISSUES

    To ensure the text file can be written to and permissions are correct for that folder you can make a new .asp in there and run this to see if the text file writing works

       Set ObjMyFile = CreateObject("Scripting.FileSystemObject")
       LogFileName = ("paypal.txt")
       'Open Text File.. If doesn't exist create it and append to it .. If exists just append to it
       Set WriteMyData = ObjMyFile.OpenTextFile(Server.MapPath("paypal.txt"),8,True)
       WriteMyData.WriteLine("the file was written to")
       WriteMyData.Close

    Now, you can even change the location of the text file to place that does have permissions if you like.

    This is what I would do if I was in there... then I would make some test payments using 1 cent and another paypal account (your allowed 2)

    and see what happens

    it is always possible the subscription code may have a bug in it. The last time I tested I only tested the single payment folder which worked perfectly. If I have time in the next couple days I am going to test the subscription stuff again. If there is something wrong I can cure it quickly.

    The two routines share a lot of code in common.

    cwilliams38421.6488773148, Thanks and glad that fixed it.

    You can review this software at
    http://www.aspin.com/func/review?id=4952510

    That being said, ASPIN has a lot of problems with anonymous reviews so if you can please sign up with them and post an Authentic review as they carry a lot more weight. Authentic reviews involve responding to their validation email so when doing so use a real email address that you regularly check.

    And sorry I made you use the forums, but as you can see this is exactly the sort of thread that will help someone else later on.. and that is why I require people to use the forums now instead of just email support. That way the conversations are out in the open where they can help everyone instead of buried in my outlook where no one will ever see them. And of course if information is sensitive you can always do a Private Message as you did earlier.

    It is all about creating a knowlegebase of valuable information.

    ,

    These Settings:


    Picture upload feature settings.

    Use_Picture_Upload < = value=True name=Use_Picture_Upload> Check this if you will be using the picture uploading feature.
    UploadDirectory < size=60 value=C:\Inetpub\virtuals\aspphotogallery.com\Web\demo\pictu res name=UploadDirectory>
    Example:  "C:\Inetpub\wwwroot\ASPPhotoGallery\pictures"
    Ask your server admin if you are not sure.
    This directory needs proper permissions for the SAFILEUP component or the VBSCRIPT solution to work correctly. It basically needs to same permissions as the database directory would need when using Microsoft Access.
    PictureURL < size=60 value=http://www.aspphotogallery.com/demo/pictures name=PictureURL>
    Example:  "http://p600laptop/ASPPhotoGallery/pictures"
    This is the web URL of the the upload directory specified above.
    Use_SAFILEUP_Upload < = value=SAUP name=Upload_Solution>
    This option will enable file uploads using a component called SAFILEUP which is high end upload component available from www.softartisans.com. It is far superior in performance and reliability compared to the VBSCRIPT file upload solution.It is highly recommended for a busy site.  If you enable this component and do not have it installed on your web server you will cause an error.
    Use_ASPUPLOAD_Upload < = value=ASPUPLOAD name=Upload_Solution>
    This option will enable file uploads using a component called ASPUPLOAD which is high end upload component available from www.persits.com. It is also far superior in performance and reliability compared to the VBSCRIPT file upload solution.It is highly recommended for a busy site.  If you enable this component and do not have it installed on your web server you will cause an error.
    Use_DUNDAS_Upload < = value=DUNDAS name=Upload_Solution>
    This option will enable file uploads using a (FREE) component called DUNDAS UPLOAD which is a high end upload component available from www.dundas.com. It is also far superior in performance and reliability compared to the VBSCRIPT file upload solution.It is highly recommended for a busy site.  If you enable this component and do not have it installed on your web server you will cause an error.
    Use_VBSCRIPT_Upload < = value= name=Upload_Solution>
    This option will enable file uploads using a pure VBSCRIPT solution. It requires VBSCRIPT version 5 or higher to be installed on the server. The solution usually works fine, but has been reported to cause memory leaks on XP machines.
    ,
     
    Thanks for the quick reply.
     
    I will consider editing the code.
    , Attached is a SQL script to create the ASPProtect Database with the Option Pack Changes already applied. This lets you create the database in one step and you wont have to make the option pack changes as they are already there.

    This only applies to people using MSSQL and doing a new installation.

    This scripts are run via SQL Enterprise Manager.

    You make a new database then run this script on it in query manager.

    2004-06-14_180056_aspprotect_w_option_pack.zip cwilliams38152.7522569444, no, and none of the ASP based systems I know of can do anything like that.

    A zone can only produce 1 banner at a time.

    What your are talking about I have mostly only seen done using very complex javascript code available freely on the web if you search. , I have run into the same problem with streaming pdfs to the browser using the stream_download.asp example, but only when selecting the option to open the file directly into the browser (after it's streamed back) as opposed to saving it and then opening it (which works fine in Firefox and IE).  Then I ran across this Microsoft support article

    http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q2 97822

    It got me thinking that maybe a header needs to be included in stream_download.asp that tells the browser to specifically cache the file. Adding this suddenly got everything working

    Response.CacheControl = "Public"

    right after this line in the code

    Response.ContentType = "application/octet-stream"

    My asp is limited, but this seems to work at least for pdf documents.  Can someone confirm this?  The other question I have is if this is a solution, should the CacheControl be set to public or private.  Not sure on what the implications are.

    Firefox by the way seems to open or save and open the file without this, so you are right that the implementation between the browsers is certainly different.

    Tom

    ,

    (User Photo Upload Mod) for ASPProtect Version 7.x

    This will allow an individual user to upload a user picture instead of just the admin.

    Notes: This is a down and dirty mod. The user upload code was copied from the admin area and there are no safeguards. Meaning there is no limit on the file size a user uploads and there is no confirmation process in case something they upload is inappropriate. etc etc etc

    If you want that you will have to work on that on your own.

    Directions:
    Back up your existing ASPProtect installation.

    copy these files into your "users" folder

    2006-01-24_111305_User_Upload_Mod.zip

    ,

    SQL Database Creation (NEW INSTALL)

    If you are creating a new database do so using SQL enterprise manager.
    Create a new database called whatever you like and keep all the default settings. If using an existing sql database skip that step.

    Now open up SQL Query Analyzer

    unzip the following sql script and open it in query analyser.
    2005-02-20_132116_aspprotect_v7_sql_script.zip

    VERY IMPORTANT
    On the drop down box at the top right make sure your intended database is selected. Otherwise your changes may effect the wrong database in your SQL server.

    Then load the script  into the Query Analyzer.  Click the green play button at the top. If everything goes well the response should read something like this.

    ******************************************************
    (1 row(s) affected)
    ******************************************************

    If so the tables have been created in your existing database.

    Now make sure an existing or new SQL user has (public / datareader / datawriter) permissions for the new tables. You will be referencing this user in the asp code connection string so this user must be set up correctly. You may need your SQL server admins or hosting company to help you on this step as you may not have access to do this. You may not need to create a user and set permissions as the sql user you were logged in as to use query analyzer may by default get the correct permissions on anything you create.

    Regardless, as you can see from this screenshot I made a SQL user called "aspprotectuser" and proceeded to set the permissions for that user. Under database access giving him (public,datareader, and datewriter permissions).


    Now, in the ASP files provided with ASPProtect edit "dataconn_inc.asp" with a text editor and modify the connection string info. Be sure to change the info to match your server,username, and password.

    Below is an example of valid connection string.

    ConnectionString = "Provider=sqloledb;Data Source=poseidon;Initial Catalog=aspprotect;User Id=aspprotectuser;Password=temp;"

    The  "Data Source" setting is either the Network Name for the SQL Server or the IP Address. For local servers you can sometimes use an IP of "127.0.0.1" or the name of the local server.

    "Initial Catalog" is the name of your database.

    Now, in the ASP files provided with ASPProtect edit "dataconn_inc.asp" with a text editor and set the DatabaseType variable to SQL like so.

    DatabaseType = "SQL"

    cwilliams38403.6834953704,


    Timecard Entry: 3/25/2006 4:32:37 PM

    Company Picnic, travel time to watertown, Email/Newsgroups, cphospital.org - site updates/redesign (billable), Formating Tim's machine, re-installing all software. Re-setting up IIS, exchange, etc., Contact JM Schaefer for status – in progress Map of Watertown - completed Copy of FCC 214 to Darrell - completed Copy of Resale Certificate to Carol - completed Copy of completed Customer Profile Form Carol & Seth - completed Post OCN#’s – in progress, 2000-07-04___SCHERHORN ADD PHOTOS CREATE NEW CATEGORIES, ADD AND DELETE INFO FOR COTTAGE RENTALS ADD/DELETE INFO FOR BOAT RENTALS____SCAN AND ADD MUTIPLE PHOTOS TO WEBSITE., RESEARCHED SOFTWARE FOR OUR DEPARTMENT THAT WOULD MAKE WORKFLOW AND PROJECT MANAGEMENT, BILLING EASIER. CAME TO SOME CONCLUSIONS WITH ROB, Duties:cc report, invoice cancellations, answering phone, callbacks from voicemail., Left over Pizza, printed, reviewed and mailed invoices; cancellations for nonpayment; answered phone; general cleaning, phones were steady till about 2 pm, Snacked, setup office, General accounting - TICC, Ogdensburg ISDN - Phone w/ Bell and Ben reagarding figuring out why they are dead., dms 500 channel banks, call ppl about problems trying to get status of lowville. , Tim/carol and I have now determined what to pay for now -entered transfer from savings to checking . Printed checks , Lunch, was not busy at all.. did radlogs and onlines (did onlines a couple of times) the imcnet server NS2 went down last night contacted Ben because i could not get hold of Seth and he fixed the problem, emails, Tasks, VM, general billing, , Cleaned Kitchen and vacummed tech room. Both outside doors checked, locked and secured., team meeting., daily reports, radlog and callbacks, Starting to build a server., ans email- returned messages,

       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 ASP control controls class classes module script Scripts applet 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