Returning Dataset to ASP.NET from .NET Component / Business Object Serialization 
Author Message
 Returning Dataset to ASP.NET from .NET Component / Business Object Serialization

Is returning a Dataset to an ASP.NET page as a result of a .NET Component
method call a performance 'nono'? Most of my recent application serialize
and
results to the Presentation tier as XML. Will .NET finally give me the
ability to
return Data Objects to my ASP code without horrific performance degradation?

NOTE: I am also looking for a .NET substitute for using Property Bags to
serialize
data between Business Objects. Any ideas or references would be appreciated.

Thanks in advance,

Jose de Castro
System Analyst
Idagen Consulting



Sat, 03 Apr 2004 13:56:31 GMT  
 Returning Dataset to ASP.NET from .NET Component / Business Object Serialization
Yes. In ASP.NET you have two choices.

1. Code in the ASP.NET page
2. Code in the CodeBehind file, which is a class file.

The page and the CodeBehind file are rather intimately linked, as the page
will inherit from it. The upside of ASP.NET (or rather ADO.NET) is you have
the choice of coding an object that is strictly a forward only cursor
(DataReader). These are optimized by access type (ie, SQL Server is designed
for SQL Server only). The DataSet, which is a Recordset (plus much more -
can be a mini-relational database), is more full featured, but has more
baggage.

For remote data, you can serialize the dataSet into XML. .NET will actually
do most of the legwork for you when it comes to serialization. Since
Microsoft has already written much of the code in the Framework, it is
fairly well optimized.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
Author: ADO.NET and XML: ASP.NET on the Edge (4Q 2001)

*************************************************************************
Think Outside the Box!
*************************************************************************


Quote:
> Is returning a Dataset to an ASP.NET page as a result of a .NET Component
> method call a performance 'nono'? Most of my recent application serialize
> and
> results to the Presentation tier as XML. Will .NET finally give me the
> ability to
> return Data Objects to my ASP code without horrific performance
degradation?

> NOTE: I am also looking for a .NET substitute for using Property Bags to
> serialize
> data between Business Objects. Any ideas or references would be
appreciated.

> Thanks in advance,

> Jose de Castro
> System Analyst
> Idagen Consulting




Sun, 04 Apr 2004 00:59:16 GMT  
 Returning Dataset to ASP.NET from .NET Component / Business Object Serialization

Quote:
> NOTE: I am also looking for a .NET substitute for using Property Bags to
> serialize data between Business Objects. Any ideas or references would be
> appreciated.

Jose,

Check this Rockford Lhotka article out at MS's MSDN site. This should
provide a lot of the answers to your serialization needs.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnad...
ml/vbnet09252001.asp?frame=true

(Note: watch for line breaks in the above URL)

HTH,
Cal



Sun, 04 Apr 2004 01:07:26 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Passing Form Fields to VB.NET Custom Business Object in an ASP.NET Code Behind Page

2. debugging vb.net upgraded component in asp.net

3. ActiveX Component Can't Create Object Exception in ASP.Net

4. Problem passing VB COM+ ASP Request object to .NET component System.Web.HTTPRequest through COM interop

5. N-tier sample app in VB.NET showcasing Business Entity Components

6. ADO.NET with ASP.NET using VB.NET

7. Survey on ASP/VS6.0 versus ASP.NET/VS.NET

8. Visual Basic.NET , ASP or ASP.NET

9. VB6/ASP vs .NET/ASP.NET development

10. Returning an object with sub objects from vb component (COM) to ASP

11. ASP Request Object into ASP.Net

12. VB.NET business objects and COM+

 

 
Powered by phpBB® Forum Software