ASP.NET中,TextBox属性为Multiline多行文本,输入英文标点句号“..”,保存到数据库,编辑时换行不正常

例如在多行文本框中输入500个点(全英文的),此时文本会自动换行,点击页面的保存,将数据保存到数据库,然后编辑该条数据,文本框显示存入数据库中的数据(即500个点),此时... 例如在多行文本框中输入500个点(全英文的),此时文本会自动换行,点击页面的保存,将数据保存到数据库,然后编辑该条数据,文本框显示存入数据库中的数据(即500个点),此时数据换行不正常,多行文本框宽度拉的很大,使页面发生了变形,有什么方法可以不改变文本框的大小,实现文本自动的换行。目前只发现英文句号会出现此问题。其他都显示正常。 展开
 我来答
cheney32
2011-06-23 · 超过12用户采纳过TA的回答
知道答主
回答量:155
采纳率:0%
帮助的人:36.1万
展开全部
There was once a baby,Chanel handbags, and he strolled almost a good deal, and thought of a number of entities. He had a sister, who was a child also, and his constant fellow. These 2 accustom to marvel all daytime long. They wondered at the pulchritude of the flowers; they wondered at the height and blueness of the sky; they wondered at the depth of the sunny water; they wondered at the goodness and the power of God who made the lovely globe.They used to say to one another, sometimes, supposing all the children upon earth were to dead, would the flowers, and the water, and the sky be apologetic? They believed they would be sorry. For, said they, the sprouts are the children of the flowers, and the little playful streams that gambol down the hill-sides are the children of the water; and the smallest bright specks playing at conceal and seek in the sky all night, have to certainly be the children of the stars; and they would all be grieved to see their playmates, the children of men,cheap chanel handbags, no more.There was one remove shining star that used to bring an end to ... in the sky before the rest, near the cathedral spire, upon the graves. It was larger and more pretty, they thought, than all the others, and each night they saw for it, standing hand in hand at a window. Whoever saw it premier cried out, "I see the star!" And often they cried out either attach, understanding so well when it would ascend, and where. So they grew to be such friends with it, that, before lying down in their beds, they always looked out once again, to bid it good-night; and when they were turning round to slumber, they used to say, "God bless the star!"But when she was still quite youth, oh quite, quite young, the sister drooped, and came to be so weak that she could no longer stand in the window at night; and then the child looked sadly out by himself, and when he saw the star, turned circular and said to the patient pale face on the bed, "I see the star!" and then a smile would come upon the face, and a little languid voice used to say, "God bless my brother and the star!"And so the time came all too soon! when the child saw out alone, and when there was no face above the mattress; and when there was a little grave among the graves, no there ahead; and when the star made long rays down toward him, for he saw it through his tears.Now, these rays were so bright, and they appeared to make such a shining direction from globe to Heaven, that when the child went to his solitary bed, he dreamed about the star; and dreamed that, lying where he was, he saw a train of people taken up that sparkling road by angels. And the star, opening, showed him a large world of light, where many more such angels waited to receive them.All these angels, who were waiting, turned their beaming eyes upon the people who were carried up into the star; and some came out from the long rows in which they stood, and fell upon the people's necks, and kissed them tenderly, and went away with them down avenues of light, and were so happy in their company, that lying in his bed he wept for joy.But, there were many angels who did not go with them, and among them one he knew. The patient face thin a hurry had lain upon the bed was glorified and luminous, but his center base out his sister among all the host.His sister's angel lingered approximate the entrance of the star,Louis Vuitton Women, and said to the leader among those who had brought the people thither:"Is my brother come?"And he said "No."She was turning hopefully away, when the child stretched out his arms, and cried, "O, sister, I am here! Take me!" and then she turned her beaming eyes upon him, and it was night; and the star was shining into the chamber, making long rays down towards him as he saw it through his tears.From that hour forth, the child looked out upon the star as on the family he was to go to, when his time should come; and he thought that he did not belong to the earth alone, but to the star too,Hermes Handbags, because of his sister's angel gone before.There was a baby nativity to be a brother to the child; and while he was so little that he not yet had spoken word he stretched his microscopic form out on his bed, and died.Again the child imagined of the open star, and of the enterprise of saints, and the practice of folk, and the rows of angels with their beaming eyes all turned upon those people's faces.Said his sister's angel to the leader:"Is my brother come?"And he said "Not that 1, but distinct."As the child beheld his brother's angel in her arms, he cried, "O, sister, I am here! Take me!" And she turned and smiled upon him, and the star was shining.He grew to be a young man, and was engaged at his writings when an old maid came to him and said:"Thy mother is no extra. I send her blessing on her darling son!"Again at night he saw the star, and all that sometime company. Said his sister's angel to the leader:"Is my brother come?"And he said, "Thy mother!"A potent wail of delight went forth via all the star, for the mama was reunited to her two kid. And he extended out his arms and cried, "O, mother, sister, and brother, I am here! Take me!" And they questioned him, "Not already," and the star was luminous.He grew to be a male, whose cilia was cornering gray, and he was sitting in his seat along the fireside, ponderous with mourning, and with his face bedewed with tears, while the star opened once repeatedly.Said his sister's angel to the leader: "Is my brother come?"And he said, "Nay, but his maiden daughter."And the man who had been the child saw his daughter, newly lost to him, a celestial being among those 3, and he said, "My daughter's head is on my sister's breast, and her arm is around my mother's nape, and at her feet there is the child of old time, and I can bear the chaptering from her, God be complimented!"And the star was shining.Thus the child came to be one old man, and his once smooth face was wrinkled, and his treads were slow and weak, and his back was bent. And one night as he arrange upon his bed, his children standing round, he cried, as he had cried so long ago:"I see the star!"They mumbled one to another, "He is dying."And he said, "I am. My age is falling from me favor a garment, and I migrate towards the star as a child. And O, my Father,gucci women handbags, now I thank Thee that it has so often opened, to receive those darling ones who await me!"And the star was shining, and it shines upon his grave.

