Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Desperately trying to implement Web User Controls
Message
From
14/10/2004 17:16:50
Natalie Sebastian
Great Lakes Behavioral Research Institut
Cranberry Township, Pennsylvania, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Desperately trying to implement Web User Controls
Miscellaneous
Thread ID:
00951564
Message ID:
00951564
Views:
44
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
Map
View

Click here to load this message in the networking platform