我有一个名为的联系人Frédéric.
当我在网站的联系人列表中搜索它时,名称会像这样被更改"Frédéric",因为它Frédéric在数据库中搜索这个名称(),我的名字就Frédéric在其中.
因此,在数据库中没有这样的名称,它表示没有找到任何联系人.
如何获得除此名称之外的真实姓名Frédéric.?
我的解码方法是
public static string Decode(string text)
{
if (text == null)
{
return "";
}
string result = "";
string[] values = text.Split('@');
bool escaped = false;
try
{
for (int i = 0; i < values.Length; i++)
{
if (!escaped)
{
result += values[i].Replace("_"," ");
}
else
{
//result += System.Text.ASCIIEncoding.ASCII.GetChars(new byte[] { byte.Parse(values[i]) })[0];
}
escaped = !escaped;
}
}
catch { }
return …Run Code Online (Sandbox Code Playgroud) 我已经在IIS 7.5中启动了我的网站.网站上有一个问题,我试图解决它.在做了更改之后我构建了解决方案,并试图在网站上查看.那时我得到一个例外细节,如
System.Data.SqlClient.SqlException:用户'sa'登录失败"
这是源错误
Line 25: /// <param name="dataTable"><see>System.Data.DataTalbe</see> a rellenar</param>
Line 26: public void FillTable(System.Data.DataTable dataTable)
{
this.Adapter.SelectCommand = this.CommandCollection[0];
this.Adapter.Fill(dataTable);
}
Run Code Online (Sandbox Code Playgroud)
任何人都可以帮我解决这个问题吗?