locked
repeaterEvent RRS feed

  • Question

  • User-103005079 posted

      hi all,

     

     Can Repeater_ItemCommand can be called in another click event.plz tell me

     

    thanks in advance,

    Monday, November 9, 2009 5:17 AM

Answers

  • User1414178881 posted

    You need to change the html of the anchor to this:

    <a href="javascript:void(0);"  onclick="javascript:calendar_window=window.open('VendorSearch.aspx?Cntrlname=<%=hdnVendorName.ClientID%>&Cntrl2name=<%=hdnVendor.ClientID%>&Cntrl3name=<%=btnHidden.ClientID%>','calendar_window','width=355,height=400,top=215,left=600');calendar_window.focus() ;">


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, November 9, 2009 7:33 AM

All replies

  • User1414178881 posted

    I don't understand your question,would you please tell me what are you trying to achieve?with a sample maybe?

    If you meant to call it and specify your commandname and source,..etc.then you need to create your own eventargument then pass it like this:

    RepeaterCommandEventArgs myarg = new RepeaterCommandEventArgs(null,null,new CommandEventArgs("Select",null));
    Repeater1_ItemCommand(this, myarg);



    Monday, November 9, 2009 6:01 AM
  • User-103005079 posted

    hi thanks for quick reply,

     

     Actually i am having repeater in my page in that iam calling 

    <a href="javascript:calendar_window=window.open('VendorSearch.aspx?Cntrlname=<%=hdnVendorName.ClientID%>&Cntrl2name=<%=hdnVendor.ClientID%>&Cntrl3name=<%=btnHidden.ClientID%>','calendar_window','width=355,height=400,top=215,left=600');calendar_window.focus() ">

    Assign Vendor</a>

     

    but this href tag does't contain command name or command argument.so,when i select one vendor the perticular vendor is repeating to repeater

     

    Monday, November 9, 2009 7:04 AM
  • User1414178881 posted

    You need to change the html of the anchor to this:

    <a href="javascript:void(0);"  onclick="javascript:calendar_window=window.open('VendorSearch.aspx?Cntrlname=<%=hdnVendorName.ClientID%>&Cntrl2name=<%=hdnVendor.ClientID%>&Cntrl3name=<%=btnHidden.ClientID%>','calendar_window','width=355,height=400,top=215,left=600');calendar_window.focus() ;">


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, November 9, 2009 7:33 AM