Académique Documents
Professionnel Documents
Culture Documents
This is the best reason to password protect your online content using AuthentiX. By integrating with preferred online credit card clearers , you can
automatically add students to your AuthentiX database once their credit card has been charged. The AuthentiX database is updated with the users
expiration 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 on
your server - after you have arranged for service through the clearer, of course.
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 the
username,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 new
user 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 does
not 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 own
passwords, 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 the
reader 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 negative
consequences 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
</ItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn HeaderText="Name" DataField="name" />
<asp:TemplateColumn HeaderText="Create Validator?">
<ItemTemplate>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:datagrid>
<asp:Button id="Button1" onclick="btnSubmit_Click" runat="server" Text="Create Form"></asp:Button> </asp:panel>
<asp:panel id="pnlTextarea" visible="false" runat="server">
<P>Copy this code into a new ASP.NET page</P>
<TEXTAREA id="taResults" name="taResults" rows="40" cols="90" runat="server"> </asp:panel> </form> </body> </html>
</TEXTAREA>
</asp:panel>
</form>
</body>
</HTML>
Imports System
Imports System.Text
Imports System.IO
Imports System.Data
Imports System.Data.SqlClient
Imports System.Configuration
Imports System.Web
Imports System.Web.UI.WebControls
Imports System.Web.UI.HTMLControls
Imports Microsoft.VisualBasic
sqlServer = GetSqlConn()
conn = New SqlConnection(sqlServer)
If Not IsPostBack Then
sqlText = "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").DefaultView
tblList.DataTextField = "name"
tblList.DataValueField = "name"
tblList.DataBind()
End If
End Sub
Return mySB.ToString()
End Function
End Sub
Dim i As Integer
Dim _item As DataGridItem
Dim dr As DataRow
Dim sb As StringBuilder = New StringBuilder()
Dim strOutput As String
For i = 0 To MyDataGrid.Items.Count - 1
REM -- 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 Then
sb.Append(" <tr>" & chr(13))
sb.Append(" <td>" & _item.Cells(1).Text & "</td>" & chr(13))
sb.Append(" <td>")
sb.Append("<asp:textbox id=""at" & _item.Cells(1).Text & """ runat=""server"" />")
Next
sb.Append(" <tr>" & chr(13)) ' close out the row
sb.Append(" <td colspan=""2""><asp:button id=""button1"" Text=""Validate Form"" runat=""Server"" /></td>" & vbCrLf)
sb.Append(" </tr>" & chr(13)) ' close out the row
sb.Append(" </table>" & chr(13))
sb.Append(vbCrLf & "</form>")
strOutput = sb.ToString()
strOutput = System.Web.HttpUtility.HtmlEncode(strOutput)
taResults.Value = strOutput
pnlTextarea.Visible = True
End Sub
End Sub
End Class
End Sub
</script>
<html>
<head>
</head>
<body>
<h1 align="center">Sending Email via ASP.NET and CDONTS..</h1>
<b><a href="/aspnet/setupcdonts.aspx">How do I setup my server to use CDONTS?</a></b>
<br />
<br />
<a href="/allzips/emaildotnet.zip"><img src="http://aspfree.com/images/downloadcode.gif" border="0"></a>
<br />
<br />
<asp:Label id="lblMessage" Font-Name="Verdana" Width="400px" BorderStyle="solid" BorderColor="#cccccc" runat="server"/>
badWordsDS.ReadXml(Server.Mappath("badwords.xml"))
Dim ct As Integer
ct = badWordsDS.Tables(0).Rows.Count
label2.text = "Amount of Records in XML file: <b>" & ct.ToString() & "</b>"
Return mytext
End Function
</script>
<html>
<head>
<title>Replace text using XML File</title>
</head>
<body>
<form id="Form1" method="post" runat="server">
<asp:TextBox id="TextBox1" runat="server"></asp:TextBox>
<br />
<asp:Button id="Button1" runat="server" Text="Button"></asp:Button>
<br />
<b>Textbox data</b>
<br />
<asp:Label id="Label1" runat="server">Statement with Replaced words</asp:Label>
<br />
<br />
<b>Amount of records in XML file</b>
<br />
<asp:Label id="Label2" runat="server">Amount of Words in XML file</asp:Label>
</form>
</body>
</html>