在文本框中使用格式“<在此说明区域中保存文字>”保存文本的Isssue [英] Isssue with saving text with format “<save text in this description area>” in textbox

查看:84
本文介绍了在文本框中使用格式“<在此说明区域中保存文字>”保存文本的Isssue的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是c#asp.net的新手,我的工作是了解现有代码并对新要求进行更改。



我有一个网络表单是一个该字段是一个文本框(目的:用户以下列格式写出该区域中问题的描述)



问题:我无法保存表单写下文本格式请告诉我文本是否可以保存在我上面描述的问题格式中,如果这样请让我知道解决方案..



注意:Sql数据库用作后端来保存数据。



如果我遗漏任何细节或信息要分享,请告诉我..谢谢提前。



我想在这里分享我的发现我能够以下列格式1保存数据。<保存此说明区域中的文字> [这里我间有一个空间<并保存] 2.保存此说明区域中的文字> [这里我没有在开始时放任何<符号]

I am new to c# asp.net and my job is to understand the existing code and make changes for new requirement's.

I have a web form were one of the field is a textbox(purpose:users writes description of the issue in this area in the following format "")

Issue: I cant save the form when I write the text format "" please let me know if the text can be saved in the issue format I described above if so kindly let me know the solution..

Note: Sql databse is used as a backend to save the data.

If I am missing any details or info to be shared pl let me know..thanks in advance.

I would like to make share here my findings I able to save the data in the following format 1.< save text in this description area> [here I had a space in between < and save] 2." save text in this description area> [here I did not put any < sign at the start]

推荐答案

可能会在特殊问题中出现在文本框中使用的字符。请尝试没有特殊字符,让你尝试保存,如果你可以节省手段..



检查数据库你的列数据类型,如果nvarchar意味着没有问题否则更改为nvarchar数据类型..



现在尝试使用特殊字符..



所有最佳:)
May be issue in the special characters using in the textbox. Please try without special character and let u try to save if u can save means ..

check database ur column datatype if nvarchar means no issues otherwise change into nvarchar datatype..

and now try with special characters..

All the Best :)


在Sql server中不使用nvarchar作为数据类型时,通常会出现特殊字符问题。所以只需尝试nvarchar即可解决问题。
Generally special character issue occurs when not use nvarchar as a data type in Sql server.So just try nvarchar it will solve your problem.


这篇关于在文本框中使用格式“&lt;在此说明区域中保存文字&gt;”保存文本的Isssue的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