前台:
function FN_Serch()
{
var key = document.getElementById("serchinput").value;
if(key=="")
{
alert('您还没有输入条件!');
return;
}else
{
window.location='DownLoad.aspx?key='+key+'';
}
}后台:
#region 条件查询资源信息列表
public void FN_SerchByFilePath()
{
Model.File mf = new Model.File();
BLL.NRBLL bn = new BLL.NRBLL();
string key = Request.QueryString["key"].ToString();
string key1 = key.Substring(key.LastIndexOf('\\'));
mf.Filepath = key;
if (bn.FN_SerchByFilePath(mf) != null)
{
this.RepeaterShow.DataSource = bn.FN_SerchByFilePath(mf).Tables["t_file"].DefaultView;
this.RepeaterShow.DataBind();
}
}点击前台的客户端按钮 怎么触发后台的这个函数
function FN_Serch()
{
var key = document.getElementById("serchinput").value;
if(key=="")
{
alert('您还没有输入条件!');
return;
}else
{
window.location='DownLoad.aspx?key='+key+'';
}
}后台:
#region 条件查询资源信息列表
public void FN_SerchByFilePath()
{
Model.File mf = new Model.File();
BLL.NRBLL bn = new BLL.NRBLL();
string key = Request.QueryString["key"].ToString();
string key1 = key.Substring(key.LastIndexOf('\\'));
mf.Filepath = key;
if (bn.FN_SerchByFilePath(mf) != null)
{
this.RepeaterShow.DataSource = bn.FN_SerchByFilePath(mf).Tables["t_file"].DefaultView;
this.RepeaterShow.DataBind();
}
}点击前台的客户端按钮 怎么触发后台的这个函数
解决方案 »
- <a href="javascript:history.go(-1);">后退</a>能不能传参
- 搜狐的视频播放技术
- 大家看这个功能该怎么实现
- 【新手问题】三层结构,UI层如何显示DAL的错误信息?
- 为什么本机可以,一上传到服务器就不行咯?
- asp.net动态读取数据库中的字段
- c#中如何判断一个变量为日期型?
- 很简单的问题--可是我不懂如何用javascript实现弹出窗口(无菜单和工具条的)
- C#如果重启SQLSERVER服务,高分求助
- 请问,在DataGrid中如何编写“编辑、更新、取消”事件的驱动vb.net代码?
- 视图可以写参数吗?
- DATALIST里的超链怎么判断类型跳转不同的页面
在 DownLoad.aspx的后台页面
protected void Page_Load(object sender, EventArgs e)
{
if(!string.IsNullOrEmpty(Request.QueryString["key"])
FN_SerchByFilePath()
}
我现在只会在ashx页面中处理 但是ashx中是没有repeater控件的 不要笑话我- -