473,396 Members | 1,853 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Dataset and HTML

Hi All,

I am writing a program with Datagrid bind to the dataset.
and the user allow to filter and do a criteria search on that datagrid.

so the Datagrid could be display any type of data anytime.( could be order
information, could be customer information or others - depend of what user
want)

my concern is that once the user sees the type of data in Datagrid, and they
want to export out and convert to HTML format. and save in computer for
reference purpose. what should I do that ?

i am able to convert to Excel, text file so far, but having problem with
HTML.

Could someone able to assist me on that part.

what I want is just simply one click button. then the Internet Explorer will
pop up, and the datagrid data will be shown in a HTML format file in
Internet Explorer. then the user can choose to save or not save the file.

Thank you very much
Regards


Nov 18 '05 #1
12 1972
A DataGrid IS HTML. And cross-posting is bad Netiquette.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

" A-PK" <pi********@hotmail.com> wrote in message
news:uG**************@TK2MSFTNGP10.phx.gbl...
Hi All,

I am writing a program with Datagrid bind to the dataset.
and the user allow to filter and do a criteria search on that datagrid.

so the Datagrid could be display any type of data anytime.( could be order
information, could be customer information or others - depend of what user
want)

my concern is that once the user sees the type of data in Datagrid, and they want to export out and convert to HTML format. and save in computer for
reference purpose. what should I do that ?

i am able to convert to Excel, text file so far, but having problem with
HTML.

Could someone able to assist me on that part.

what I want is just simply one click button. then the Internet Explorer will pop up, and the datagrid data will be shown in a HTML format file in
Internet Explorer. then the user can choose to save or not save the file.

Thank you very much
Regards

Nov 18 '05 #2
A DataGrid IS HTML. And cross-posting is bad Netiquette.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

" A-PK" <pi********@hotmail.com> wrote in message
news:uG**************@TK2MSFTNGP10.phx.gbl...
Hi All,

I am writing a program with Datagrid bind to the dataset.
and the user allow to filter and do a criteria search on that datagrid.

so the Datagrid could be display any type of data anytime.( could be order
information, could be customer information or others - depend of what user
want)

my concern is that once the user sees the type of data in Datagrid, and they want to export out and convert to HTML format. and save in computer for
reference purpose. what should I do that ?

i am able to convert to Excel, text file so far, but having problem with
HTML.

Could someone able to assist me on that part.

what I want is just simply one click button. then the Internet Explorer will pop up, and the datagrid data will be shown in a HTML format file in
Internet Explorer. then the user can choose to save or not save the file.

Thank you very much
Regards

Nov 18 '05 #3
You could encapsulate the datagrid in a span and just copy the contents
of the span to the new window. Ideally I'd recommend having the data in
an XML form and then have stylesheets work with the data in different
formats
HTH

A-PK wrote:
Hi All,

I am writing a program with Datagrid bind to the dataset.
and the user allow to filter and do a criteria search on that datagrid.

so the Datagrid could be display any type of data anytime.( could be order
information, could be customer information or others - depend of what user
want)

my concern is that once the user sees the type of data in Datagrid, and they
want to export out and convert to HTML format. and save in computer for
reference purpose. what should I do that ?

i am able to convert to Excel, text file so far, but having problem with
HTML.

Could someone able to assist me on that part.

what I want is just simply one click button. then the Internet Explorer will
pop up, and the datagrid data will be shown in a HTML format file in
Internet Explorer. then the user can choose to save or not save the file.

Thank you very much
Regards


--
Regards,
Dilip Krishnan
MCAD, MCSD.net
dilipdotnet at apdiya dot com
Nov 18 '05 #4
You could encapsulate the datagrid in a span and just copy the contents
of the span to the new window. Ideally I'd recommend having the data in
an XML form and then have stylesheets work with the data in different
formats
HTH

A-PK wrote:
Hi All,

I am writing a program with Datagrid bind to the dataset.
and the user allow to filter and do a criteria search on that datagrid.

