Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Desperately trying to implement Web User Controls
Message
De
14/10/2004 17:16:50
Natalie Sebastian
Great Lakes Behavioral Research Institut
Cranberry Township, Pennsylvanie, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Desperately trying to implement Web User Controls
Divers
Thread ID:
00951564
Message ID:
00951564
Vues:
45
Hello,

I've have been trying to create Web User Controls using MM. I found some code from a previous post to register the business object by casting:

private void Page_Load(object sender, System.EventArgs e)
{
page = (mmBusinessWebPage)this.Page;
this.oDocument = (Document)page.RegisterBizObj(new Document());
DataSet dsDocs = this.oDocument.GetAllDocuments();
Session["dsDocs"] = dsDocs;
}

Seemed well and good... no compile errors or run errors. BUT, when I tried to do updating of data via mmdatagrid (using the Developers guide examples), nothing happens. I click on the grid's row Edit and Delete buttons but nothing happens.
One note, i had to use my instance of Page i created to do the binding to my mmdatagrid:

page.BindControl(this.dgDocuments);

Instead of :

this.BindControl(this.dgDocuments);


Conversely, when i created the same code but on a webform the database is updated. So, this leads me to believe that my user control is totally missing something or it's impossible to do.

Anybody successfully used MM and ASP.NET web user controls? I've been toiling for days, so any advice will be much welcomed.

Thanks.
Nat
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform