I need a tool!!

Posts   
 
    
JMichelson
User
Posts: 34
Joined: 27-Dec-2003
# Posted on: 22-Apr-2004 18:43:18   

Hi everyone.

So far, everyting with LLBLGenPro is working great. Great tool Here's my question (slightly OT)...

ASP.Net does not support two-way binding like WinForms do. To do databinding in ASP.Net, you have to go through a painfully manual process, such as:

private void Page_Load(...) ... create DataEntity de txtName.Text = de.Name ; txtAddress.Text = de.Address ; txtAge.Text = de.Age.ToString() ; ... etc.

private Save(...) ...create DataEntity de de.Name.Value = txtName.Text ; de.Address.Value = txtAddress.Text ...etc

So, all the "loading from"... and "saving to" lines are an unneccessady effort. Now, I've seen ASP.Net databinding tools on the web (www.west-wind.com), but they all require a DataSet or a DataRow object as the SourceObject.

Unfortunately, LLBL Entities are neither DataSets or DataRows. This, of course, is good. But, I've not been able to find a tool to automate the databinding process in ASP.Net that works with LLBL entities.

As anyone handled this problem? Is there a tool? Any ideas?

Thanks! Jeff

JMichelson
User
Posts: 34
Joined: 27-Dec-2003
# Posted on: 23-Apr-2004 17:57:01   

Did it myself, by modifying the code for the West Wind product that I downloaded from the website. I have two-way binding on my LLBLGen-based web forms now!

Jeff

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39613
Joined: 17-Aug-2003
# Posted on: 23-Apr-2004 18:42:44   

simple_smile cool. The url you posted brought me to a ISP called west wind, was hte url correct?

Frans Bouma | Lead developer LLBLGen Pro
JMichelson
User
Posts: 34
Joined: 27-Dec-2003
# Posted on: 25-Apr-2004 01:12:46   
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39613
Joined: 17-Aug-2003
# Posted on: 25-Apr-2004 11:56:47   

Thanks, good stuff. Others might find this useful as well simple_smile

Frans Bouma | Lead developer LLBLGen Pro
Stoop
User
Posts: 66
Joined: 28-Feb-2004
# Posted on: 25-Apr-2004 12:56:18   

Not quite on the topic, but involves databinding

I've created a class (VB - sorry if your a C# person) that allows you to create Name/Value pairs for easy databinding to comboboxes and combo lists based on a typed list. I also creates a CodeSmith (.cst) template to generate the class simply by adding a couple of parameters. I'm using DataAdapter method, but you can (& I did before) modify the code to fit into the SelfServicing way For me, at least, it works beautiful both in Win & ASP apps..

If interested - email me & I'll send the code to you: srp@webdot.com

Steve