.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Line Break within a Cell?

Posted By:      Posted Date: September 26, 2010    Points: 0   Category :Sql Server
I am creating a "contract" via SRS 2008 in which I will pass contract sections as text into a table on the report.  In some cases the cell within the table will have 4-5 lines of text.  In other cases the cell may have 70 - 80 lines of continuous verbiage.  How do I get the report to page break and put some of the text on 1 page and the rest on a second page?

View Complete Post

More Related Resource Links

Line Break Problem in XSLT


Hi All,

I want to add line break in the xslt but it not working.

Below is the code for adding the line break.

</P> <P>
&lt;xsl:variable name="Collection7"&gt;</P> <P>&nbsp; &lt;xsl:value-of select="$13932"/&gt;&lt;xsl:text&gt;&amp;#xa;&lt;/xsl:text&gt;</P> <P>&nbsp; &lt;xsl:value-of select="$31042"/&gt;&lt;xsl:text&gt;&amp;#xa;&lt;/xsl:text&gt;</P> <P>&lt;/xsl:variable&gt;</P> <P>&lt;td&gt;&lt;xsl:value-of select="$Collection7"/&gt;&lt;/td&gt; </P> <P>&lt;/code]</P> <P>I have tried the below code as well:</P> <P>&lt;xsl:variable name="newline"&gt;
&lt;/xsl:variable&gt;</P> <P>or</P> <P>&lt;xsl:variable name="break"&gt;&amp;lt;br&amp;gt;&lt;/xsl:variable&gt;</P> <P>or </P> <P>addign &lt;br/&gt;</P> <P>then also it not adding the line break.</P> <P>But If I write code like below then it is adding the line break and it works fine.</P> <P>

Paragraph and Line Break Characters

Hello Everyone. While coding my website, I ran into a strange oddity that I can not figure out.  I was working with the MasterPages file and had some fat fingers, thus hitting a few strange keys.  I don't have any idea which ones they were exactly.  After continueing on the coding, I later noticed that my paragraphs were not displaying as they usually do.  Normally, I can have the following code:<p />This is paragraph one. <p />This is paragraph two.  This would show up like a standard set of paragraphs, with a single empty line in between.  After hitting the unknown keys in Visual Studio, the paragraphs no longer work as expected.  I've had to change my HTML to...<p>This is paragraph one.</p> <br /> <p>This is paragraph two.</p> I'm not particularly opposed to either way, however, the problem has arisen that the page viewed over my mobile phone doesn't view the same as over the computer.  There are now several extra lines between paragraphs.   What did I do wrong?  I've recreated the page from scratch and I've looked at all the properties I can find.  Google has been no help at all. Thanks in advance! P.S.  You can see the exact same page displayed Content Text using different MasterPages atHttp://Www.McsoPosseResources.Org/Http://Www.McsoP

Line break after div, but not before



I have list of products that I want to display in a list with three products on each row and I want to use plain css, not a table based design.

I've tried a class with display:block on every third product, and with display:table-cell on the products before. Can you do a line break after a div, but not before?

I know that a table would be best, but due to certain circumstances this is not an option.

Best regards,

how to break line while assigning value using Javascript


hi all ;

i ve a string like

var Ans="a<br>b<br>c";

wen i assigned input using document.getElementById(id).value = Ans;

it display input as it is

i wanna show input lyk 




i am tryin to replace <br>wit "\n" but it is not working... it is showing 

a<br>b<br>c or


I need the RDL Line object to be fitted in tablix cell.


There is the case when I'm changing the width of the tablix columns proportionally and uploading the rdl to RS server afterwards. In this case the tablix columns do not save their width and expand. So the lines have breaks in rendered html.

I have noticed that the html objects correspoding to the lines are the html tables. The tablix cells e.g. the <TD> tags have the width equal to the width of the corresponding RDL lines. After I've manually changed this value to "WIDTH:100%" the tablix columns restored the correct width and text in all the textboxes was wrapped.

Should I try to fix the renderer somehow to make the post-processing of the rendered html or there is more conservative way for problem resolution? If there is no way to avoid fixing the renderer could somebody advise me if one can find some dependency between the html objects (or their CSS class names) and original RDL lines.

Insert "

" at each line break in a rich text box c# 2010


I want to type a letter in a rich text box and have it converted to html format for bulk email send to customers. Ideally I want to add "</p><p> at each line break, but right now i'd be happy to simply replace the line breaks.

When i run the text through

Int32 n = 0;

string s = EmailBodyRichTextBox.Text;

string t = "";

foreach (char c in s)

how to set break point at inline code

I set the element height value by using inline code 
<%# Eval("s") %>
where "s" is the variable declared in page load event. when i run the application it don't set the height. 
Is there any way, i can set break point into .aspx file. i mean how i can check if my Eval("s") get the value.  

Article commenting by line number


