Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How get resulting HTML of datagrid

Reply
Thread Tools

How get resulting HTML of datagrid

 
 
VB Programmer
Guest
Posts: n/a
 
      08-04-2004
I have a databound datagrid on an aspx form. How can I get the resulting
html that is generated via code? I want to response.write the html results
(of the dg) to the end of another html page.

Any ideas?


 
Reply With Quote
 
 
 
 
Juno
Guest
Posts: n/a
 
      08-04-2004
Hi,

datagrid is transferred to a table in client side, so if you want html code
in client, use outerHTML property of that table to get whole html code.

--
Juno
MCSD.NET, MCDBA, MCSE
----------------------------------------------------------
Support Team of EasyDotNet, INC. http://www.EasyDotNet.com
DataForm.NET - The most powerful data entry web server control for ASP.NET



"VB Programmer" <Dont*NoSpam-Please*@jEmail.com> wrote in message
news:(E-Mail Removed)...
> I have a databound datagrid on an aspx form. How can I get the resulting
> html that is generated via code? I want to response.write the html

results
> (of the dg) to the end of another html page.
>
> Any ideas?
>
>



 
Reply With Quote
 
 
 
 
Steve C. Orr [MVP, MCSD]
Guest
Posts: n/a
 
      08-04-2004
Use the DataGrid.RenderControl method.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net


"VB Programmer" <Dont*NoSpam-Please*@jEmail.com> wrote in message
news:(E-Mail Removed)...
> I have a databound datagrid on an aspx form. How can I get the resulting
> html that is generated via code? I want to response.write the html

results
> (of the dg) to the end of another html page.
>
> Any ideas?
>
>



 
Reply With Quote
 
VB Programmer
Guest
Posts: n/a
 
      08-04-2004
Thanks. Let me clarify what I'm trying to do:

I have a class which opens, reads, then writes the contents of a given HTML
file to the browser. Basically, all it does is display the HTML file. The
catch is that there could be dynamic "keywords" scattered throughout the
HTML, such as [Company], or [StreetAddress], etc.... My class, when it
encounters these "keywords" during it's read, will do the necessary
processing (which may include db lookups, etc...) and then will dynamically
replace the keyword with the proper result, such as "ACME" for company name.
A large HTML string is basically being built up, then a simple
Response.Write will output the page. (If you were to view the ASPX page
(that calls this class) in the Designer it is blank because the page is
being created on the fly.)

Here's the issue...
One of the keywords that may be encountered is "[StatTable]". When this is
encountered I need to populate a datagrid on the fly with data from the db
and output the pure HTML to the screen.

Any ideas?
Are you all totally confused?

"Steve C. Orr [MVP, MCSD]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Use the DataGrid.RenderControl method.
>
> --
> I hope this helps,
> Steve C. Orr, MCSD, MVP
> http://Steve.Orr.net
>
>
> "VB Programmer" <Dont*NoSpam-Please*@jEmail.com> wrote in message
> news:(E-Mail Removed)...
> > I have a databound datagrid on an aspx form. How can I get the

resulting
> > html that is generated via code? I want to response.write the html

> results
> > (of the dg) to the end of another html page.
> >
> > Any ideas?
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How send email of resulting aspx page? VB Programmer ASP .Net 5 04-19-2005 03:48 AM
problems with decoding: resulting image is corrupt Bjorn Jensen Perl 2 03-22-2005 06:52 PM
SHA1 length of resulting hash Dil via .NET 247 ASP .Net 0 08-04-2004 12:53 PM
ASP Control names in resulting HTML Anatoli Trifonov ASP .Net 5 06-07-2004 05:36 PM
Setting a Range Parameter in a crystal report and streaming resulting report as a pdf James Wallace ASP .Net 0 10-17-2003 04:42 PM



Advertisments