错误:无法使用设计视图打开 [英] Error: Could Not Open With Design View

查看:67
本文介绍了错误:无法使用设计视图打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有下表我不能switcha设计视图错误

消息说


无法在设计视图中打开。在''<%

...." value" ...%>''块中引用不同的值。


和产生错误的行是锚,但我无法使其工作。

< TABLE id =" tblDocList" DIR ="<%#strLangDir%GT;" style =" DISPLAY:inline"

cellSpacing =" 0" CELLPADDING = QUOT; 0"边界=" 0" width =" 150">

< TR>

< th width =" 4">

< img src =" MailTools / images / Icons / doc.jpg">< / th>

< TD align =" left" width =" 2">< INPUT onclick =" refresh(this);" id =" delmsg"

type =" checkbox">< / TD>

< TD align =" left" colSpan =" 2">< a

href =" javascript :__ doPostBack(''<%= this.ClientID%>:lbtnAction'' ,''showmsg,<%#

DataBinder.Eval(Container," DataItem.id")%>'')">

< %#DataBinder.Eval(Container," DataItem.subject")%>

< / a>

< / TD>

< / TR>

< / TABLE>

I have the following table which i can not switcha to design view error
message said

Could not open in Design view. Quote values differently inside a ''<%
...."value"... %>'' block.

and the line which make the error is anchor but i cannot make it work.
<TABLE id="tblDocList" dir="<%#strLangDir%>" style="DISPLAY:inline"
cellSpacing="0" cellPadding="0" border="0" width="150">
<TR>
<th width="4">
<img src="MailTools/images/Icons/doc.jpg"></th>
<TD align="left" width="2"><INPUT onclick="refresh(this);" id="delmsg"
type="checkbox"></TD>
<TD align="left" colSpan="2"><a
href="javascript:__doPostBack(''<%=this.ClientID%>: lbtnAction'',''showmsg,<%#
DataBinder.Eval(Container,"DataItem.id") %>'')">
<%# DataBinder.Eval(Container, "DataItem.subject") %>
</a>
</TD>
</TR>
</TABLE>

推荐答案

导致问题的一行是


< a

href =" javascript :__ doPostBack(''<%= this.ClientID%> ;:lbtnAction'',''showmsg,<%#

DataBinder.Eval(Container," DataItem.id")%>'')">

<%#DataBinder.Eval(Container," DataItem.subject")%>


如果你摆脱了DataBind的东西,你实际上得到了这个


< a href =" javascript :__ doPostBack(''ID'',''showmsg, )">


我想最后‘’引起的问题


"拉伊德Sawalha" <太阳神********* @ discussions.microsoft.com>在消息中写道

news:48 ********************************** @ microsof t.com ...
The line causing the problem is

<a
href="javascript:__doPostBack(''<%=this.ClientID%>: lbtnAction'',''showmsg,<%#
DataBinder.Eval(Container,"DataItem.id") %>'')">
<%# DataBinder.Eval(Container, "DataItem.subject") %>

If you get rid of the DataBind stuff you actually get this

<a href="javascript:__doPostBack(''ID'',''showmsg, '')">

I think the last '' is causing the problem

"Raed Sawalha" <Ra*********@discussions.microsoft.com> wrote in message
news:48**********************************@microsof t.com...
我有下表我不能switcha设计视图错误
消息说

无法在设计视图中打开。在''<%
..."" ...%>''块中引用值不同。

并且产生错误的行是锚点但是我不能使它工作。

< TABLE id =" tblDocList" DIR ="<%#strLangDir%GT;" style =" DISPLAY:inline"
cellSpacing =" 0" CELLPADDING = QUOT; 0"边界=" 0" width =" 150">
< TR>
< th width =" 4">
< img src =" MailTools / images / Icons / doc。 jpg">< / th>
< TD align =" left" width =" 2">< INPUT onclick =" refresh(this);" id =" delmsg"
type =" checkbox">< / TD>
< TD align =" left" colSpan =" 2">< a
href =" javascript :__ doPostBack(''<%= this.ClientID%>:lbtnAction'',''showmsg ,<%#
DataBinder.Eval(Container," DataItem.id")%>'')">
<%#DataBinder.Eval(Container," DataItem。 subject")%>
< / a>
< / TD>
< / TR>
< / TABLE>
I have the following table which i can not switcha to design view error
message said

Could not open in Design view. Quote values differently inside a ''<%
..."value"... %>'' block.

