This is a migrated thread and some comments may be shown as answers.

Problem

1 Answer 38 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Coolbudy
Top achievements
Rank 1
Coolbudy asked on 13 Jun 2013, 12:41 PM
Here is my javacript  that open radwindow
  function RadWindowOpenCourseContinuen(num, cid) {
                var wnd = $find("<%=modalPopup.ClientID %>");
                wnd.setUrl("test.aspx");
                wnd.show();
                return false;
            }
Here is button that open radwindow
  <asp:Button ID="btnContinue" runat="server" CssClass="button" TabIndex="37" Text="Click here to continue..."
                                            OnClientClick="RadWindowOpenCourseContinuen(); return false; " />
Here is my code behind part
  string strhtmlnew = "javascript:RadWindowOpenCourseContinuen('1','" + Session["CID"] + "');";
 btnContinue.Attributes.Add("onclick", strhtmlnew);
Problem is not passed argument simple open test page

1 Answer, 1 is accepted

Sort by
0
Dhamodharan
Top achievements
Rank 1
answered on 14 Jun 2013, 11:54 AM
Hi,
Remove the OnclientClick event in the Button Declation.

add this code in code behind

 btnContinue.Attributes.Add("onclick", "return RadWindowOpenCourseContinuen(1, " + Session["CID"] + " );");



Thanks
Tags
General Discussions
Asked by
Coolbudy
Top achievements
Rank 1
Answers by
Dhamodharan
Top achievements
Rank 1
Share this question
or