Some of Files In
Transcript of Some of Files In
-
8/9/2019 Some of Files In
1/5
INTEGRATING ONLINE CREDIT CARD TRANSACTIONS
This is the best reason to password protect your online content using AuthentiX. By integrating with preferred online credit card clearers , you canautomatically add students to your AuthentiX database once their credit card has been charged. The AuthentiX database is updated with the usersexpiration date, making it easy to manage and delete expired accounts.
But how do you accomplish this? Simply choose a script from one of our preferred online credit card clearers, install it into a script enabled directory onyour server - after you have arranged for service through the clearer, of course.
Here is a quick overview of how the integration process works:
1. The user goes to your website. In this case, they are not already a member, so they must purchase access to the online content. They click a link (usually'Buy Now') which provides them with an online purchase form. Your online credit card clearer will be able to give you a template of the 'purchase form'.
2. The user fills out the form with their information (including billing address and credit card information), and then clicks 'submit'. This process posts (aka'gives') the form to the online credit card clearer.
3. The online credit card clearer ensures that the information is valid, subsequently charging the credit card. Then the online credit card clearer posts theusername,password, and expiration date to the SubscriptiX integration script, which you have, by now, put on your website server.
4. Upon receiving the information (username,password, and expiration date) from the credit card clearer, the SubscriptiX integration script adds the newuser to the AuthentiX internal database.
5. The next time the user goes to the website, they will gain access by simply typing in their usernames and password (Cookie Based authentication doesnot require the user to enter in their username/password. They will be allowed access only if they have the correct cookie). When the expiration day comes,
their access status is changed within the AuthentiX database.
So what have we accomplished? Using AuthentiX, we have password protected our distant learning web content. Your students can change their ownpasswords, email forgotten passwords to themselves, and even pay for their classes online! Now you can focus on the most important part of your website- content development.
DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc.
The content provided is intended for entertainment and/or educational purposes in order to introduce to thereader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-
world tactics for security and implementation of best practices. We are not liable for any negativeconsequences that may result from implementing any information covered in our articles or tutorials. If this
is a hardware review, it is not recommended to open and/or modify your hardware.
More ASP.NET Code Articles
This is a updated demo to create form wizard using an aspx page and code-behind in VB.NET
Select a tablename to create a .NET form for:
Select theColumns used for generating the form.
http://www.aspfree.com/c/b/ASP.NET-Code/http://www.aspfree.com/c/b/ASP.NET-Code/ -
8/9/2019 Some of Files In
2/5
Copy this code into a new ASP.NET page
Imports SystemImports System.TextImports System.IOImports System.DataImports System.Data.SqlClientImports System.ConfigurationImports System.WebImports System.Web.UI.WebControlsImports System.Web.UI.HTMLControlsImports Microsoft.VisualBasic
Public Class createformcode: Inherits System.Web.UI.Page
Protected WithEvents TextBox1 As System.Web.UI.WebControls.TextBoxProtected WithEvents MyDataGrid As System.Web.UI.WebControls.DataGridProtected WithEvents taResults As System.Web.UI.HtmlControls.HtmlTextAreaProtected WithEvents pnlTextarea As System.Web.UI.WebControls.PanelProtected WithEvents myPanel As System.Web.UI.WebControls.PanelProtected WithEvents tblList As System.Web.UI.WebControls.DropDownListProtected WithEvents GetTable As System.Web.UI.WebControls.ButtonProtected WithEvents btnSubmit As System.Web.UI.WebControls.Button
Dim sqlText As StringDim ds As New DataSet()Dim dbComm As New SqlDataAdapter()
Dim conn As SqlConnectionDim sqlServer As String
Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
sqlServer = GetSqlConn()conn = New SqlConnection(sqlServer)If Not IsPostBack ThensqlText = "select id, name from sysobjects where xtype='U' order by name"dbComm = New SqlDataAdapter(sqlText, conn)dbComm.Fill(ds, "AllTables")tblList.DataSource = ds.Tables("AllTables").DefaultViewtblList.DataTextField = "name"tblList.DataValueField = "name"tblList.DataBind()End IfEnd Sub
Function CreateValidator(ByVal myName As String) As StringDim mySB As StringBuilder = New StringBuilder()
REM -- use :: as placeholdersmySB.Append("This Required Field!")
mySB.Replace(":Name:", "vld" & myName) 'add the validator namemySB.Replace(":control:", "at" & myName) 'add the control namemySB.Replace(":errMsg:", myName & " is required")
Return mySB.ToString()
-
8/9/2019 Some of Files In
3/5
End Function
Function GetSqlConn() As StringDim DSN As String = ConfigurationSettings.AppSettings("DSN")Return DSNEnd Function
Sub GetTable_Click(ByVal sender As Object, ByVal e As EventArgs)Dim sqlText As String
sqlText = "SELECT syscolumns.name, syscolumns.isnullable FROM sysobjects INNER JOIN syscolumns ON sysobjects.id = syscolumns.id wheresysobjects.name = '" & tblList.SelectedItem.Text & "' ORDER BY syscolumns.colid"
REM -- Connect to SQLdbComm = New SqlDataAdapter(sqlText, conn)
REM -- Fill DataSetdbComm.Fill(ds, "TestData")MyDataGrid.DataSource = ds.Tables("TestData").DefaultViewMyDataGrid.DataBind()
REM -- Show the resultsmyPanel.Visible = True
End Sub
Public Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Dim i As IntegerDim _item As DataGridItemDim dr As DataRowDim sb As StringBuilder = New StringBuilder()Dim strOutput As String
REM -- Auto Generate The Formsb.Append("" & chr(13) & chr(10))sb.Append(" ")
For i = 0 To MyDataGrid.Items.Count - 1REM -- Get the checkbox
_item = MyDataGrid.Items(i)Dim addCheckBox As CheckBox = Ctype(_item.FindControl("chkAdd"), CheckBox)Dim validCheckBox As CheckBox = Ctype(_item.FindControl("chkValid"), CheckBox)
If addCheckBox.Checked Thensb.Append(" " & chr(13))sb.Append(" " & _item.Cells(1).Text & "" & chr(13))sb.Append(" ")sb.Append("")
'create a validator controlIf validCheckBox.Checked Thensb.Append(" " & vbCrLf & CreateValidator(_item.Cells(1).Text))End If
sb.Append("" & chr(13)) 'sb.Append(" " & chr(13)) ' close out the rowEnd If
Nextsb.Append(" " & chr(13)) ' close out the rowsb.Append(" " & vbCrLf)sb.Append(" " & chr(13)) ' close out the row
sb.Append(" " & chr(13))sb.Append(vbCrLf & "")strOutput = sb.ToString()strOutput = System.Web.HttpUtility.HtmlEncode(strOutput)taResults.Value = strOutput
pnlTextarea.Visible = TrueEnd Sub
Private Sub InitializeComponent()
End Sub
-
8/9/2019 Some of Files In
4/5
End Class
How to send email from asp+pages
This is code to do such things
Top of Form
Sub Page_load(Sender as Object, E as EventArgs)
If request.form("EmailAddress") = "" Thendim strResponse as string = "Send Email using ASP.NET formatted in HTML"lblMessage.Text = strResponseElsedim strResponse as string = "You just sent an email message formatted in HTML to:
" & request("EmailAddress") & ""lblMessage.Text = strResponseEnd IfEnd Sub
Sub btn_Click(sender as Object, e as System.EventArgs)
If request.form("EmailAddress") ""Dim mail As New MailMessagemail.From = "[email protected]"mail.To = request.form("EmailAddress")mail.Subject = "Message sent using ASP.NET and CDONTS"mail.Body = "HTML Message sent from ASPFree.com using ASP.NET and Cdonts
Wonder how this isdone?
Wonder How to setup CDONTS?"mail.BodyFormat = MailFormat.HtmlSmtpMail.SmtpServer = "LocalServerName"SmtpMail.Send(mail)End IfEnd SubSending Email via ASP.NET and CDONTS..How do I setup my server to use CDONTS?
Email Address:
Bottom of Form
This article shows how to pass a string of text from a TEXTBOX server control to a routine that replaces words in the string. This is handy in replacing
words before they get committed to the database, email or where ever this text is being sent. A dataset is created to and uses the READXML method toread an XML file into the newly created dataset to compare the words.
Here is the code:
Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.LoadIf Page.IsPostBack ThenDim w As String = Request.Form("TextBox1")
-
8/9/2019 Some of Files In
5/5