如何解决分析程序错误消息 - 服务器标记格式不正确。来源错误: [英] How Can I Solve Parser Error Message - The Server Tag Is Not Well Formed. Source Error:

查看:65
本文介绍了如何解决分析程序错误消息 - 服务器标记格式不正确。来源错误:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在设计视图中遇到上述错误。在源视图中它是相同的除了

P arser错误消息 - 服务器标签格式不正确。

源错误:





第31行:< / table>

第32行:< div>

第33行:< asp:SqlDataSource ID =sourceEmployeesrunat =serverProviderName =System.Data.SqlClientConnectionString =Data Source = localhost; user id = sa; integrated security = true; initial catalog = fshndb

第34行:SelectCommand =选择l.emri_lendes为Lenda,v.nota为AS Nota,v.permiresim为Permiresim,s.emri为Emri,s.mbiemer为Mbiemri

第35行:+来自lenda作为l inner join vleresimi作为v on l.lenda_id = v.lenda_id内部加入学生作为s on v.student_email = s.student_email



源文件:/SecurePages/default.aspx行:33





我执行时一切都很好在本地模式下的开发机器上,但是当我将代码放在服务器上并执行时,则出错。以下是gridview的Source,后跟引用的sqlServerdataSource。感谢任何帮助。

提前感谢

I am getting above error in design view. When in source view it is same except
Parser Error Message - The server tag is not well formed.
Source Error:


Line 31: </table>
Line 32: <div>
Line 33: <asp:SqlDataSource ID="sourceEmployees" runat="server" ProviderName="System.Data.SqlClient" ConnectionString="Data Source=localhost; user id=sa; integrated security=true; initial catalog=fshndb"
Line 34: SelectCommand="select l.emri_lendes as Lenda,v.nota AS Nota, v.permiresim as Permiresim,s.emri as Emri,s.mbiemer as Mbiemri"
Line 35: +"from lenda as l inner join vleresimi as v on l.lenda_id=v.lenda_id inner join student as s on v.student_email=s.student_email"

Source File: /SecurePages/default.aspx Line: 33


Every thing is fine when I execute on development machine in local mode, but when I place code on server and execute, then error. Following is the Source for the gridview followed by the referenced sqlServerdataSource . Appreciate any help.
thanks in advance

推荐答案

换行符似乎导致问题。听起来你的服务器上有一个部分编译的网站,并且由于某种原因它被包装。你需要修改换行,这样才能正常工作。
The line breaks appear to be causing the problem. It sounds like on your server you have a partially compiled site and for some reason it wrapped. You'll need to fix the line wrapping so it works OK.


这篇关于如何解决分析程序错误消息 - 服务器标记格式不正确。来源错误:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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