My favorites | Sign in
Project Logo
                
Search
for
Updated Jul 14, 2008 by fmavituna
Labels: snippet, Featured
SampleUsage  
Sample usage for NetBouncer

Be sure your XML Configuration is right, if you're going to control your configuration from .config files (recommended).

These are not brilliant examples, I'm working on a sample website where you can see actual more real world examples.

Even though NetBouncer allows you to do the same in so many different ways in examples I'll try to stick with best practices. There are lots of shortcuts to cut down coding time and provide a nice usage experience.

Simple Examples

NetBouncer.QueryStringAsInteger("productId2", RuleSets.IntegerSet).IsValid()
NetBouncer.QuerystringAsInteger("productId1", MyCustomRuleSet).IsValid()
Dim ProductName As New Parameter("Name", ProductRule)
Response.Write(ProductName.IsValid())
Dim ProductId As Parameter(Of String, Integer) = NetBouncer.GetInstance().QuerystringAsInteger("productId3", RuleSets.IntegerSet)
If ProductId.IsValid() Then
   Response.Write(ProductId.Value)
End If


Sign in to add a comment
Hosted by Google Code