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

Active Server Pages help tutorial how to ASP Help ASP Tutorials ASP Programming ASP Code - ASP Free CJWSoft ASPProtect ASPBanner ASPClassifieds



Blog Entry: 3/25/2006 4:35:58 PM

Hi Chris,

I have a quick question...when a user signs up I have a drop down menu for Company name and they have a choice of branch selections. Everything works fine but when the info is saved in the database there is some sort of conversion to lower-case...?

Example:

Original drop list selection:

Winston Salem, NC - (XXX/XXX) - original

In the database (access), some letters are lowercased now...why? anything to do with the period, , or - ?

Winston Salem, Nc - (xxx/xxx) - what is saved

Thanks

, 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
,



dsn-less is the way to go..
http://support.cjwsoft.com/code/moreinfo9-2.htm

you also need to use newer versions of the database as the odbc drivers on the server are sometimes very new and no longer work with access 97 databases

,

Thanks.

Nick

,

I'm using version 6 upgrade and recently some of the users complained that their passwords are no longer working. I was able to replicate the problem as I also experienced the same thing with my account.

Once I reset the password thru e-mail (Forgotten your password?), I am able to login but it fails later. This is weird as I have an identical copy of the code running flawlessly  on my test server.

The only change which I made to the original downloadable code is by adding password encryption using Base 64 encryption.

Any ideas what might be the problem

,
(Password Expiration Mod) for ASPProtect Version 7.x

This Advanced Mod requires decent knowledge of Databases and working with ASP. I originally wrote something like this for a customer on a custom project. I then took the time to re-write all the code from scratch so it could easily be plugged in to the current version of ASPProtect as an option. All in all this mod took me over 15 hours of time to develop and will save you a ton of time & money if you were planning on writing something like this on your own. Some parts of this were so difficult to get working that I would never have written this code if I was not paid to do so. (The encrypted array that rotates through the last 12 passwords was quite frustrating to get working)


 
The price on this is 19.95. I am not incorporating this into the base product because it makes things more complicated and isn't for everyone.

Purchase Page

Security is a big concern and making your users change their password every so often is a good idea. Keeping track of previous passwords they used and making them choose something they haven't used before takes the concept even further.

This Mod will add a password expiration date to the application. When the password expiration date is hit the user must confirm their old password as well as pick a new one before they can log in again.

There is a new password expiration directory where they must choose a new password that has not been used before. The new password must be confirmed during this process. (It remembers 12 old passwords the way it is coded) The old passwords are stored in the database in an encrypted array.


Directions:
Back up your existing ASPProtect installation.

Add two new fields to the "ASPP_Users" table in your database.

For an MSAccess Database

Password_Expiration_Date (Date_Time Field)
PreviousPasswords (Memo Field)

For a MSSQL Database

Password_Expiration_Date (smalldatetime)
PreviousPasswords (nvarchar 160 characters)

once that is done

Copy all the new ".asp" pages into your site.


Edit the "PasswordExpirationURL" variable in the "check_user_inc.asp" file

It needs to be the full URL to to the "change_password/default.asp" file


Now edit the "change_password/processchange.asp" file

There are 3 variables you can edit.

PageSentToAfter = "http://localhost/aspprotectmods/password_admin/default.asp"
PassMinLength = 4
PassMaxLength = 8

The "PageSentToAfter" is where you want them sent to after they change the password. It can be whatever you like.
If it is a protected page they should automatically get logged in with the new password they just changed to which is nice.

The other two values should be obvious.

That's it...

Just remember the password change thing is not used in the admin area...
You could easily add code for that on your own though by looking at the the password expiration code I added to the publics "check_user_inc.asp" file

Also:
You will see a new field to edit on the user edit screen for the Password Expiration of course. 
,

Just wanted to say how much I like the program! I hunted for days and finally purchased a Perl based product. After several days of goofing with it I gave up. ASPPhoto worked right on first install!!!!

 

Way to go!

,

I set the max image width to 1000; previously it was null. Now I'm getting server errors:

page not found, then, service unavailable (the page is there). But in a new album, the images imported fine and it seems to be working now, despite the IIS issues.

I think my host restricted the amount of memory and resources my site is allowed to use.

,

Aspprotect issue

I need the ability to allow users to view url links on a page, based on the

group(s) they are a member of.  If the user is the member of one group (group 1 in the following example) the code works fine.

<% If Session("GROUPS") = "*1*" then %>  "view link #1"

