<script type="text/javascript">
function BrowseServer(inputId) {
var finder = new CKFinder();
finder.basePath = 'ckfinder/'; //导入CKFinder的路径
finder.selectActionFunction = SetFileField; //设置文件被选中时的函数
finder.selectActionData = inputId; //接收地址的input ID
finder.popup();
}
//文件选中时执行
function SetFileField(fileUrl, data) {
document.getElementById("ctl00_ctl00_MainContent_dataContent_txtImgPath").value = fileUrl;
}
</script>
<asp:TextBox ID="txtImgPath" runat="server" Width="200px"></asp:TextBox><input id="bt_img" type="button"
value="浏览" οnclick="BrowseServer('<%=txtImgPath.ID %>');" />
独立使用CKFinder,调出图片管理器.