LINQDATASOURCE:
Protected Sub LessonTypeLinqDataSource_Inserting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.LinqDataSourceInsertEventArgs) Handles LessonTypeLinqDataSource.Inserting
Dim lessonType As New dstroke_LessonType
lessonType.ModuleID = ModuleId
End Sub
SQLDATASOURCE:
Protected Sub LessonTypeSqlDataSource_Inserting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceCommandEventArgs) Handles LessonTypeSqlDataSource.Inserting
e.Command.CreateParameter.Value = ModuleId
Dim sqlea As SqlDataSource = LessonTypeSqlDataSource
sqlea.InsertParameters("ModuleID") = e.Command.CreateParameter.Value
End Sub
ASKER
The successor to Active Server Pages, ASP.NET websites utilize the .NET framework to produce dynamic, data and content-driven web applications and services. ASP.NET code can be written using any .NET supported language. As of 2009, ASP.NET can also apply the Model-View-Controller (MVC) pattern to web applications
TRUSTED BY
ASKER
An SqlParameter with ParameterName 'ModuleId' is not contained by this SqlParameterCollection.
the ascx source code has the declaration I think.
Open in new window