Click here to Skip to main content
15,891,372 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I have a rather long email newsletter and want to reduce the size of a table by using a scrolling text box. Does anyone know what code will be excepted by gmail along with other email clients.

Thanks for the help!!!
Posted

1 solution

For that, you should change the properties of textbox. The textarea contains properties cols & rows, change those values.

HTML <textarea> Tag</textarea>[^]

Also you can change the width & height values by CSS.

Creating a Nice Textarea[^]

EDIT
---------------------------------------
Oh dude, If you are using ASP.NET then you can use Textbox with Textmode=Multiline, Height & Width

For your doubt regarding add textbox in Gridview, look at these
Adding a textarea to a gridview[^]
How to display and edit multiline in datagrid controls with Databinding[^]

EDIT 2
---------------------------------------
How To Code HTML Email Newsletters (All New Version)[^]
How to Add HTML Signatures with Images to GMail Email Messages[^]
HTML and images in your Gmail message[^]
 
Share this answer
 
v3
Comments
Learning 15-Jun-11 9:22am    
Thank you very much for your suggestion. How would I place an ASP Gridview in the <Textarea> to show the results? When placing in the <Textarea> it shows the code of the Gridview.

Thanks again....
thatraja 15-Jun-11 10:25am    
Check my updated answer
BTW please include complete details in your question always, If you mentioned the ASP.NET(in Tag or question) at first, I would been answered clearly first.
Learning 15-Jun-11 11:23am    
Thanks again for the help....
I can make the ASP Gridview scroll using:
<div style="width:100%; height:150px; overflow:auto;"><br />
When I email the source code of my newsletter to a Gmail email account the scroll is disregarded and all rows in the Gridview are shown making the newsletter extremely long. I want the Gmail email recipient to scroll through several lines at a time. BTW, Yahoo email will show the scroll box. The textarea suggestion works with Gmail but I have not been able to include a Gridview table within the textarea.
You continued help is appreciated!!
thatraja 15-Jun-11 15:13pm    
I think that is not supported(also some other features too) by gmail(Also I tried long back.).
Anyway check my updated answer for more links regarding this. If I find anything related this then I'll let you know. Please you do the same(because it will be helpful for others). Thank you.
Learning 15-Jun-11 17:43pm    
I will continue to work with it.

Thanks for the help....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900