Thanks Sol, it did unfortunatly break in medium trust :crying:, here's the stack trace -
Code:
[SecurityException: That assembly does not allow partially trusted callers.]
ASP.signup_aspx.__BuildControlFormShield2() in c:\Inetpub\wwwroot\SWSE\Signup.aspx:8
ASP.signup_aspx.__BuildControl__control4() in c:\Inetpub\wwwroot\SWSE\Signup.aspx:5
ASP.signup_aspx.__BuildControl__control3(Control __ctrl) in c:\Inetpub\wwwroot\SWSE\Signup.aspx:4
System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container) +12
ASP.sitetemplate_master.__BuildControlMainContent() in c:\Inetpub\wwwroot\SWSE\SiteTemplate.master:24
ASP.sitetemplate_master.__BuildControlTree(sitetemplate_master __ctrl) in c:\Inetpub\wwwroot\SWSE\SiteTemplate.master:1
ASP.sitetemplate_master.FrameworkInitialize() in c:\Inetpub\wwwroot\SWSE\SiteTemplate.master.cs:912307
System.Web.UI.UserControl.InitializeAsUserControlInternal() +31
System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +1978576
System.Web.UI.Page.get_Master() +48
System.Web.UI.Page.ApplyMasterPage() +18
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6953
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +154
System.Web.UI.Page.ProcessRequest() +86
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.signup_aspx.ProcessRequest(HttpContext context) in App_Web_x8j73isn.0.cs:0
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +154
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
The properties variable is quite long but there are heaps of properties (which is what I like about this control) you can set for the image which is a good thing as spambots are getting clever. There is a property for encrypting the query string, which by default is set to true for obvious reasons. Without it encrypted it looks like this -
Code:
Signup.aspx?__formShieldID=ctl00$MainContent$FormShield2&backFillStyle=Gradient&backColor=-256&backColor2=-65536&foreFillStyle=Gradient&foreColor2=-4144960&textEffect=EqualSpacingAngle&text=YGP2T5&noiseFillStyle=Hatch&noiseColor=16777215&noiseColor2=-23296&noiseLevel=20
Bookmarks