如何在 radwindow 中设置 navigateurl javascript
?
我想在我的页面中使用 radwindow,并在拖曳部分使用它。
我有一个 radwindow,我在 2 部分中使用它。
<telerik:RadWindowManager ID="RadWindowManager1" ShowContentDuringLoad="false"
VisibleStatusbar="false"
RegisterWithScriptManager="True"
EnableShadow="True" ReloadOnShow="true" Width="800px" Height="550px"
runat="server">
<Windows>
<telerik:RadWindow ID="modalPopup" runat="server" Modal="True"
>
</telerik:RadWindow>
</Windows></telerik:RadWindowManager>
我javascript
用于显示 radwindow。
<telerik:RadCodeBlock runat="server" ID="rdbScripts">
<script type="text/javascript">
function showDialogInitially() {
var wnd = $find("<%=modalPopup.ClientID %>");
wnd.show();
Sys.Application.remove_load(showDialogInitially);
}
当我单击一个按钮时,设置Navigateurl
当radwindow = ("DefCall.aspx")
我单击其他按钮时,通过或其他方式设置navigateurl = ("DefTask.aspx")
并将 2 值传递给子页面。QueryString
protected void btnDefCall_Click(object sender, EventArgs e)
{
string strURL = string.Format("../PhoneCall/DefPhoneCall.aspx
?FormTypeID={0}&FormID={1}", number1,number2);
modalPopup.NavigateUrl = strURL;
ScriptManager.RegisterStartupScript(Page, GetType(), "PopupScript", string.Format("javascript:showDialogInitially()"), true);
}
protected void btnDefTask_Click(object sender, EventArgs e)
{
string strURL = string.Format("../Task/DefTask.aspx?FormTypeID={0}&FormID={1}", (int)clsHelper.FormType.Lead, int.Parse(Request.QueryString["ID"].ToString()));
modalPopup.NavigateUrl = strURL;
ScriptManager.RegisterStartupScript(Page, GetType(), "PopupScript", string.Format("javascript:showDialogInitially()"), true);
}