Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to Display the Data have more than two spaces in Repeater?
    primarykey
    data
    text
    <p>I got the data from database into my dataset is <img src="https://i.stack.imgur.com/0cmoD.png" alt="enter image description here"> and then i bind into my repeater control but its is been showing like "Prince Antony G". It eliminated the Spaces.<br> and also i export those data into excel, In excel also the spaces were removed.<br> I need the show data whatever in my Database. Any idea to solve this problem.</p> <p><strong>In stack overflow Question box also remove more spaces in between two words</strong></p> <p>My Excel Coding:</p> <pre><code> DataTable dt = new DataTable("Report"); DataRow dr; dt.Columns.Add("Name"); for (int i = 0; i &lt; dt_Status.Rows.Count; i++) { dr = dt.NewRow(); dr["Name"] ="&lt;pre&gt;"+ dt_Status.Rows[i]["NAME"].ToString() +"&lt;/pre&gt;"; dt.Rows.Add(dr); } HttpResponse response = HttpContext.Current.Response; // first let's clean up the response.object response.Clear(); response.Charset = ""; // set the response mime type for excel response.ContentType = "application/vnd.ms-excel"; response.AddHeader("Content-Disposition", "attachment;filename=Report.xls"); // create a string writer using (StringWriter sw = new StringWriter()) { using (HtmlTextWriter htw = new HtmlTextWriter(sw)) { // instantiate a datagrid DataGrid dg = new DataGrid(); dg.DataSource = dt; dg.DataBind(); dg.RenderControl(htw); response.Write(sw.ToString()); response.End(); } } </code></pre> <p>After updating my code i got the excel output as:</p> <p><img src="https://i.stack.imgur.com/8b47P.jpg" alt="enter image description here"></p> <p>I need to display in a single cell.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload