请问一下这个分类ID如何获取?
本帖最后由 zaiwu119 于 2009-2-7 17:44 编辑因为有两个select,就不知道如何获取了。
<td valign="top" class="itit" style="height: 21px">
<span class="caution">*</span>所属分类:</td>
<td valign="top" class="idata" style="height: 21px; width: 771px;">
<select name="ddlSortP" id="ddlSortP" style="width:78px;">
<option selected="selected" value="1">新闻资讯</option>
<option value="2">建筑研究</option>
<option value="36">展会资讯</option>
<option value="45">产品资讯</option>
</select><select name="ddlSort" id="ddlSort" style="width:73px;">
<option value="3">今日焦点</option>
<option value="4">今日头条</option>
<option value="5">行业动态</option>
<option value="23">设计师报道</option>
<option value="34">工程资讯</option>
<option value="46">工程营销资讯</option>
<option value="47">企业及产品推荐</option>
<option value="48">企业及产品推荐资讯</option>
<option value="51">设计院资讯</option>
<option value="52">设计院新闻</option>
<option value="53">效果公告</option>
<option value="54">项目信息精选</option>
<option value="55">企业资讯</option>
整站的html代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1"><meta http-equiv="Content-Type" content="text/html; charset=utf8" /><title>
发布新闻资讯
</title><link rel="stylesheet" href="../css/common.css" type="text/css" />
<script language="javascript" type="text/javascript">
</script>
</head>
<body>
<form name="form1" method="post" action="Post_NewsInfo_Step_1.aspx" id="form1" enctype="multipart/form-data">
<div>
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__LASTFOCUS" id="__LASTFOCUS" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJNjc4NzUzMTc2DxYIHghtZW1iZXJJZAUCMzceC21lbWJlckxldmVsBQE3HgttZW1iZXJFbWFpbAUTYWRtaW5ANTF4aWFvZ3VvLmNvbR4NY29tcGFueUluZm9JZAUBORYCAgMPFgIeB2VuY3R5cGUFE211bHRpcGFydC9mb3JtLWRhdGEWBAIFDxAPFgYeDURhdGFUZXh0RmllbGQFDG5ld3NTb3J0TmFtZR4ORGF0YVZhbHVlRmllbGQFCm5ld3NTb3J0SWQeC18hRGF0YUJvdW5kZ2QQFQQM5paw6Ze76LWE6K6vDOW7uuetkeeglOeptgzlsZXkvJrotYTorq8M5Lqn5ZOB6LWE6K6vFQQBMQEyAjM2AjQ1FCsDBGdnZ2cWAWZkAgYPEA8WBh8FBQxuZXdzU29ydE5hbWUfBgUKbmV3c1NvcnRJZB8HZ2QQFQ0M5LuK5pel54Sm54K5DOS7iuaXpeWktOadoQzooYzkuJrliqjmgIEP6K6+6K6h5biI5oql6YGTDOW3peeoi+i1hOiurxLlt6XnqIvokKXplIDotYTorq8V5LyB5Lia5Y+K5Lqn5ZOB5o6o6I2QG+S8geS4muWPiuS6p+WTgeaOqOiNkOi1hOiurw/orr7orqHpmaLotYTorq8P6K6+6K6h6Zmi5paw6Ze7DOaViOaenOWFrOWRihLpobnnm67kv6Hmga/nsr7pgIkM5LyB5Lia6LWE6K6vFQ0BMwE0ATUCMjMCMzQCNDYCNDcCNDgCNTECNTICNTMCNTQCNTUUKwMNZ2dnZ2dnZ2dnZ2dnZ2RkGAEFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYDBQlDaGVja0JveDEFCUNoZWNrQm94MgUJQ2hlY2tCb3gznkHsHPq0fnjHSI3kO11Ev6rvfog=" />
</div>
<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['form1'];
if (!theForm) {
theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
//]]>
</script>
<div>
<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWHwKGhoT9CwL55JyzBAK9oIjKBgL/g5qkDQLw7LDKAQLx7LDKAQLy7MjJAQLz7MzJAQLy7PDJCALz7PDJCAL07PDJCALx7ITKCALy7IDKCALz7IjKCALz7JTKCALz7NDJCAL07LzKCAL07LjKCAL07ITKCAL07IDKCAL07IzKCALs5I6BBgKvzsotAo/ltsMBAr6x09wIAoLk17sJAv/j17sJAoDk17sJAuKV9qILApy3uJIMAqC3sP0K8tDUSnzgmlq7Fm7khcvoQhEwrQ4=" />
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="itable">
<tr>
<th valign="top" class="itit none">
</th>
<th valign="top" class="idata none" style="width: 771px">
</th>
</tr>
<tr>
<td valign="top" class="itit" style="width: 150px;">
<span class="caution">*</span>标题:</td>
<td valign="top" class="idata" style="width: 771px">
<input name="txtTitle" type="text" id="txtTitle" style="width:212px;" /></td>
</tr>
<tr>
<td valign="top" class="itit" style="width: 150px; height: 23px;">
<span class="caution">*</span>作者:</td>
<td valign="top" class="idata" style="height: 23px; width: 771px;">
<input name="txtAuthor" type="text" id="txtAuthor" style="width:212px;" /></td>
</tr>
<tr>
<td valign="top" class="itit" style="height: 21px">
<span class="caution">*</span>所属分类:</td>
<td valign="top" class="idata" style="height: 21px; width: 771px;">
<select name="ddlSortP" id="ddlSortP" style="width:78px;">
<option selected="selected" value="1">新闻资讯</option>
<option value="2">建筑研究</option>
<option value="36">展会资讯</option>
<option value="45">产品资讯</option>
</select><select name="ddlSort" id="ddlSort" style="width:73px;">
<option value="3">今日焦点</option>
<option value="4">今日头条</option>
<option value="5">行业动态</option>
<option value="23">设计师报道</option>
<option value="34">工程资讯</option>
<option value="46">工程营销资讯</option>
<option value="47">企业及产品推荐</option>
<option value="48">企业及产品推荐资讯</option>
<option value="51">设计院资讯</option>
<option value="52">设计院新闻</option>
<option value="53">效果公告</option>
<option value="54">项目信息精选</option>
<option value="55">企业资讯</option>
</select><a href="create_newssort.aspx"><em>创建分类</em></a></td>
</tr>
<tr>
<td valign="top" class="itit">
<span class="caution">*</span>详细内容:</td>
<td valign="top" class="idata" style="width: 771px">
<div><input type="hidden" id="FCKeditor1" name="FCKeditor1" value="" /><input type="hidden" id="FCKeditor1___Config" value="HtmlEncodeOutput=true" /><iframe id="FCKeditor1___Frame" src="/Common/fckeditor/editor/fckeditor.html?InstanceName=FCKeditor1&Toolbar=Default" width="100%" height="550px" frameborder="no" scrolling="no"></iframe></div>
</td>
</tr>
<tr>
<td valign="top" class="itit">
<span class="caution">*</span>摘要:</td>
<td valign="top" class="idata" style="width: 771px">
<textarea name="txtSummary" rows="2" cols="20" id="txtSummary" style="height:128px;width:496px;"></textarea></td>
</tr>
<tr>
<td valign="top" class="itit">
<span class="caution">*</span>来源:</td>
<td valign="top" class="idata" style="width: 771px">
<input name="txtFrom" type="text" id="txtFrom" style="width:206px;" /></td>
</tr>
<tr>
<td valign="top" class="itit" style="height: 23px">
<span class="caution">*</span>来源地址:</td>
<td valign="top" class="idata" style="width: 771px; height: 23px">
<input name="txtFromUrl" type="text" id="txtFromUrl" style="width:205px;" /></td>
</tr>
<tr>
<td valign="top" class="itit" style="height: 23px">
<span class="caution">*</span>关键字:</td>
<td valign="top" class="idata" style="height: 23px; width: 771px;">
<input name="txtKeyword" type="text" id="txtKeyword" style="width:204px;" /></td>
</tr>
<tr>
<td valign="top" class="itit" style="height: 21px">
<span class="caution">*</span>推荐:</td>
<td valign="top" class="idata" style="width: 771px; height: 21px;">
<input id="CheckBox1" type="checkbox" name="CheckBox1" /><label for="CheckBox1">推荐到首页</label>
<input id="CheckBox2" type="checkbox" name="CheckBox2" /><label for="CheckBox2">焦点</label>
<input id="CheckBox3" type="checkbox" name="CheckBox3" /><label for="CheckBox3">头条</label></td>
</tr>
<tr>
<td valign="top" class="itit">
<span class="caution">*</span>标题图片:</td>
<td valign="top" class="idata" style="width: 771px">
<input name="newsPic" type="file" id="newsPic" style="width: 216px;" /></td>
</tr>
<tr>
<td valign="top" class="itit" style="height: 24px">
<span class="caution">*</span>附件:</td>
<td valign="top" class="idata" style="width: 771px; height: 24px;">
<input name="txtAttachment" type="text" value="附件" id="txtAttachment" style="width:216px;" /></td>
</tr>
</table>
<div class="mbbtn">
 <input type="submit" name="btnSave" value="确认发布" id="btnSave" />
<input type="submit" name="btnReset" value="重置" id="btnReset" style="width:80px;" />
</div>
</form>
</body>
</html> 你取第一个就可以了
开始: <select name="ddlSortP" id="ddlSortP" style="*">
结束:</select>
列表那里:<option value="[分类ID]">[分类名称]</option>
当然地址你要填写正确了
欢迎加入 火车头菜鸟交流群71454268共同学习火车头 二楼说得不错.支持
盘龙最新章节美女图片 二楼正解 谢谢~~~~~~~~~~~~~~~~~~
页:
[1]