General information
Category:
The Mere Mortals .NET Framework
Title:
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
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