hi,

i have HTML
say str="<p>sdfdghg</>fl[phlgh][j;h]kj
,.F?hj........

i want to cut this string into muliple page but do not want to disturb the struncture of the HTML.

i want if the lenght of string is more than 500 suppose then it should be display in two pages..

How can i show this i m using Asp.net 2.0 and C#

Prakash

its not quite clear what you want exactly, but I would suggest keeping content and html seperately, otherwise you will have alot of trouble ensuring all html tags are properly closed. Why not have a master page which has a header and footer with all the required html tags, then you can split the content by checking string.Length and substring

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.