This topic is locked

Trial Version Limited

3/14/2007 2:27:10 PM
ASPRunner.NET General questions
A
asiddle author

Can anyone tell me...is the trail limited in any way? Reason I ask is because I have applied an event so that when you go to the add page and add a new db item it does a pre insert check to make sure there is no other record like it. Only when I build the code I get an error that the event does not exist (not declared) and when looking at the code the CompanyDetails_Events.BeforeAdd is no where to be seen. Is this a bug or limitation?
Compiler Error Message: BC30451: Name 'CompanyDetails_Events' is not declared.

Line 67: Protected Sub CompanyDetailsSqlDataSource_Inserting(ByVal sender As Object, ByVal e As SqlDataSourceCommandEventArgs)

Line 68:

Line 69: e.Cancel = (Not CompanyDetails_Events.BeforeAdd(Page, e))

Line 70:

Line 71: End Sub
Thanks

Eugene 3/15/2007

Trial version is fully functional. Please download update http://www.asprunner.net/source.zip and unzip it into the directory where ASPRunner.NET is installed (C:\Program Files\ASPRunner.NET\). It should help you to solve your problem.

A
asiddle author 3/15/2007

Ok so new code installed. new error
Exception Details: System.Data.SqlClient.SqlException: Invalid object name 'AnyTable'.
Source Error:
on add new with a check table for duplicate
So changed the any table to db name and now it shows record inserted despite there already being a record
'Check if specific record exists
Dim sqlSelect As String = "select [CompName] from [dbo].[CompanyDetails] where [CompName]=@parAnyColumn"

Eugene 3/19/2007

I didn't understand anythning. Do you get error "Exception Details: System.Data.SqlClient.SqlException: Invalid object name 'AnyTable'." when add new Events?

Please, send me full code of your event, where you have this error.