homepage Welcome to WebmasterWorld Guest from 54.145.182.50
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
Forum Library, Charter, Moderators: ocean10000

Microsoft IIS Web Server and ASP.NET Forum

    
Script-coding needed
fiu88

10+ Year Member



 
Msg#: 3082 posted 5:22 am on Oct 19, 2005 (gmt 0)

We have an asp based site...
I need code or a script that can generate One Time use coupon codes///
Any help or ideas would be greatly appreciated...If you ahev a solution, let me know how it works and what you need for compensation///

 

Krapulator

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3082 posted 3:59 am on Oct 25, 2005 (gmt 0)

What is the desired format of your coupon codes?
Eg Numeric, alphanumeric, alpha only? Length?

fiu88

10+ Year Member



 
Msg#: 3082 posted 6:43 pm on Oct 25, 2005 (gmt 0)

doesnt really matter.. we can currently create anything alpha-numeric

fiu88

10+ Year Member



 
Msg#: 3082 posted 5:25 am on Oct 28, 2005 (gmt 0)

ttt

Easy_Coder

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3082 posted 9:07 am on Oct 28, 2005 (gmt 0)

Response.Write "GUID = " & CreateGUID()

Function CreateGUID()
Randomize Timer
Dim tmpCounter,tmpGUID
Const strValid = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
For tmpCounter = 1 To 20
tmpGUID = tmpGUID & Mid(strValid, Int(Rnd(1) * Len(strValid)) + 1, 1)
Next
CreateGUID = tmpGUID
End Function

aspdaddy

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3082 posted 1:41 pm on Oct 28, 2005 (gmt 0)

myGUID = createobject("scriptlet.typelib").guid

myGUID= replace(myGUID, "}", "")
myGUID= replace(myGUID, "{", "")
myGUID= replace(myGUID, "-", "")
myGUID= replace(myGUID, "'", "")

Response.write myGUID

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved