I have a cell in the datagrid, which the original data is as following:
Testing1
Testing2
Testing3
Testing4
There are 4 lines, while it displays on the browser, it shows as a line, and
I tried to replace "\r\n" to <br/>, but the smart ASP helps me to translate
<br/into "<br/> , so the <br/is useless here.... How can I do
if the data is more than 1 line? Thanks. 6 2003
try to set HtmlEncode="fal se" on your column (and use <br/>)
"LamSoft" wrote:
I have a cell in the datagrid, which the original data is as following:
Testing1
Testing2
Testing3
Testing4
There are 4 lines, while it displays on the browser, it shows as a line, and
I tried to replace "\r\n" to <br/>, but the smart ASP helps me to translate
<br/into "<br/, so the <br/is useless here.... How can I do
if the data is more than 1 line? Thanks.
Thank you very much.
"Sergey Poberezovskiy" <Se************ *****@discussio ns.microsoft.co mwrote
in message news:7E******** *************** ***********@mic rosoft.com...
try to set HtmlEncode="fal se" on your column (and use <br/>)
"LamSoft" wrote:
>I have a cell in the datagrid, which the original data is as following:
Testing1 Testing2 Testing3 Testing4
There are 4 lines, while it displays on the browser, it shows as a line, and I tried to replace "\r\n" to <br/>, but the smart ASP helps me to translate <br/into "<br/, so the <br/is useless here.... How can I do if the data is more than 1 line? Thanks.
Sorry, 1 more thing
How can I set HTMLEncode=fals e in the coding
GridView.Column s[1].HTMLEncode = false
but i cannot find any attributes about HTMLEncode under GridView.Column s
Thanks.
"Sergey Poberezovskiy" <Se************ *****@discussio ns.microsoft.co mwrote
in message news:7E******** *************** ***********@mic rosoft.com...
try to set HtmlEncode="fal se" on your column (and use <br/>)
"LamSoft" wrote:
>I have a cell in the datagrid, which the original data is as following:
Testing1 Testing2 Testing3 Testing4
There are 4 lines, while it displays on the browser, it shows as a line, and I tried to replace "\r\n" to <br/>, but the smart ASP helps me to translate <br/into "<br/, so the <br/is useless here.... How can I do if the data is more than 1 line? Thanks.
HtmlEncode is a BoundField property - so any column that inherits from will
support this attribute, but not the Columns collection
"LamSoft" wrote:
Sorry, 1 more thing
How can I set HTMLEncode=fals e in the coding
GridView.Column s[1].HTMLEncode = false
but i cannot find any attributes about HTMLEncode under GridView.Column s
Thanks.
"Sergey Poberezovskiy" <Se************ *****@discussio ns.microsoft.co mwrote
in message news:7E******** *************** ***********@mic rosoft.com...
try to set HtmlEncode="fal se" on your column (and use <br/>)
"LamSoft" wrote:
I have a cell in the datagrid, which the original data is as following:
Testing1
Testing2
Testing3
Testing4
There are 4 lines, while it displays on the browser, it shows as a line,
and
I tried to replace "\r\n" to <br/>, but the smart ASP helps me to
translate
<br/into "<br/, so the <br/is useless here.... How can I do
if the data is more than 1 line? Thanks.
OH...
Thank you very much.
"Sergey Poberezovskiy" <Se************ *****@discussio ns.microsoft.co mwrote
in message news:7E******** *************** ***********@mic rosoft.com...
HtmlEncode is a BoundField property - so any column that inherits from
will
support this attribute, but not the Columns collection
"LamSoft" wrote:
>Sorry, 1 more thing
How can I set HTMLEncode=fals e in the coding
GridView.Colum ns[1].HTMLEncode = false
but i cannot find any attributes about HTMLEncode under GridView.Column s
Thanks. "Sergey Poberezovskiy" <Se************ *****@discussio ns.microsoft.co m> wrote in message news:7E******** *************** ***********@mic rosoft.com...
try to set HtmlEncode="fal se" on your column (and use <br/>)
"LamSoft" wrote:
I have a cell in the datagrid, which the original data is as following:
Testing1 Testing2 Testing3 Testing4
There are 4 lines, while it displays on the browser, it shows as a line, and I tried to replace "\r\n" to <br/>, but the smart ASP helps me to translate <br/into "<br/, so the <br/is useless here.... How can I do if the data is more than 1 line? Thanks.
On Jul 11, 8:19 am, "LamSoft" <[nospam]lams...@lamsoft .netwrote:
I have a cell in the datagrid, which the original data is as following:
Testing1
Testing2
Testing3
Testing4
There are 4 lines, while it displays on the browser, it shows as a line, and
I tried to replace "\r\n" to <br/>, but the smart ASP helps me to translate
<br/into "<br/> , so the <br/is useless here.... How can I do
if the data is more than 1 line? Thanks.
Hi
did you tried replacing \r\n with environment.new line....?
Md. Masudur Rahman ( Munna )
Kaz Software Ltd. http://www.kaz.com.bd http://munnacs.110mb.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Stephen |
last post by:
I'm trying to work with a datagrid column in order to display a tooltip in a
datagrid cell. The reason I am doing this is because I have some long strings
being returned and I don't want the rows of the datagrid expaning down to
much. I basically want to display the first 50 characters in the grid cell
and then display the rest as a tooltip in the grid cell. I'm not sure if this
is possible but if anyone can help me do this I would be very...
|
by: Charles Astwood |
last post by:
Hi, just starting out working my way round C Sharp and aspx.
Used to write all my sites in asp and just need a few pointers in how to
display data.
I have made a connection to my SQL2000 database with SqlConnection as I
think this is the fastest and best?
I have also written my SELECT statement, but am confused in how to display
this data not in a Table as all the examples on the web seem to want me to
|
by: vinayak |
last post by:
Hi
I am displaying data in Datagrid in ASP.NET with
Edit/Update functionality for each row. On the same page I
have 2 Button controls which submits the request to
server. These button controls are Web Control & not HTML
control. One of these buttons whose title is Delete is
added on the aspx page in design view & also I double
clicked on this button in design view to get the onclick
code for this button in the code behind page. & for...
|
by: Tim T |
last post by:
Hi,
I have a stored procedure executing a search and an asp.net page displaying
the results in a datagrid. The datagrid has paging on it, I am using Visual
Studio.NET and can't see any option to show the number of results found.
Is there an easy way to add this to the top of the datagrid, along with the
total number of pages ie:
67 resuts found
page 1 of 7 (where the numbers in are hyperlinks to that
|
by: John |
last post by:
Hi
What is the best way to populate a datagrid?, can you populate it row by row using a datareader or is dataAdapater.Fill then Dataset binding the only way
John
| |
by: Patrick.O.Ige |
last post by:
Hello guys i made a Datagrid with Editing,Update and Cancel using VS.NET. to
my surprise nothing is on the screen after compilation ..
By code below:-
Imports System.Data
Imports System.Data.SqlClient
Imports System.Web.UI.WebControls
Imports System.Web.UI.HtmlControls
Public Class datagrid_edit
Inherits System.Web.UI.Page
|
by: Fedor G via DotNetMonster.com |
last post by:
Pls help me manage the data displaying on the webform aspx c# page.
I used Dreamweaver to manage data displaying in the repeat table, ie simply
dragged the fields to the table cells, where I need to display data. then set
a repeat region for the table.
Now the problem is I dont know how to put desired data to the desired places
on the webform page.
the data is displyed well in datagrid.
|
by: Olaf Rabbachin |
last post by:
Hi folks,
I'd like to notify the user that rows within a datagrid require
user-interaction/processing.
The RowHeader is visible and wide enough so that the exclamation-mark icon
as i.e. the ErrorProvider-control displays it would fit in neatly.
Is there a way of using the ErrorProvider-control directly or else is there
a way of displaying icon in a DataGrid's RowHeaders?
Cheers & TIA,
|
by: Niclas |
last post by:
Hi,
I have a multiline textbox used to submit values stored as VarChar in my SQL
database. I need to be able to retrieve this string and display it in a
datagrid column with the line breaks entered in the textbox maintained.
Is there a prefered solution available for this ?
Niclas
|
by: Death |
last post by:
Hi all
I am having some trouble on displaying datagrid data from my database
as i am a beginner for this
The error is when calling the DBCommand . It show incorrect syntax near
User. But User is the table in my server. Did i do anything wrong?
Pls advice .Thanks
Below is the code sample :
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |