帐号
注册
密码
登录
只需一步,快速开始
关闭
安全选项
找回密码
记住我
我的中心
登录或注册新用户,开通自己的个人中心
切换到窄版
快速搜索
帖子标题
作者
版块
产品使用及交流论坛
»
产品使用交流区
»
安装及使用交流
»
请教Xiyou老大: 新建自定义表单出错问题
产品使用交流区
安装及使用交流
案例交流及展示
系统改进和发展建议
系统发布及下载
用户交流区
网站技术资源区
网站营运交流
广告灌水专区
返回列表
查看:
2402
|
回复:
2
请教Xiyou老大: 新建自定义表单出错问题
[复制链接]
发送短消息
UID
51372
精华
0
查看公共资料
搜索主题
搜索帖子
jiloveyou100
组别
PageAdmin学员
生日
帖子
117
积分
216
性别
注册时间
2014-05-06
1
#
字体大小:
t
T
发表于
2014-06-18 23:00
|
只看楼主
我是菜鸟,域名备案没下来,没事做就尝试学习自定义表单编写,测试了很久,很多东西还弄不明白,所以向
Xiyou老大请教
专利列表
[url=]模型设置[/url]
<table width="100%" border="1" cellpadding="0" cellspacing="0" class="zlsjk_list">
<tr class="head">
<td width="5%" align="center"><b>序号</b></td>
<td width="8%" align="center"><b>专利号</b></td>
<td width="8%" align="center"><b>专利类别</b></td>
<td width="35%" align="center"><b>专利名称</b></td>
<td width="14%" align="center"><b>申请(专利权)人</b></td>
<td width="10%" align="center"><b>申请时间</b></td>
<td width="10%" align="center"><b>发明(设计)人</b></td>
<td width="10%" align="center"><b>专利代理人</b></td>
</tr>
<%
string style;
DataTable dt=Get_Data();
DataRow dr;
for(int i=0;i<dt.Rows.Count;i++)
{
dr=dt.Rows[i];
if(((i+1)%2)==0)
{
style="style='background-color:#FFF1DD'";
}
else
{
style="";
}
%>
<tr class="item" <%=style%>>
<td align="center"><%=dr["pa_serialno"]%></td>
<td align="center"><%=dr["pa_patentno"]%></td>
<td align="center"><%=dr["pa_patentlb"]%></td>
<td height="15px">
<a href="<%=Detail_Url(dr)%>"><%=dr["title"].ToString()%></a>
<td align="center"><%=dr["pa_applicant"]%></td>
<td align="center"><%=((DateTime)dr["thedate"]).ToString("yyyy-MM-dd")%></td>
<td align="center"><%=dr["pa_nventor"]%></td>
<td align="center"><%=dr["pa_theagent"]%></td>
</tr>
<%
}
%>
</table>
复制代码
专利内容模型
[url=]模型设置[/url]
<%
DataTable dt=Get_Data();
DataRow dr;
if(dt.Rows.Count>0)
{
dr=dt.Rows[0]; //说明:给dr赋值
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="zlsjkinfo">
<tr class="head">
<td colspan="2" align="center"><b>查看专利信息</b></td>
</tr>
<tr>
<td align="right" width="100px">专利号:</td>
<td><%=dr["pa_patentno"]%></td>
</tr>
<tr>
<td align="right">专利类别:</td>
<td><%=dr["pa_patentlb"]%></td>
</tr>
<tr>
<td align="right">专利名称:</td>
<td><%=Server.HtmlEncode(dr["title"].ToString())%></td>
</tr>
<tr>
<td align="right">申请(专利权)人:</td>
<td><%=dr["pa_applicant"]%></td>
</tr>
<tr>
<td align="right">申请时间:</td>
<td><%=((DateTime)dr["thedate"]).ToString("yyyy-MM-dd")%></td>
</tr>
<tr>
<td align="right">发明(设计)人:</td>
<td><%=dr["pa_nventor"]%></td>
</tr>
<tr>
<tr>
<td align="right">专利代理人:</td>
<td><%=dr["pa_theagent"]%></td>
</tr>
<tr>
<td align="right">摘 要:</td>
<td><%=dr["content"]%></td>
</tr>
<tr>
<td align="right">主权项:</td>
<td><%=dr["content"]%></td>
</tr>
<%
}
}
%>
<tr>
<td colspan="2" align="center"><a href="javascript:history.back()">返回上一页</a></td>
</tr>
</table>
<%
}
%>
复制代码
路径有问题?
内容页不显示,列表标题点击进入(内容页)提示错误:
Server Error in '/' Application.
Compilation Error
Description:
An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message:
CS0116: A namespace does not directly contain members such as fields or methods
Source Error:
Line 67: <%Line 68: }
Line 69: %><%conn.Close();%>
Line 70: <script type="text/javascript">Get_Info("<%=Thetable%>","<%=Detail_Id%>")</script>Line 71: <asp
laceHolder id="P_Comment" runat="server"/></div></div>
Source File:
e:\web\site\e\zdymodel\zlsjk\detail\84.ascx
Line:
69
Show Detailed Compiler Output:
分享
转发
TOP
发送短消息
UID
27
精华
0
查看公共资料
搜索主题
搜索帖子
xiyou
组别
管理员
生日
帖子
16473
积分
27338
性别
注册时间
2015-11-29
2
#
字体大小:
t
T
发表于
2014-06-19 12:48
|
只看该用户
你多写了一个
<%
}
}
%>
TOP
发送短消息
UID
51372
精华
0
查看公共资料
搜索主题
搜索帖子
jiloveyou100
组别
PageAdmin学员
生日
帖子
117
积分
216
性别
注册时间
2014-05-06
3
#
字体大小:
t
T
发表于
2014-06-19 13:06
|
只看楼主
呵呵,xiyou老大就是牛,一点就破。太谢谢您!
TOP
上一主题
|
下一主题
返回列表
高级编辑器
B
Color
Image
Link
Quote
Code
Smilies
默认表情
你需要登录后才可以发帖
登录
|
注册
发表回复
查看背景广告
隐藏
发新主题
核心产品:Ecreator低代码平台、QuickSSO统一身份认证平台、pageadmin内容管理系统
核心产品:Ecreator低代码平台、QuickSSO统一身份认证平台、pageadmin内容管理系统
产品使用交流区
安装及使用交流
案例交流及展示
系统改进和发展建议
系统发布及下载
用户交流区
网站技术资源区
网站营运交流
广告灌水专区
TOP
设置头像
个人资料
更改密码
用户组
收藏夹
积分
Default