Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 23rd, 2007, 11:34 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default Direct-dataset to html-like rs.getString

Hi All!!

Is there any way to convert dataset to html directly??

in classic asp
rs.getString method I can pass "<tr><td>" so that i can directly get all the data into a string , so that i can create a html table.

in asp.net
i am using a template(.htm) where i want to put that dataset-html directly.since this template isused for generating email body,that need to be sent to recipent.

to do this i alway loop through the dataset and again i have to create on stringbuilder with <tr><td> so that i can get that html table ,now it can be put in htmltemplate.

so ,my question is is there any way to convert dataset directly to html,note--I am not binding this to datagrid etc.I just want a table like <tr><td>firstame</td></td>lastname1</td></tr> etc..

any help or pointer will be great help for me.

Thanks in advance

Cheers :)

vinod
__________________
Cheers :)

vinod
 
Old November 23rd, 2007, 11:37 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

hey there.. never try something like that, but you can transform it to a xml, so maybe using an xls to transform it to what you need it's the best choice?

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========
 
Old November 24th, 2007, 06:50 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

HI Gonzalo!!
You are right , I agree with you ,I can get xml string from dataset(diffgram)

Since I want pure html table row, and I think there must be any clue or pointer becoz whtever we can do with classic asp ,we can do the same thing with .Net at some extent.
I think somewhere I am missing or .Net Actually not supports such kind of functionality .
Thanks Again for any clue or pointer.


Cheers :)

vinod





Similar Threads
Thread Thread Starter Forum Replies Last Post
DIRECT ACCESS TO DATASET FIELDS kostaskon Pro VB Databases 0 February 27th, 2008 12:54 PM
OdbcDataReader GetString Method albusr C# 1 February 19th, 2006 05:00 AM
more direct Question, need help kgoldvas XSLT 1 January 24th, 2006 09:14 AM
Direct X SDK krishnabhargav General .NET 0 September 21st, 2004 08:42 AM
RS Manager and RS Server on 2 different computers Choose File BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 1 July 22nd, 2004 10:56 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.