and the line which make the error is anchor but i cannot make it work.
<TABLE id="tblDocList" dir="<%#strLangDir%>" style="DISPLAY:inline"
cellSpacing="0" cellPadding="0" border="0" width="150">
<TR>
<th width="4">
<img src="MailTools/images/Icons/doc.jpg"></th>
<TD align="left" width="2"><INPUT onclick="refresh(this);" id="delmsg"
type="checkbox"></TD>
<TD align="left" colSpan="2"><a
href="javascript:__doPostBack(''<%=this.ClientID%>: lbtnAction'',''showmsg,<%#
DataBinder.Eval(Container,"DataItem.id") %>'')">
<%# DataBinder.Eval(Container, "DataItem.subject") %>
</a>
</TD>
</TR>
</TABLE>



我试图删除''但没有用,我做了以下格式


< a> href =" javascript :__ doPostBack(''<%= this.ClientID%>:lbtnAction'',showmsg,<%#
I tried to remove '' with no avail i did it will following formats

<a > href="javascript:__doPostBack(''<%=this.ClientID%>: lbtnAction'',showmsg,<%#
DataBinder.Eval(容器,DataItem.id)%>)">





< a>

href =" javascript :__ doPostBack(''<%= this.ClientID%>:lbtnAction'',''showmsg,<%#DataBinder.Eval(Container," DataItem.id")%>)">


但仍然是同样的错误


" JohnFol"写道:

造成问题的一行是

href =" javascript :__ doPostBack(''< %= this.ClientID%>:lbtnAction'',''showmsg,<%#
DataBinder.Eval(Container," DataItem.id")%>'')">
<%#DataBinder.Eval(Container," DataItem.subject")%>

如果你摆脱了DataBind的东西,你实际上得到了这个

< a href =" javascript :__ doPostBack(''ID'',''showmsg,'')">

我认为最后''是导致问题

Raed Sawalha <太阳神********* @ discussions.microsoft.com>在消息中写道
新闻:48 ********************************** @ microsof t.com。 ..
DataBinder.Eval(Container,"DataItem.id") %>)">
and

<a >
href="javascript:__doPostBack(''<%=this.ClientID%>: lbtnAction'',''showmsg,<%# DataBinder.Eval(Container,"DataItem.id") %>)">
but it still same error

"JohnFol" wrote:
The line causing the problem is

<a
href="javascript:__doPostBack(''<%=this.ClientID%>: lbtnAction'',''showmsg,<%#
DataBinder.Eval(Container,"DataItem.id") %>'')">
<%# DataBinder.Eval(Container, "DataItem.subject") %>

If you get rid of the DataBind stuff you actually get this

<a href="javascript:__doPostBack(''ID'',''showmsg, '')">

I think the last '' is causing the problem

"Raed Sawalha" <Ra*********@discussions.microsoft.com> wrote in message
news:48**********************************@microsof t.com...
我有下表我不能switcha设计视图错误
消息说

无法在设计视图中打开。在''<%
..."" ...%>''块中引用值不同。

并且产生错误的行是锚点但是我不能使它工作。

< TABLE id =" tblDocList" DIR ="<%#strLangDir%GT;" style =" DISPLAY:inline"
cellSpacing =" 0" CELLPADDING = QUOT; 0"边界=" 0" width =" 150">
< TR>
< th width =" 4">
< img src =" MailTools / images / Icons / doc。 jpg">< / th>
< TD align =" left" width =" 2">< INPUT onclick =" refresh(this);" id =" delmsg"
type =" checkbox">< / TD>
< TD align =" left" colSpan =" 2">< a
href =" javascript :__ doPostBack(''<%= this.ClientID%>:lbtnAction'',''showmsg ,<%#
DataBinder.Eval(Container," DataItem.id")%>'')">
<%#DataBinder.Eval(Container," DataItem。 subject")%>
< / a>
< / TD>
< / TR>
< / TABLE>
I have the following table which i can not switcha to design view error
message said

Could not open in Design view. Quote values differently inside a ''<%
..."value"... %>'' block.

and the line which make the error is anchor but i cannot make it work.
<TABLE id="tblDocList" dir="<%#strLangDir%>" style="DISPLAY:inline"
cellSpacing="0" cellPadding="0" border="0" width="150">
<TR>
<th width="4">
<img src="MailTools/images/Icons/doc.jpg"></th>
<TD align="left" width="2"><INPUT onclick="refresh(this);" id="delmsg"
type="checkbox"></TD>
<TD align="left" colSpan="2"><a
href="javascript:__doPostBack(''<%=this.ClientID%>: lbtnAction'',''showmsg,<%#
DataBinder.Eval(Container,"DataItem.id") %>'')">
<%# DataBinder.Eval(Container, "DataItem.subject") %>
</a>
</TD>
</TR>
</TABLE>




