问题描述
我用的是fineUI,代码如下,请教将openUrl设置为test111.aspx?id=<%#Eval("busNo")%>控件:<x:LinkButtonID="bn"Text="受理"runat="server"OnClick="Button1_Click"></x:LinkButton>
窗口:<x:WindowID="winmdyPwd"Icon="LockKey"Title="修改密码"IFrameUrl="busAcpT.aspx"Hidden="true"EnableIFrame="true"Target="Parent"runat="server"IsModal="true"Width="600px"Height="400px"CloseAction="HidePostBack"></x:Window>
cs代码:if(!IsPostBack){txtKey.Text=cKey;Get_DataList();foreach(RepeaterItemiteminrdxw.Items){FineUI.LinkButtonbtn=item.FindControl("bn")asFineUI.LinkButton;stringopenUrl=String.Format("test111.aspx?id=<script>encodeURIComponent({0})</script>",btn.GetValueReference());btn.OnClientClick=winmdyPwd.GetSaveStateReference(btn.ClientID)+winmdyPwd.GetShowReference("openUrl");}}
protectedvoidButton1_Click(objectsender,EventArgse){foreach(RepeaterItemiteminrdxw.Items){FineUI.LinkButtonbtn=item.FindControl("bn")asFineUI.LinkButton;stringopenUrl=String.Format("test111.aspx?id={0}",HttpUtility.UrlEncode(btn.Text));PageContext.RegisterStartupScript(winmdyPwd.GetSaveStateReference(btn.ClientID)+winmdyPwd.GetShowReference(openUrl));}}
解决方案
解决方案二:
在线等,请高人指点
解决方案三:
请教如何将“test111.aspx?id=中的id设置成绑定数据<%#Eval("busNo")%>