Related themes article:

a brother’s miracle 9

a letter from my penpal qing( ) 4 7

a little girl lost 84

a letter in the wallet

a letter form my penpal qing 4
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
匿名用户
2011-07-06
展开全部
'2个textbox输入输出,Multiline设置true,一个Command1
Private Sub Command1_Click()
Dim str1 As String
Dim i As Long, j As Long, k As Long
Dim words() As String, words1
Dim nn() As Long, t As Long
str1 = LCase(Text1.Text) '变小写
str1 = Replace(str1, vbCrLf, " ") '替换换行符
str1 = Replace(str1, ".", " ") '替换英文句号
str1 = Replace(str1, ",", " ") '替换英文逗号
str1 = Replace(str1, "?", " ") '替换英文问号
Do
str1 = Replace(str1, " ", " ") '双空格替换为空格
Loop While (InStr(1, str1, " ") > 0)
words1 = Split(str1, " ") '分割单词
ReDim words(0), nn(0)
words(0) = words1(0)
nn(0) = 1
k = 0
For i = 1 To UBound(words1)
For j = 0 To k
If words(j) = words1(i) Then Exit For
Next j
If j > k Then
'没有重复的单词
k = k + 1
ReDim Preserve words(k), nn(k)
words(k) = words1(i)
nn(k) = 1
Else
'重复的单词
nn(j) = nn(j) + 1
End If
Next i
For i = 0 To k - 1 '出现次数 排序
For j = i To k
If nn(i) < nn(j) Then
t = nn(i): nn(i) = nn(j): nn(j) = t
End If
Next j
Next i
For i = 0 To IIf(k > 4, 4, k)
Text2.Text = Text2.Text & words(i) & "," & nn(i) & "次" & vbTab
Next i
End Sub

Private Sub Form_Load()
Command1.Caption = "统计"
Text1.Text = ""
Text2.Text = ""

End Sub
另外,虚机团上产品团购,超级便宜
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
csd314
2011-06-23 · TA获得超过493个赞
知道小有建树答主
回答量:730
采纳率:50%
帮助的人:539万
展开全部
RichTextBox是Winform里的控件,ASP.NET里默认没有这个,除非自定义

宽度拉的大很可能是你没设置文本框的宽度和Columns属性
本回答被提问者采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
空帆峭
2011-06-23 · 超过17用户采纳过TA的回答
知道答主
回答量:132
采纳率:0%
帮助的人:43万
展开全部
不要用TEXTBOX,就用RICHTEXTBOX就好了
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 更多回答(2)
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式