I understand... I'm trying to track the issue down.
Odds are that "cityNo" is english, "cityName" is arabic. As such they are different encoding types, and you're trying to display both in one control. Individual controls can, I believe, only have one encoding type at a time.
As a TEST....
Try reversing the items, put the arabic name first, then the number.... I'm guessing only the number shows up....
Have you read the book? - ASP.Net 3.5 CMS Development (now on Kindle)
v5.1 of iTracker (Inventory Tracker Starter Kit) is out, Download it now!
warangal
Member
244 Points
474 Posts
no value before a string
Apr 30, 2012 06:58 PM|LINK
hi
i have two string values
one is in arabic string and second one is a number
Dim str As String = "مرحبا"
Dim no As String = "1000"
Dim na As String = str & "-" & no
Dim sa As String = no & "-" & str
Me.TextBox1.Text = na
Me.TextBox2.TextAlign = HorizontalAlignment.Right
Me.TextBox2.Text = sa
here i tried in both ways but no is not coming at first
here i need no before arabic string مرحبا -
Curt_C
All-Star
66014 Points
7639 Posts
Moderator
Re: no value before a string
Apr 30, 2012 07:04 PM|LINK
start with chaning the name.... "no" is a reserved word.
v5.1 of iTracker (Inventory Tracker Starter Kit) is out, Download it now!
warangal
Member
244 Points
474 Posts
Re: no value before a string
Apr 30, 2012 07:20 PM|LINK
Hmmm i already tried with other options also
Dim str1 As String = "11"
Dim str3 As String = "- "
Dim str2 As String = "مرحبا "
Dim strRes As String = String.Concat(str1, str3, str2)
Me.TextBox2.Text = strRes
Curt_C
All-Star
66014 Points
7639 Posts
Moderator
Re: no value before a string
Apr 30, 2012 07:22 PM|LINK
if you set Me.TextBox2.Text = str1 does that work to display the text?
v5.1 of iTracker (Inventory Tracker Starter Kit) is out, Download it now!
Curt_C
All-Star
66014 Points
7639 Posts
Moderator
Re: no value before a string
Apr 30, 2012 07:23 PM|LINK
Oh wait... I'm betting its because you are trying to display two different encoding types in one textbox....I dont think you can do that.
v5.1 of iTracker (Inventory Tracker Starter Kit) is out, Download it now!
warangal
Member
244 Points
474 Posts
Re: no value before a string
Apr 30, 2012 07:30 PM|LINK
Hi
moderator
i need suppose no is like a cityNo
and string is a cityName
i need like this complete string in one string variable
cityname-cityno
but here my problem is cityname is in arabic
Curt_C
All-Star
66014 Points
7639 Posts
Moderator
Re: no value before a string
Apr 30, 2012 08:05 PM|LINK
I understand... I'm trying to track the issue down.
Odds are that "cityNo" is english, "cityName" is arabic. As such they are different encoding types, and you're trying to display both in one control. Individual controls can, I believe, only have one encoding type at a time.
As a TEST....
Try reversing the items, put the arabic name first, then the number.... I'm guessing only the number shows up....
v5.1 of iTracker (Inventory Tracker Starter Kit) is out, Download it now!
Curt_C
All-Star
66014 Points
7639 Posts
Moderator
Re: no value before a string
Apr 30, 2012 08:08 PM|LINK
Actually, I just tested this....
txtTest.Text ="11" & "مرحبا "
Output was fine.... my textbox shows "11مرحبا "
So its nothing to do with the control, it works fine.... you have something else going on outside of what you displayed to us.
v5.1 of iTracker (Inventory Tracker Starter Kit) is out, Download it now!
Curt_C
All-Star
66014 Points
7639 Posts
Moderator
Re: no value before a string
Apr 30, 2012 08:12 PM|LINK
What kind of control is TextBox2?
It's not a TextBox..... because Me.TextBox2.TextAlign = HorizontalAlignment.Right isn't valid, there is no .TextAlign property.....
I'm guessing you are using a nonstandard control?
v5.1 of iTracker (Inventory Tracker Starter Kit) is out, Download it now!
warangal
Member
244 Points
474 Posts
Re: no value before a string
May 01, 2012 05:54 AM|LINK
its in vb.net windows application
i tried lot of options but its not