473,505 Members | 13,599 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

text encoding problem in GridView .Net 2.0

Hi guys!
i've got very interesting problem. the problem is like this.

i've 2 webpages.

-- page1 contains DataGrid control of .Net 1.1 and
-- Page2 contains GridView control of .Net 2.0.
-- both grid displays same data and same function is used to fetch data
from the database.

the grid on Page1 displays data correctly but i've got problem with the
grid of Page2.
in one column which shows NVARCHAR data,
the data shown on Page1 is like this

abæcdøefå

and the same text is diaplyed differently on Page2 Grid like this,

abæcdøefå

it seems problem with encoding but i'm not able to find out how to fix
this.

i'm using C#.NET 2.0 and MS SQL SERVER 2000

can anyone help me out here? i would appriciate it.

Thanks,
Lucky

Sep 27 '06 #1
2 2540
hi guys!
again me. i found the problem. it wasn't with the GridView. so do not
bother about this.

Lucky

Lucky wrote:
Hi guys!
i've got very interesting problem. the problem is like this.

i've 2 webpages.

-- page1 contains DataGrid control of .Net 1.1 and
-- Page2 contains GridView control of .Net 2.0.
-- both grid displays same data and same function is used to fetch data
from the database.

the grid on Page1 displays data correctly but i've got problem with the
grid of Page2.
in one column which shows NVARCHAR data,
the data shown on Page1 is like this

abæcdøefå

and the same text is diaplyed differently on Page2 Grid like this,

abæcdøefå

it seems problem with encoding but i'm not able to find out how to fix
this.

i'm using C#.NET 2.0 and MS SQL SERVER 2000

can anyone help me out here? i would appriciate it.

Thanks,
Lucky
Sep 27 '06 #2
hi guys!
again me. i found the problem. it wasn't with the GridView. so do not
bother about this.

Lucky

Lucky wrote:
Hi guys!
i've got very interesting problem. the problem is like this.

i've 2 webpages.

-- page1 contains DataGrid control of .Net 1.1 and
-- Page2 contains GridView control of .Net 2.0.
-- both grid displays same data and same function is used to fetch data
from the database.

the grid on Page1 displays data correctly but i've got problem with the
grid of Page2.
in one column which shows NVARCHAR data,
the data shown on Page1 is like this

abæcdøefå

and the same text is diaplyed differently on Page2 Grid like this,

abæcdøefå

it seems problem with encoding but i'm not able to find out how to fix
this.

i'm using C#.NET 2.0 and MS SQL SERVER 2000

can anyone help me out here? i would appriciate it.

Thanks,
Lucky
Sep 27 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3465
by: Hans Merkl | last post by:
Hi, I was wondering if it's possible to bind the header text of a GridView column to a method of an object I have. At the moment I am setting the header texts in Page_Load but I was wondering if...
10
8011
by: Nikolay Petrov | last post by:
How can I convert DOS cyrillic text to Unicode
2
11550
by: sck10 | last post by:
Hello, I have the following for a GridView. How do you break the HeaderText into two lines. I tried using: HeaderText="Revenue <br /> Impact", but that doesn't work. Any help would be...
2
3793
by: VB Programmer | last post by:
I have a gridview control with several data fields. When the user clicks 'edit' for the row I want the user to be able to edit a particular text field. Under that 'edit' textbox is a button. ...
2
1916
by: Lucky | last post by:
Hi guys! i've got very interesting problem. the problem is like this. i've 2 webpages. -- page1 contains DataGrid control of .Net 1.1 and -- Page2 contains GridView control of .Net 2.0. --...
1
2757
by: Sergei Shelukhin | last post by:
I have the following problem with gridview. I use MySQL database that has Russian characters in cp1251 encoding, and I get ????????s instead of Russian characters on all my ASP.NET pages. To fix...
0
2403
by: landesjoe | last post by:
Hi, here's my problem in short: Text boxes in gridview don't seem to hold their value if the column's .Visible property is changed back and forth. I've got a form with a gridview populated from...
1
5470
by: moni | last post by:
Hi, I was hoping to know how I could get the text value of a gridview row. My code is this way: <asp:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False"...
0
4261
by: jimbob91577 | last post by:
I have a Gridview that I am dynamically adding template columns to which contain text boxes in their "Item Data" field. After adding the columns to the gridview in my Page_Load event, the page binds...
4
6012
by: pablorp80 | last post by:
Hello, Here is what I need: I need the focus and the cursor set to a textbox named txtGT, every time no matter if it is the first page load or whether it is a postback. Here is the problem: I...
0
7213
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7298
Oralloy
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,...
1
7017
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5610
agi2029
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,...
1
5026
isladogs
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...
0
4698
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3187
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...
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
406
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.