However, if the user is a member of more than one group (let's say 1 & 5), I cannot make the code work.  

I have tried various versions of wildcards, nothing seems to get me there.

I fairly new at ASP, and I am sure I'm missing something simple.

Any help would be appreciated.

 

,

Ok I used the following for the sql string.. is this correct?

SELECT COUNT(Album_ID) AS Alb_Count FROM " & tbl_label_albums & " WHERE (User_ID = " & CmdListUsers("User_ID") & " AND Album_Active = '-1'" & ")"

,

Hi - I am a recent user of your software. I administer it for the owner. I probably missed something in your forums somewhere - but I'd like to know how to stop the software from sending an "accept registration" e-mail (after they fill out the registration page) from going out so fast - usually within minutes.  I'd like to know how to defer the message for 24 hours, more or less, so that our company can go over the registration details and decide whether to allow the person registering to actually have access to our protected website pages.  The program is working very well and we are excited about it.  So far, no problems (knock on wood!).

Thanks so much for your help!

,

well, assuming that function works and is vbscript not vb
(if it is vb code it may need some conversion work)

anyway

in "users/add_new_account.asp"

you would put the code for that function anywhere in the page.. it does not matter where as long as it is in code tags <% %>

then.. right under this part of the same page

If Zipcode_Postal_Code_Required = True Then
 If  Zipcode_Postal_Code = "" Then
  ErrorMessage = ErrorMessage & Server.URLEncode("You need to enter a Zipcode_Postal_Code.\n\n")
 End IF
End If


add this

If Check_Postcode(Zipcode_Postal_Code) <> True Then
  ErrorMessage = ErrorMessage & Server.URLEncode("You need to enter a Valid Zipcode_Postal_Code.\n\n")
End If

No guarantees but that is the gist of it

cwilliams38381.6456828704,

I Dont know... it shouldnt do anything like that.

if it ever asks to download a aspx or asp page its generally a server configuration issue not related to the actual code

 

provided you arent trying to grab the injectbanner page through an iframe call which is only for use with the javascript method of calling banners

,

I am trying to set up ASP protect 6 and have a problem that when a new user registers their email is not transferred to the database.

I can see the rest of their entries both in the database and in the admin/edit form but not the email.

Any ideas?

 

,

Is there a way to protect other virtual sites on the server that are not under the default web site considering people may have different websites running off one server?  I get the following error:

Parser Error Message: Cannot use a leading .. to exit above the top directory.

Source Error:

Line 1:  <%@ Register TagPrefix="aspprotect" TagName="checkaccess" Src="../../protectpage.ascx" %> 
Line 2:  <aspprotect:checkaccess level="4" groups="null" runat="server"></aspprotect:checkaccess>
Line 3:  

Thanks!

 

 

,

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.

  • ,

    I would highly suggest setting up a DSN-LESS connection.

    That system dsn is most likely the source of your trouble It is probably that or permissions are still not correct.

    I can't tell you how many people have had trouble with system dsn's and finally set up a dsn-less connection and everything then worked as it should.

    The location of your database is fine as long as permissions are truly set correctly like I mentioned.

    Also, be sure you are setting the database type correctly in the dataconn_inc.asp file. That can cause problems as well as some people have been known to delete that line.

    See my articles...

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

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

    http://support.cjwsoft.com/code/code_info.asp?TID=40&KW= system+dsn

    ,

    I am getting the same error looking at the previous post, I looked in settings and my Registration-URL is pointing at the correct location.

     

    Is there any other thoughts on this issue

    Thank you!

    Matt2112

    ,

    Looks great. I can't wait until this will be released. Will there also be an easy way to migrate my current version ?

    Hans

    ,

    Sorry, I forgot about that when I got hung up on the install problem.

     I'll tackle your explanation now to see if I can get it working. Since I already bought the software I'll keep my fingers crossed.

    Thanks

    , I did not set that variable in the IPN code that aspprotect uses. It is optional.

    You will want to download PayPal's IPN documentation and see what the variable is called and then add it to the IPN form code if you want to use it.

    it will be a hidden form variable (one line of code added to) paypal2.asp,

    look in the "check_user_inc.asp" file

    Thank you that did it !!

    ,

    Thanks for that. The upload size is just as effective and possibly a better solution to maintain server space.

    What about individual gallery permissions. So only 1 member can post in only 1 gallery. I have a forum of 500 plus members so if they want to add a gallery than setting a permission would be idea for each gallery.

    , Not sure what you mean about the path to the IIS files being wierd...what else should it be?  The wf directory is the root of the aspprotect stuff for this project. 

    I assume the permissions need to be read, write at least.  I was looking at the permissions dialog from a file explorer and I see a web sharing tab and a security tab.  I look at the security tab but I am not really sure which type of user I am looking for to add and give permissions to so that I can get it right.  Maybe that is not the right place to set the permissions....

    Sorry to be "windows challenged" but I am not super familliar with all the different places to set various permissions for OS vs. IIS.  I looked in the "Internet Services Manager" and browsed to the logfiles directory and looked at its permissions...is that the place to set things up?  I see a "directory" and "Directory security" tabs...which is the important one?  I made sure "write" was checked and went to the directory security tab and enabled anonomous access....still no logs are showing up. Restarted server a bunch of times to make sure it took the permission settings.  I logged in and out correctly and incorrectly to see if a log would be generated but no luck.

    The physical path to the logfiles directory is set correctly in the setup tab in aspprotect... sorry to still be baffled.

    How do I know if the filesystem object is disabled on the server??  I can copy and paste things in there...

    Thanks!!


    ,

    I dont know about your error on line 6 when uploading..

    as far as the manaully edited import file not working I would really need to see it. There has to be somethin wrong with it's format.

    I really need more information and possibly acess to the system to do some troubleshooting...

    This is anot a feature anyone has ever had an issue like this with.

    , Ok.. glad you got it working.,

    Hope the wedding went well.  I have one this weekend.

    I was successful at performing an upload.  The free upload software was either not configure properly (probably) or not working.  I downloaded the trial version of softartisan's upload (which is like over $300) and it started working. 

    Can more than one photo be uploaded at one time (like a whole folder full of photos) or does each have to be done individually?

    ,

    Got it working.  Embarrassed  Had purchased a long time ago and forgot about needing to run the userreg.exe.  All is well and thanks for the follow up.

    Lance

    ,

    do you have the smtp part of iis installed on your machine

    cdonts needs that

    then again I am not sure you can even use cdonts on a xp box without making some changes...

    cdonts has kinds died out and as of windows 2000 basically got replaces by cdosys

    ,

    I am having severe trouble with the SQL database connection for ASPlisting (generic version).

    I have used all of the suggested connection strings but still get error messages such as:

    [DBNETLIB][ConnectionOpen (Connect()).]Specified SQL server not found.

    I have set up the tables in the database, although the database existed already with many other tables in it as it costs me per database per month so one has to suffice with many tables in it.

    I use SQL a fair amount on my site but have not suffered any probs like this yet.

    Any advise or help would be useful.

    ,

    It should be released sometime late May 2004 or early June 2004 but no gurantees as I am pretty busy right now with some projects.

    There will be upgrade instructions and it should be a fairly easy upgrade.

    ,

    Hi Chris,

    Our company has a big dilemma on how to manage the database for accounts that are expiring/expired.

    We saw the function to email a batch of users who are expiring soon but this doesn't help us to complete the renewal process.

    Once the email is sent, what happens afterwards? how can we setup the system so that we can renew their expiry dates or accounts without too much hassle?

    The system currently doesn't have any renewal functions or to allow batch changes on multiple accounts at the same time so we have to manually edit one account at a time. This is extremely tedious if we have over 1000 accounts to manage (and we will).

    If you have anything to suggest on all this I would appreciate it :)

    Thanks alot
    Sylvain

    , good news.. like I said it is probably becuase aol blocks emails sent from IP's with no MX record in the dns system , Message :

    I purchased the V8 of the software yesterday. It is running on a 2000 Server with a MSSQL database. It is installed and I get the successful connection to database screen but when I click to enter the admin. console I continually get:

    "Connection string not saved in (data/config/aspbanner_unlimited_config.asp) file.
    Most likey the data folder does not have proper permissions set on it.
    That folder and all of the folders within it need (R,W,X,D) Permissions set for the anonymous webserver account.
    These permissions can generally only be set by your hosting company."

    I can save the string manually by hitting the button and I have checked that I have granted the proper access permissions. Any suggestions?

    Ken
    , Its one of the drwbacks of the encyrption.. sometimes.. VERY RARELY  it will produce things that cause a problem and will not work.

    It is something I am doing more research on ..,

    I'm all set - after thinking about your replies - i checked a bit more and changed the email component type -- thanks again for all your help.

    ,

    ahh, I see..

    that is not really something you should change.. it is pretty much always going to say read for any folder

    It's hard to say, but adjusting settings like that could inadvertently change folder permissions in a way that could cause problems and be hard to correct. I really don't know that for sure but it is very easy to totally mess up permissions when trying different things. In the past I had to reinstall iis just to get things back to normal. I eventually over time learned what to do and what not to do and have never had a problem since. I am not saying you are one of those people but a lot of people have problems because they play around with things they shouldn't or they go nuts trying to give every account permission starting from root folders... overwriting important default permissions instead of just making changes to a few specific folders.. not understanding the importance of what they are doing..... etc etc

    Sometimes you practically have to be a NT expert just to fully understand permissions. I know a lot and I can handle my own server but it's hard to explain the low level basic of NT permissions to others as there is a lot to it under the scenes. A lot of hard core NT/2000 users do all the permissions from the command prompt because there is a lot more control at that level.

    Like I said earlier, what you showed me looks right but this isn't a complex issue and the error means what it means. Something isn't right with the permissions.

    I would start from scratch if I were you. Perhaps consider doing an install in a new web instead of in your root like you showed me. Or try installing it on another machine for troubeshooting sake.

    I am sorry I can't think of some amazing answer on this one, but I think this is just one of those weird situations that requires starting from scratch or trying it on another machine.

    ,

    Why all the pages at the directory .../password_admin/ are very slow to open online?

    vaghelis38300.5280208333,

    After understanding how the count works i checked the IP in the db.  They are all set to the same IP (my web server) no matter what ip is doing the viewing.  This is probably due to my ISA2004 firewall that is posting the ip address of the web server with each log on.  So, can you help me with where the code would be to modify so the db does not get updated?  I risk the refresh problem, don't think it is an issue with me.

     

    Thanks,

    ,

    You can also try setting asphttp's user agent property to some browser version like in this example. It might stop that info from showing up when it fetches a page from the server.

    <%
    Dim BanObj1Http
    Set BanObj1Http = Server.CreateObject("AspHTTP.Conn")
    BanObj1Http.UserAgent = "Mozilla Compatible (MS IE 3.01 WinNT)"
    BanObj1Http.Url = " http://banserver.powerasp.com/aspbanner/aspbanner_inc.asp?Ba nnerZone=1"
    Response.Write BanObj1Http.GetURL
    set BanObj1Http = nothing
    %>

    Also... I dont know if these values below will work but I got them from looking at my nt logs.

    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)

    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)

    And here is more info on the asphttp component and it's settings.
    http://www.serverobjects.com/comp/asphttp3.htm

    cwilliams38248.6481365741,


    Timecard Entry: 3/25/2006 4:35:58 PM

    Steady morning. quality checked sign ups, cancellations, reports, callbacks from voicemail, checked emails, taking sign ups, answering phone, cancellation of invoices., The other issues were dealt with and I followed up on 1, E-Mail, Voice-Mail, Misc Phone Calls, Packup, out for lunch , More Vermont, made a banner ad for Brownell Abstract and put in rotation on NNYMLS site, CLAYTON CHAMBER OF COMMERCE MEETING ABOUT INTERNET MARKETING, second TCH is having issues....lost the secret for radius....tried to resave secret for radius......no luck....ended up rebooting the chassis., Meeting w/ Paul - hey he was here & i figured it would be two weeks before i saw him again!, Why are they not getting this???, Review NYSTA website development contract, Review co brochure with jason, Traveled to local stores trying to find an adjustable bracket for antennas, Reading about some wireless information and trying to find a good book that might be able to help me out, Change DNS entries for NYAB and test. w/ Randy, checked customer accts, checked accts in imail, dsl meeting, worked on dsl database, callbacks, talked to Crispin about cortlandmls.com changes and PDF input sheets, Travel back to Clayton from WHS., u/d ws trkr, balanced out checkbook for week, logins / new users , Checking e-mail. Checking voice mail. Backing up servers., worked on acc't info section of USA1Net site, Travel to TaskForce, PowerFSBO Changes / Web Site Reconstruction, worked on getting most of admin section completed on Allied Federated's web page to show them in our meeting with them tomorrow (alliedcoop.com, billable, programming), Helping Bill w/CizFM project., Greg Systems- left message for Vicky Environmento- Mike- problem with email- Left message for Ben Cindy Shaw- left message for web site Chadwick realty- spoke with Chris Berer- handles computer info Bonnie castle- go over info with Tom, Resetting all open modems. Answering a few tech e-mails.,

       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 ASP.NET .aspx .ascx Web HTML Developer Internet Microsoft Web Services Visual Studio .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