Hi,
I would like to open a aspx page at Radwindow and passing a value by querystring from a button click event.
Without querystring , I was successful , but stuck-up at passing the value.
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">
function ShowAddSubLevel(id) {
window.radopen("AddCausePopup.aspx?Cause_Id=" + id, "UserListDialog");
return false;
</script>
</telerik:RadCodeBlock>
--------------------------------------------
<asp:Panel ID="pnlShowCompany" runat="server">
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Behaviors="Close, Move, Reload">
<Windows>
<telerik:RadWindow ID="UserListDialog" runat="server" Title="Manage actions" Height="610px"
Width="575px" Left="150px" ReloadOnShow="true" ShowContentDuringLoad="false" Modal="true" VisibleStatusbar="false" Animation="Fade" />
</Windows>
</telerik:RadWindowManager>
</asp:Panel>
protected void BtnAddSublevel_Click(object sender, EventArgs e)
{
................
............
Cause_Id = Convert.ToInt32(DtCause1.Rows[0][0].ToString());
...............
...............
ClientScript.RegisterStartupScript(Page.GetType(), "mykey", "ShowAddSubLevel(21);", true);
}
---------------------------------------------
First of all, I am not sure how to pass Cause_Id at ShowAddSubLevel(Cause_Id)??
and even statically RadWindow is not showing.
Please help me out.
Thanks,
Debasish
I would like to open a aspx page at Radwindow and passing a value by querystring from a button click event.
Without querystring , I was successful , but stuck-up at passing the value.
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">
function ShowAddSubLevel(id) {
window.radopen("AddCausePopup.aspx?Cause_Id=" + id, "UserListDialog");
return false;
</script>
</telerik:RadCodeBlock>
--------------------------------------------
<asp:Panel ID="pnlShowCompany" runat="server">
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Behaviors="Close, Move, Reload">
<Windows>
<telerik:RadWindow ID="UserListDialog" runat="server" Title="Manage actions" Height="610px"
Width="575px" Left="150px" ReloadOnShow="true" ShowContentDuringLoad="false" Modal="true" VisibleStatusbar="false" Animation="Fade" />
</Windows>
</telerik:RadWindowManager>
</asp:Panel>
protected void BtnAddSublevel_Click(object sender, EventArgs e)
{
................
............
Cause_Id = Convert.ToInt32(DtCause1.Rows[0][0].ToString());
...............
...............
ClientScript.RegisterStartupScript(Page.GetType(), "mykey", "ShowAddSubLevel(21);", true);
}
---------------------------------------------
First of all, I am not sure how to pass Cause_Id at ShowAddSubLevel(Cause_Id)??
and even statically RadWindow is not showing.
Please help me out.
Thanks,
Debasish