|
-
Jul 27th, 2008, 09:18 AM
#1
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
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
-
Jul 29th, 2008, 07:16 AM
#2
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.
-
Jul 31st, 2008, 01:06 PM
#3
Hyperactive Member
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.
-
Aug 1st, 2008, 02:05 AM
#4
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.
-
Aug 1st, 2008, 06:37 AM
#5
Hyperactive Member
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
If you found any of my posts helpful then please rate them.
CodeBank
Form Fading Effects in VB.NET and C#
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|