我删除了''没有avai,我也试过以下格式和

仍有同样的问题:


< a>

href =" javascript :__ doPostBack(''<%= this.ClientID%> ;:lbtnAction'',''showmsg,<%#
i removed the '' with no avai and also i tried will following formats and
still have the same problem :

<a >
href="javascript:__doPostBack(''<%=this.ClientID%>: lbtnAction'',''showmsg,<%#
DataBinder.Eval(Container," DataItem.id")%>)">





< a href =" javascript :__ doPostBack(''<%= this .ClientID%>:lbtnAction'',showmsg,<%#
DataBinder.Eval(Container," DataItem.id")%>)">


我认为问题来自于DataItem.id。但是如何在HTML中处理这个问题

" JohnFol"写道:

造成问题的一行是

href =" javascript :__ doPostBack(''< %= this.ClientID%>:lbtnAction'',''showmsg,<%#
DataBinder.Eval(Container," DataItem.id")%>'')">
<%#DataBinder.Eval(Container," DataItem.subject")%>

如果你摆脱了DataBind的东西,你实际上得到了这个

< a href =" javascript :__ doPostBack(''ID'',''showmsg,'')">

我认为最后''是导致问题

Raed Sawalha <太阳神********* @ discussions.microsoft.com>在消息中写道
新闻:48 ********************************** @ microsof t.com。 ..
DataBinder.Eval(Container,"DataItem.id") %>)">
and

<a href="javascript:__doPostBack(''<%=this.ClientID%>: lbtnAction'',showmsg,<%#
DataBinder.Eval(Container,"DataItem.id") %>)">
i think the problem comes from ,"DataItem.id" but how to handle this in HTML
"JohnFol" wrote:
The line causing the problem is

<a
href="javascript:__doPostBack(''<%=this.ClientID%>: lbtnAction'',''showmsg,<%#
DataBinder.Eval(Container,"DataItem.id") %>'')">
<%# DataBinder.Eval(Container, "DataItem.subject") %>

If you get rid of the DataBind stuff you actually get this

<a href="javascript:__doPostBack(''ID'',''showmsg, '')">

I think the last '' is causing the problem

"Raed Sawalha" <Ra*********@discussions.microsoft.com> wrote in message
news:48**********************************@microsof t.com...
我有下表我不能switcha设计视图错误
消息说

无法在设计视图中打开。在''<%
..."" ...%>''块中引用值不同。

并且产生错误的行是锚点但是我不能使它工作。

< TABLE id =" tblDocList" DIR ="<%#strLangDir%GT;" style =" DISPLAY:inline"
cellSpacing =" 0" CELLPADDING = QUOT; 0"边界=" 0" width =" 150">
< TR>
< th width =" 4">
< img src =" MailTools / images / Icons / doc。 jpg">< / th>
< TD align =" left" width =" 2">< INPUT onclick =" refresh(this);" id =" delmsg"
type =" checkbox">< / TD>
< TD align =" left" colSpan =" 2">< a
href =" javascript :__ doPostBack(''<%= this.ClientID%>:lbtnAction'',''showmsg ,<%#
DataBinder.Eval(Container," DataItem.id")%>'')">
<%#DataBinder.Eval(Container," DataItem。 subject")%>
< / a>
< / TD>
< / TR>
< / TABLE>
I have the following table which i can not switcha to design view error
message said

Could not open in Design view. Quote values differently inside a ''<%
..."value"... %>'' block.

and the line which make the error is anchor but i cannot make it work.
<TABLE id="tblDocList" dir="<%#strLangDir%>" style="DISPLAY:inline"
cellSpacing="0" cellPadding="0" border="0" width="150">
<TR>
<th width="4">
<img src="MailTools/images/Icons/doc.jpg"></th>
<TD align="left" width="2"><INPUT onclick="refresh(this);" id="delmsg"
type="checkbox"></TD>
<TD align="left" colSpan="2"><a
href="javascript:__doPostBack(''<%=this.ClientID%>: lbtnAction'',''showmsg,<%#
DataBinder.Eval(Container,"DataItem.id") %>'')">
<%# DataBinder.Eval(Container, "DataItem.subject") %>
</a>
</TD>
</TR>
</TABLE>




这篇关于错误:无法使用设计视图打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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