CustomAttribute in Mobile controls

Discussion in 'ASP .Net Mobile' started by JL, Dec 14, 2006.

  1. JL

    JL Guest

    I have a js file with the function SelectedIndexChanged

    I have added the below code also in the aspx
    <script language="javascript" src="/Scripts/Search.js"></script>

    In the cs file I have added the customeAttribute as shown below
    ddlSrch.CustomAttributes.Add("onchange", string.Format(
    "SelectedIndexChanged('{0}','{1}','{2}');", ddlSrch.ClientID,
    tbSrch.ClientID, tb1st.ClientID));

    In the web.config I have enabled
    <mobileControls allowCustomAttributes="true" />
    But still the javascript method is not called.
    JL, Dec 14, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Zahoor
    Replies:
    1
    Views:
    791
    Darryl L. Pierce
    Nov 15, 2003
  2. ryjack
    Replies:
    0
    Views:
    332
    ryjack
    Jul 30, 2006
  3. =?Utf-8?B?QWxleCBNYWdoZW4=?=

    Non "mobile" controls on Mobile ASPX

    =?Utf-8?B?QWxleCBNYWdoZW4=?=, Aug 17, 2007, in forum: ASP .Net
    Replies:
    3
    Views:
    650
    Steven Cheng[MSFT]
    Aug 20, 2007
  4. chen selina
    Replies:
    0
    Views:
    1,249
    chen selina
    Jul 13, 2010
  5. dawson
    Replies:
    0
    Views:
    158
    dawson
    Jul 12, 2005
Loading...

Share This Page