Information générale
Catégorie:
The Mere Mortals .NET Framework
Titre:
Desperately trying to implement Web User Controls
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement