将postbackurl与linkbutton的click事件一起使用 [英] use postbackurl with click event of linkbutton

查看:109
本文介绍了将postbackurl与linkbutton的click事件一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hiiiiiii
当我在单击事件之前使用postbackurl时,页面重定向到post backurl中的页面thet,而click事件则触发
愿意这样做,但仍然是一项艰巨的工作

hiiiiiii
when i use postbackurl before click event the page redirect to the page thet in post backurl and the click event dosent fire
itry to do that but it is still dosent work

protected void Link_start_Click(object sender, EventArgs e)
{

    //---------Asmaa 5/10/2011----------------//
    qbank_finsh_data_obj.Studentid = 1;
    qbank_finsh_data_obj.Qb_id = int.Parse(Request.QueryString["container_id"]);
    qbank_finsh_data_obj.Month = Request.QueryString["month"];

    qbank_finsh_data_obj.Isfinish = false;
    //-------------student id sould get from session-------------//

    qbank_finsh_obj.Add_container_finish(qbank_finsh_data_obj);
    Link_start.PostBackUrl = "Review_qbank.aspx?container_id=" + qbank_finsh_data_obj.Qb_id + "&month=" + month;
}



我在代码



i used the postbackurl in after my code

推荐答案

而不是
之后使用了postbackurl
Instead of

Link_start.PostBackUrl = "Review_qbank.aspx?container_id=" + qbank_finsh_data_obj.Qb_id + "&month=" + month;




使用




use

Response.Redirect("Review_qbank.aspx?container_id=" + qbank_finsh_data_obj.Qb_id + "&month=" + month");


这篇关于将postbackurl与linkbutton的click事件一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