Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert a new record
Message
From
21/07/2008 15:00:02
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
21/07/2008 14:04:13
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
ASP.NET
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01332893
Message ID:
01332921
Views:
6
Sebastian,

Everyone can see your question when you reply so no need to ask it again seperate. Maybe you didn't intend to.
Tim

>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 Amigos...
Timothy Bryan
Previous
Reply
Map
View

Click here to load this message in the networking platform