so the Datagrid could be display any type of data anytime.( could be order
information, could be customer information or others - depend of what user
want)

my concern is that once the user sees the type of data in Datagrid, and they
want to export out and convert to HTML format. and save in computer for
reference purpose. what should I do that ?

i am able to convert to Excel, text file so far, but having problem with
HTML.

Could someone able to assist me on that part.

what I want is just simply one click button. then the Internet Explorer will
pop up, and the datagrid data will be shown in a HTML format file in
Internet Explorer. then the user can choose to save or not save the file.

Thank you very much
Regards


--
Regards,
Dilip Krishnan
MCAD, MCSD.net
dilipdotnet at apdiya dot com
Nov 18 '05 #5
Kevin -- er-- MVP -- you like slamming people, but you are short on
solutions.
Is that what a 'MVP' is all about? Acting like a know-it-all and
criticizing anyone who's question you don't approve of. Give this guy a
decent answer boy.
And while you're at it boy, give me a decent answer on how an ascx control
can call a function on the parent that returns a value to the ascx control.
You accused me of not 'optimizing my time' because I didn't want to spend
an hour+ sifting thru MSDN to look for an answer, remember?

I wonder if you're the way you are because you're representing Microsoft....
:)
Nov 18 '05 #6
Kevin -- er-- MVP -- you like slamming people, but you are short on
solutions.
Is that what a 'MVP' is all about? Acting like a know-it-all and
criticizing anyone who's question you don't approve of. Give this guy a
decent answer boy.
And while you're at it boy, give me a decent answer on how an ascx control
can call a function on the parent that returns a value to the ascx control.
You accused me of not 'optimizing my time' because I didn't want to spend
an hour+ sifting thru MSDN to look for an answer, remember?

I wonder if you're the way you are because you're representing Microsoft....
:)
Nov 18 '05 #7
Pierce,
when the datagrid displays in the webpage, it is rendered as html. .NET
takes the serverside code and converts it to html and javascript. If the
user goes to 'File, Save' in the browser, the page with the datagrid can be
saved to a location on the computer. No 'export' function / code is
necessary. Later, the user can go back to it anytime and view it in IE --
try it.

Good luck
Jason Shohet
Nov 18 '05 #8
Pierce,
when the datagrid displays in the webpage, it is rendered as html. .NET
takes the serverside code and converts it to html and javascript. If the
user goes to 'File, Save' in the browser, the page with the datagrid can be
saved to a location on the computer. No 'export' function / code is
necessary. Later, the user can go back to it anytime and view it in IE --
try it.

Good luck
Jason Shohet
Nov 18 '05 #9
I don't "like slamming people." And I certainly DON'T represent Microsoft. I
gave you the answer: A datagrid IS HTML in the client. Sorry if you're not
happy about that, but it is simply the truth. And I have answered your other
question as well. Take a look.

You missed my point about the other question as well. If you've spent 24
hours looking for an answer, you certainly have an hour to research your
issue on MSDN. In fact, the entire .Net SDK is a free download from
Microsoft. You can download it, install it onyour machine, and use it to
your heart's content. I use it every day, many times a day. Here's the URL,
so you don't have to look it up:

http://www.microsoft.com/downloads/d...displaylang=en

Note that I didn't accuse you of anything in my replies. But you are
name-calling now. So, who's slamming whom? I didn't even mention the fact
that cross-posting is bad Netiquette. It would have helped you out if I had,
and if you had listened to me. Bad Netiquette will get you LESS help rather
than more. Offend enough people and you will find yourself out of a
resource.

How many people do YOU help a day?

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

" Jason Shohet" <as****@hotmail.com> wrote in message
news:OK**************@TK2MSFTNGP10.phx.gbl...
Kevin -- er-- MVP -- you like slamming people, but you are short on
solutions.
Is that what a 'MVP' is all about? Acting like a know-it-all and
criticizing anyone who's question you don't approve of. Give this guy a
decent answer boy.
And while you're at it boy, give me a decent answer on how an ascx control
can call a function on the parent that returns a value to the ascx control. You accused me of not 'optimizing my time' because I didn't want to spend
an hour+ sifting thru MSDN to look for an answer, remember?

