Facebook Sharer
选择您要替换的背景颜色:
【农历新年】背景图片:
个性化设定
 注册  找回密码
查看: 1110|回复: 0
打印 上一主题 下一主题

trigger问题asp.net,高手帮忙

[复制链接]

10

主题

0

好友

24

积分

初级会员

Rank: 1

跳转到指定楼层
1#
发表于 2012-9-10 01:52 PM |只看该作者 |倒序浏览
1) 以下的code是在page1.aspx
<td><div id="TabbedPanels1" class="TabbedPanels">
          <ul class="TabbedPanelsTabGroup">
            <li class="TabbedPanelsTab" tabindex="0" onclick="changesrc('iframe1','eContestDetail_History.aspx?option=<%=Request["id"].Trim().ToString() %>')">History</li>
            <li class="TabbedPanelsTab" tabindex="0" onclick="changesrc('iframe1','eContestDetail_Edit.aspx?cid=<%=Request["id"].Trim().ToString() %>')">Edit</li>
            <li class="TabbedPanelsTab" tabindex="0" onclick="changesrc('iframe1','eContestDetail_Win.aspx')">Winner</li>
            <li class="TabbedPanelsTab" tabindex="0" onclick="changesrc('iframe1','eContestDetail_Allot.aspx')">Allotment</li>
            <li class="TabbedPanelsTab" tabindex="0" onclick="changesrc('iframe1','eContest.aspx?cid=<%=Request["id"].Trim().ToString() %>')">ViewPage</li>
          </ul>

2)以下的code是在page2.aspx的page2.aspx.cs篇里我想在有?标号的地方加上什么code才可以trigger上面红色的<li>code里的code.
   protected void btnSave_Click(object sender, EventArgs e)
    {
        #region MyRegion
        UploadPic(FileUpload1.FileName);
        dal_pageLayout.CID = int.Parse(this.lblCid.Text.Trim());
        dal_pageLayout.PContestName = this.txtContestName.Text.ToString().Trim();
        if (FileUpload1.FileName != "")
        {
            this.PicPath = FileUpload1.FileName;
        }

        dal_pageLayout.PImgTop = this.PicPath;
        this.txtFilePath.Text = this.PicPath;
     ......................................................................省列

      int i = dal_pageLayout.Update_ContestLayout();
        if (i > 0)
        {
            
              this.AlertMsgSync(string.Format("Update  page successfully! "), "Information", "jCaution('loading...');");
              ??????????????????????????
               
           //  Response.Redirect(Request.RawUrl);
            /*  Response.Redirect("eContestDetail_History.aspx?option=<%=Request["id"].Trim().ToString() %>"); */
            //this.AlertMsgSync(string.Format("Update  page successfully! "), "Information", "jCaution('loading...');window.location='eContestPageSearch.aspx'");
        }
        else
        {
            this.AlertMsg("Add the page failed! please try again.", "Information");
        }
    }




div
收藏收藏0
您需要登录后才可以回帖 登录 | 注册

JBTALKS.CC |联系我们 |隐私政策 |Share

GMT+8, 2024-10-25 08:24 AM , Processed in 0.100996 second(s), 26 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

Ultra High-performance Dedicated Server powered by iCore Technology Sdn. Bhd.
Domain Registration | Web Hosting | Email Hosting | Forum Hosting | ECShop Hosting | Dedicated Server | Colocation Services
本论坛言论纯属发表者个人意见,与本论坛立场无关
Copyright © 2003-2012 JBTALKS.CC All Rights Reserved
合作联盟网站:
JBTALKS 马来西亚中文论坛 | JBTALKS我的空间 | ICORE TECHNOLOGY SDN. BHD.
回顶部