How to make download..??? [URGENT]
Firends,
I had made a software and included a button for downloading updates.
When a user clicks on that button, the software will open a website with a code on its addressbar. The code is the serial key that I had issued to them.
For example:
I haven't used ASP and I don't know anything on it. (But I know VB)
So, When the user clicks on the update button from my software, internet browser will be opened for the above address(i mean, its hyperlinked)
When that page loads, the code will be send to another asp page called process.asp, where it will look for the code in a text file and if found, the code will be inserted(appended) to another text file with the date and time. If not found, it will display a message that, the update will be not available.
After matching the code, the update file(new exe file) should be downloaded.
Can anybody please help me in doing that. I mean, if you don't mind, could you create all those files that I mentioned above.
I will be so thank full to you, if you do that....:)
Regards
Akhilesh:wave:
Re: How to make download..??? [URGENT]
You're not going to get much help if you ask for someone to do all your work for you. You say you love programming, so it's best if you start off yourself and then ask questions at the exact points where you get stuck.
Re: How to make download..??? [URGENT]
Hi,
I'm not doing it all for you. But I'm going to help you out a small amount, this should help get you started.
What your asking for is not that complicated, you just want to check a serial against a DB and give the user an update if valid. The second (process.asp) does not seem necessary to me as you can just put the code in Download.asp but I'll work with it:
This would go in download.asp
Code:
dim serial
serial = request.querystring("code")
Response.Redirect("process.asp?serial=" &serial)
Then in process.asp you would write:
Code:
dim serialnum
serialnum = request.querystring("serial")
'Either here you would check a database or check your algorithm
'If your serial was valid you could set
valid = 1
If Valid = 1 Then
Response.Redirect("updatefile.exe")
Else
Response.Write("Your serial key was not valid - please contact support if you have issues")
End If
Hope this helps, obviously you will have to implement your database or algorithim for your serial codes.
If this helped you rate this post.
Re: How to make download..??? [URGENT]
There is sample code to read and write to a text file within this thread also, however I think all of us here would agree with Sam there that a database is a far more manageable and extendable way to store your information and to forget the text file usage.
Re: How to make download..??? [URGENT]
Hi,
Yes a database is the way to go about it - alternatively, you can implement your serial generating algorithm in and check the serial dynamically.
Ask where you need help,
Sam