Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > LLBLGen Pro Runtime Framework> I need a tool!!
 

Pages: 1
LLBLGen Pro Runtime Framework
I need a tool!!
Page:1/1 

  Print all messages in this thread  
Poster Message
JMichelson
User



Location:
Westminster, MD
Joined on:
27-Dec-2003 18:31:51
Posted:
34 posts
# 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
  Top
JMichelson
User



Location:
Westminster, MD
Joined on:
27-Dec-2003 18:31:51
Posted:
34 posts
# 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


  Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37313 posts
# Posted on: 23-Apr-2004 18:42:44.  
Regular Smiley cool. The url you posted brought me to a ISP called west wind, was hte url correct?
Frans Bouma
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
JMichelson
User



Location:
Westminster, MD
Joined on:
27-Dec-2003 18:31:51
Posted:
34 posts
# Posted on: 25-Apr-2004 01:12:46.  
Here you are.

http://www.west-wind.com/presentations/aspnetdatabinding/aspnetdatabinding.asp

Jeff


  Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37313 posts
# Posted on: 25-Apr-2004 11:56:47.  
Thanks, good stuff. Others might find this useful as well Regular Smiley
Frans Bouma
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
Stoop
User



Location:
Reno, Nevada
Joined on:
28-Feb-2004 12:01:28
Posted:
66 posts
# 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


  Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.12172008 Final.