General information
Category:
The Mere Mortals .NET Framework
I try to insert a new record in a base SQL Server 2005, being still the guide.
In the page_load Event:
Me.oOrigen = CType(Me.RegisterBizObj(New Origen), Origen)
Me.IdOrigen = Integer.Parse(Request.QueryString("IdOrigen"))
Me.oOrigen.OrigenGetByID(Me.IdOrigen)
Session("dsOrigen") = oOrigen.DataSet
To insert:
Dim ds As DataSet = CType(Session("dsOrigen"), DataSet)
Me.oOrigen.NewRow(ds, Me.oOrigen.TableName)
Session("ds") = dsOrigen
To Save:
Dim ds As DataSet = CTyThpe(Session("dsOrigen"), DataSet)
If Me.Save(Me.oOrigen, ds, Me.oOrigen.TableName) = mmSaveDataResult.RulesPassed Then
Response.Redirect("OrigenCrud.aspx")
End If
Display that error:
System.NullReferenceException was unhandled by user code
Message="Referencia a objeto no establecida como instancia de un objeto."
Source="OakLeaf.MM2008.Framework"
Thank for your time
...Saludos Amigo...
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only