I'm wondering what's the best way to approach an online article system that allows users to comment by clicking on the line they are commenting about? Essentially the same way Adobe Acrobat works with comments where you can click anywhere and the text is saved for that location.

I'm assuming a mix of jQuery would be the crux of the interface. The system would need to save comments so that when another user logs in, they will also see the other comments but they can´t edit them - only add their own.

Any suggestions would be great.

New off line application working with sdf file. Need advice


Hey Folks

I am working on a project currently where I need to get data out of a 3rd party vendor's software that uses a .sdf file I looked this up and its a SQL CE file. I was hoping to just link to with with access but thats apparently not going to happen. I need to link to the database extract data from it to a csv file for later use. I also and most important I need to get the data from it and create a report that can be printed while on a customers site that my or may not have web access so I need for this program to be on and off line. I had my webapplication that I have been working on open and was able to bring up the sdf file under the server exploere however I can't seem to get anything out of it when I try to do grid views or detail views errors out.

Can I use one of Visual Studio projects to create this sort of applicaiton if so what would be the best approach. I would love to get an access odbc driver since office is allready installed on the employee's laptop's



Passing Data to a Cell in Excel



I have a webpage that is created in Visual Studio 2008 and programmed in C#.

I have a web form that prompts the user to enter a value into a text box.  For now, I do not have any validation on that field (I will be adding that later).

I need to pass the value that the user has entered to cell C1 of the excel spreadsheet (user_info.xls).

I understand that using excel is not ideal, but unforutnately need to try to make this work with the excel spreadsheet.

I do not have any code for this yet, because I honestly do not know how to begin.

The action of poulating the excel spreadsheet will be intialized from the On Click event of a Submit button.

Any suggestions would be much appreciated.

Thank you in advance for your assistance,


crystal report -visual studio 2008 dual axis chart (bar & line)


dear all, 

i use crystal report integrated with  vs.2008, and i want to make chart with dual axis (bar & line).

i have used bar chart and input the data with 2 values..

then in chart options > template, i activated the dual axis..

my question is, how i can change the 2nd value with line chart not bar chart??

i'd tried to find the right settings in "chart options" but still can't find the solution.

for information in "chart options" there are 4 sub menu : template, general,titles,grid..

i read in a tutorial there's more sub menu called "series" in crystal report (stand alone version)..

is it possible doing it in Crystal Report VS. 2008?

please,, i need your advice and solution..

Thanx before..


Extreme UI: Line Charts with Data Templates


Charles Petzold continues his investigation into robust XAML coding made possible by Windows Presentation Foundation, this time tackling the complicated process of creating line charts.

Charles Petzold

MSDN Magazine January 2010

Silverlight: Build Line-Of-Business Enterprise Apps With Silverlight, Part 2


Here we wrap up the call center client application we began last month. The techniques we illustrate will help you build real-world enterprise solutions using Silverlight.

Hanu Kommalapati

MSDN Magazine February 2009

Silverlight: Build Line-Of-Business Enterprise Apps With Silverlight, Part 1


Take a walk through the creation of a call center client application to learn how to build real-world enterprise solutions using Silverlight.

Hanu Kommalapati

MSDN Magazine January 2009

Threading: Break Free of Code Deadlocks in Critical Sections Under Windows


Critical sections, a mechanism that prohibits more than one thread at a time from executing a particular section of code, is a topic that has not received much attention and thus tends not to be well understood. A solid understanding of critical sections in Windows can really come in handy when you need to track down multithreading performance issues in your code. This articles delves under the hood of critical sections to reveal information useful in finding deadlocks and in pinpointing performance problems. It also includes a handy utility program that shows all of your critical sections and their current states.

Matt Pietrek and Russ Osterlund

MSDN Magazine December 2003

Add an empty line in Gridview on specific dayofweek


Hey all,

Havin quite a bit of trouble with this one.  I have a bunch of days that I worked in my database...mostly monday-friday and some saturdays.  What I want the gridview to do is add an empty line between each sunday and monday so that it seperates out my work weeks and makes it easier to read in the gridview.  I got some help here a few days ago on how to clone the db etc and I have all that working properly but I can't seem to wrap my head around how to do add these empty lines in the proper spots.  Here is my code so far:

private DataTable AddEmptyRow()
        DataTable originalDataTable = GetItems();
        DataTable newDataTable = originalDataTable.Clone();
        DateTime testdate = Convert.ToDateTime("7/20/2010");

            for (int i = 0; i < originalDataTable.Rows.Count; i++)
                DayOfWeek day = testdate.DayOfWeek;

                if (day == DayOfWeek.Sunday)
                    DataRow newDataRow = newDataTable.NewRow();



Autoscroll down to a specific line on the webpage



I wonder about how this autoscroll is working on a page. For example when entering a page that I have set up named "test.aspx",

I want to 'autoscroll' down to a specific textrow that I have so that textrow exactly will be on the very top of the browser window.


I wonder how you do this task? Thanks! 

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend