HighTechTalks DotNet Forums  

CustomAttribute in Mobile controls

ASP.net Mobile microsoft.public.dotnet.framework.aspnet.mobile


Discuss CustomAttribute in Mobile controls in the ASP.net Mobile forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
JL
 
Posts: n/a

Default CustomAttribute in Mobile controls - 12-14-2006 , 03:32 PM






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 Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.