未能在"设计"视图中打开,用引号将"<%%>"块括起来,该块用作属性值或用在<SELECT>元素中
<html>
<head>
<title> </title>
<meta http-equiv= "Content-Type " content= "text/html; charset=gb2312 ">
<link href= "css/css.css " rel= "stylesheet " type= "text/css ">
</head>
<%if (Action== "modify "){%>
<form action= "Usermodify.aspx?UserName= ' <%=UserName%> ' " method= "post " name= "form1 ">
<%}
else {%>
<form action= "success.aspx " method= "post " name= "form1 ">
<%}%>
<table width= "89% " border= "0 " align= "center " class= "bar ">
<tr>
<td height= "26 " colspan= "2 " align=center> 用户资料 </td>
</tr>
<tr>
<td width= "23% " align=right> 用户名 </td>
<td width= "77% ">
<%if (Action== "modify "){%>
<input name= "UserName " type= "text " class= "unnamed2 " id= "UserName " size= "20 " maxlength= "20 " Value= ' <%=UserName%> ' disabled>
<%}
else {%>
<input name= "UserName " type= "text " class= "unnamed2 " id= "UserName " size= "20 " maxlength= "20 " Value= ' <%=UserName%> ' >
<%}%>
</td>
</tr>
<%if (Request.QueryString[ "UserName "].ToString()== " "){%>
<tr>
<td align=right> 密码 </td>
<td> <input name= "PassWord " type= "password " class= "unnamed2 " id= "PassWord " size= "20 " maxlength= "20 " Value= ' <%=Pass%> '>
<input name= "PassWord2 " type= "password " class= "unnamed2 " id= "PassWord2 " value= " " size= "20 "> </td>
</tr>
<%}%>
<tr>
<td align=right> 性别 </td>
<td> 男
<input name= "Sex " type= "radio " value= "1 " <%if (sex== "1 "){
Response.Write( "checked ");
}
%> >
女
<input type= "radio " name= "Sex " value= "2 " <%if (sex== "2 "){
Response.Write( "checked ");
}
%> > </td>
</tr>
<tr>
<td align=right> E-mail </td>
<td> <input name= "mail " type= "text " class= "unnamed2 " id= "mail " size= "40 " maxlength= "40 " Value= ' <%=mail%> '> </td>
</tr>
<tr>
<td align=right> qq号码 </td>
<td> <input name= "QQ " type= "text " class= "unnamed2 " id= "QQ " size= "20 " maxlength= "20 " Value= ' <%=QQ%> '> </td>
</tr>
<tr>
<td align=right> 城市 </td>
<td> <input name= "Location " type= "text " class= "unnamed2 " id= "Location " size= "50 " maxlength= "50 " Value= ' <%=loca%> > ' </td>
</tr>
<tr>
<td align=right> 签名 </td>
<td> <textarea name= "Sign " cols= "52 " rows= "4 " class= "unnamed2 " id= "Sign2 " > <%=Sign%> </textarea> </td>
</tr>
<tr>
<td> </td>
<td>
<%if (Request.QueryString[ "UserName "].ToString()== " "){%>
<input name= "Submit " type= "submit " class= "btn " value= "提交 "> <input name= "Submit2 " type= "reset " class= "btn " value= "重置 ">
</td>
</tr>
</table>
</form>
</body>
</html>
[解决办法]
去看编译错误,很多, 你的 <body> 标签到哪里去了?
<tr>
<td align=right> 城市 </td>
<td> <input name= "Location " type= "text " class= "unnamed2 " id= "Location " size= "50 " maxlength= "50 " Value= ' <%=loca%> > ' </td>
</tr>
这句input的结束标签怎么写的?最后以‘结尾???
估计是老版本DM生成的,大部分不符合xhtml标准,楼主可以用VS2005好好检查
[解决办法]
这是什么啊?
看起来是ASP,但语法又是C#,更不象.net 2003 和 .net 2005,我第一次看到这样的代码~~~
[解决办法]
楼主受ASP的影响太深了,还没转变过来。还是改成设计和代码分离的模式吧!
[解决办法]
代码太乱了.
在vs2003中,该单引号的地方绝对不能用双引号,否则就不能转换到编辑状态.所有的符号都不能有错.
还有应该把UI层跟逻辑层分开.这样天乱了,不利于代码的管理.
[解决办法]
哦,看错了~~~
这样的代码只能避免 aa= ' <%%> ' 这样的代码,或者用其他工具打开页面。