I wonder if you're the way you are because you're representing Microsoft.... :)

Nov 18 '05 #10
I don't "like slamming people." And I certainly DON'T represent Microsoft. I
gave you the answer: A datagrid IS HTML in the client. Sorry if you're not
happy about that, but it is simply the truth. And I have answered your other
question as well. Take a look.

You missed my point about the other question as well. If you've spent 24
hours looking for an answer, you certainly have an hour to research your
issue on MSDN. In fact, the entire .Net SDK is a free download from
Microsoft. You can download it, install it onyour machine, and use it to
your heart's content. I use it every day, many times a day. Here's the URL,
so you don't have to look it up:

http://www.microsoft.com/downloads/d...displaylang=en

Note that I didn't accuse you of anything in my replies. But you are
name-calling now. So, who's slamming whom? I didn't even mention the fact
that cross-posting is bad Netiquette. It would have helped you out if I had,
and if you had listened to me. Bad Netiquette will get you LESS help rather
than more. Offend enough people and you will find yourself out of a
resource.

How many people do YOU help a day?

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

" Jason Shohet" <as****@hotmail.com> wrote in message
news:OK**************@TK2MSFTNGP10.phx.gbl...
Kevin -- er-- MVP -- you like slamming people, but you are short on
solutions.
Is that what a 'MVP' is all about? Acting like a know-it-all and
criticizing anyone who's question you don't approve of. Give this guy a
decent answer boy.
And while you're at it boy, give me a decent answer on how an ascx control
can call a function on the parent that returns a value to the ascx control. You accused me of not 'optimizing my time' because I didn't want to spend
an hour+ sifting thru MSDN to look for an answer, remember?

I wonder if you're the way you are because you're representing Microsoft.... :)

Nov 18 '05 #11
hey Tom

then if i want to click one button and run the HTML file. that the HTML must
contain the lastest dataset that I just generated, then how should I do.
"<<Tom>>" <__*******@albatross.com> wrote in message
news:et**************@TK2MSFTNGP10.phx.gbl...
Pierce,
when the datagrid displays in the webpage, it is rendered as html. .NET
takes the serverside code and converts it to html and javascript. If the
user goes to 'File, Save' in the browser, the page with the datagrid can be saved to a location on the computer. No 'export' function / code is
necessary. Later, the user can go back to it anytime and view it in IE --
try it.

Good luck
Jason Shohet

Nov 18 '05 #12
A-PK wrote:

what I want is just simply one click button. then the Internet Explorer
will pop up, and the datagrid data will be shown in a HTML format file in
Internet Explorer. then the user can choose to save or not save the file.


If you were using Linux, you wouldn't have to care about proprietary file
formats, and just export it to XML which can be read by Open Office Calc.

--
W '04 <:> Open
Nov 18 '05 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: John Holmes | last post by:
I have a web interface where the user types in ID's one at a time. After an ID is typed in, a button is clicked and the button click event has code that does a query and returns a data reader and...
4
by: Marc Castrechini | last post by:
Forgive any bad terms. New to .Net development My business layer has something similiar to this class Accoun private m_Notes as Note( ' Get Mehod .. end clas
12
by: Bishoy George | last post by:
I have a dataset called ds1 filled with 2 tables Employees and Customers from Northwind database. I have dropdownList called ddLastName with the following properties: ddLastName.DataSource =...
12
by: Marc | last post by:
I have used XMLDataToString = DataSetForXML.GetXml() to get an XML string from a dataset. I am looking for a way to create a dataset from this XML string. I tried...
3
by: nashak | last post by:
Hello, ASP.NET pages are disconnected html pages i.e once page is sent to the browser, that is it. Let's say that I have a datagrid on my page and I have used a dataset to fill this grid only...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.