PC Review


Reply
Thread Tools Rate Thread

c# asp.net Gridview in html source table tr td are in different li

 
 
Mahavir Shah
Guest
Posts: n/a
 
      2nd Sep 2008
hi,

in c# asp.net gridview when we see page running, and check it's source.

you can see that it has something like this at gridview table

</tr><tr>
<td>22/06/2007</td><td>45000</td>
</tr><tr>
<td>22/06/2007</td><td><50000></td>

so you can view that between each <tr> and <td> there is lots of space.
which is increasing size of rendered html page at more records dramatically.

please tell me solution to tied them combined. or something that can help
reduce size.
 
Reply With Quote
 
 
 
 
Eliyahu Goldin
Guest
Posts: n/a
 
      2nd Sep 2008
Likely there are no spaces at all, it is just your viewer that makes
separate lines.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


"Mahavir Shah" <Mahavir (E-Mail Removed)> wrote in message
news:4F6E2C78-F769-4E0B-8A6B-(E-Mail Removed)...
> hi,
>
> in c# asp.net gridview when we see page running, and check it's source.
>
> you can see that it has something like this at gridview table
>
> </tr><tr>
> <td>22/06/2007</td><td>45000</td>
> </tr><tr>
> <td>22/06/2007</td><td><50000></td>
>
> so you can view that between each <tr> and <td> there is lots of space.
> which is increasing size of rendered html page at more records
> dramatically.
>
> please tell me solution to tied them combined. or something that can help
> reduce size.



 
Reply With Quote
 
Mahavir Shah
Guest
Posts: n/a
 
      3rd Sep 2008
hi,

yes, you are right. i want to suppress those CRs and White spaces. actually
our report can not have pagination because of it's nature. i have to show all
records at once. this CRs and white space taking space more than record
itself. so not because of large no of records, page size is increased because
of this CRs and white spaces.

i just want to remove those CRs as we can do it if we manually create table
in Classic ASP.

any other solution is also welcome.

"Patrice" wrote:

> Do you mean you would like to suppress carriage returns or that you see
> white spaces in the rendered page ??
>
> If CRs and you have so much records that this is problematic so it's likely
> that it won't solve the problem. Usually rendering too much records just
> create a huge page so the usual solution is to enable pagination and/or to
> provide filtering capabilities.
>
> --
> Patrice
>
> "Mahavir Shah" <Mahavir (E-Mail Removed)> a crit dans le
> message de groupe de discussion :
> 4F6E2C78-F769-4E0B-8A6B-(E-Mail Removed)...
> > hi,
> >
> > in c# asp.net gridview when we see page running, and check it's source.
> >
> > you can see that it has something like this at gridview table
> >
> > </tr><tr>
> > <td>22/06/2007</td><td>45000</td>
> > </tr><tr>
> > <td>22/06/2007</td><td><50000></td>
> >
> > so you can view that between each <tr> and <td> there is lots of space.
> > which is increasing size of rendered html page at more records
> > dramatically.
> >
> > please tell me solution to tied them combined. or something that can help
> > reduce size.

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
HTML Contents in GridView Rows Will Not Display as HTML? Joey Microsoft ASP .NET 0 22nd Dec 2005 03:14 PM
How to add a small HTML table under a row of a GridView onearth Microsoft ASP .NET 26 25th Nov 2005 06:10 PM
Outlook 2000 Autosignature displays HTML source in HTML mode Alex Todd Microsoft Outlook 0 9th May 2004 09:16 PM
Q: How to paste HTML source directly into HTML message? Mike Microsoft Outlook 0 9th Feb 2004 02:59 PM
when using html source; my html langauge is changed when saved. nick Microsoft Word New Users 0 28th Sep 2003 04:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:24 AM.