Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert a new record
Message
De
21/07/2008 15:00:02
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
21/07/2008 14:04:13
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
ASP.NET
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01332893
Message ID:
01332921
Vues:
7
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform