Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Mobile > CustomAttribute in Mobile controls

Reply
Thread Tools

CustomAttribute in Mobile controls

 
 
JL
Guest
Posts: n/a
 
      12-14-2006
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
iPhone4,iPhone3,Ipad,Apple Mobile,Blackberry Mobile,HTC Mobile,LGMobile,Motorola Mobile,Nokia Mobile,Samsung Mobile chen selina C++ 0 07-13-2010 08:53 AM



Advertisments