473,480 Members | 4,939 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

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 <trand <tdthere 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.
Sep 2 '08 #1
2 2606
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 Sh**@discussions.microsoft.comwrote in message
news:4F**********************************@microsof t.com...
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 <trand <tdthere 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.

Sep 2 '08 #2
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 Sh**@discussions.microsoft.coma crit dans le
message de groupe de discussion :
4F**********************************@microsoft.com...
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 <trand <tdthere 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.

Sep 3 '08 #3

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

Similar topics

2
3866
by: Kamen | last post by:
Hello there, I try to define the properties font-size and font-bold of the pager of a gridview using the pagerstyle, but the settings are not appleyd at run time. What could be the reason for...
0
1635
by: John Smith | last post by:
If anyone can help, I would very muchly appreciate it. I have a main page that uses the .net 2.0 menu control with the multiview controls as the menu choices. This works fine. One of the menu...
0
3540
by: DC | last post by:
The problem I'm using the .NET GridView and FormView objects for the first time and im getting the error "An OleDbParameter with ParameterName '@ID' is not contained by this...
1
3514
by: jmdolinger | last post by:
Hi all, I'm a newbie to Atlas (and recently ASP.NET) after coming from a long Java background, also have done quite a bit with an Ajax.NET/ASP.NET 1.1 project, but it was basically all...
1
7751
by: mitchman10 | last post by:
My Time table has TimeID,Employee,PayPeriod,ChargeCodeID,Hours My Chargecode table has ChargecodeID,c_Text I need an Editable datagrid that will show the TimeID,Employee,PayPeriod,C_Text in a...
3
7485
by: =?Utf-8?B?Um9iZXJ0IENoYXBtYW4=?= | last post by:
Hi, I have a GridView with a fixed number of columns being returned from a SQL query and each having a simple template: <asp:TemplateField HeaderText="Allocations"> <edititemtemplate>...
8
7703
by: gerry | last post by:
The PagerSettings.Visible property is not being handled properly by the GridView control. The value assigned to this property is not applied until after a postback. Simplest test : .aspx...
3
13968
by: Brian VanDyke | last post by:
I have to display a table with customer data (GridView). However, I want to be able to show DropDownList controls inside one of the columns, not just textbox controls. Is this possible? Is it...
0
1582
by: mohaaron | last post by:
Has anyone else tried to save a GridView as a excel file and then use ado.net to read the excel sheet back into a database table? I'm having a terrible time trying to make this work. The normal...
0
6905
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7041
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
7080
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
6908
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5331
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,...
1
4772
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
2994
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1299
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
178
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.