Click here to Skip to main content
16,016,537 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

i am using Ajax control toolkit.

and put a slider control on my page for selecting currency.
it works fine with only number but problem with currency

now i want a $ symbol in text box with separated by ','

just like $150,000 . when i change it $160,000 it reflect on slider also.



please help me .
Posted
Updated 17-Mar-11 0:24am
v2
Comments
Wild-Programmer 17-Mar-11 6:25am    
Please add a little more detail.
rakeshpatil1234 17-Mar-11 6:31am    
hi amit, i take a ajax SliderExtender

<asp:TextBox ID="txtAnnualIncome" runat="server" Width="97%" Style="text-align: right">95000
<asp:TextBox runat="server" ID="txtAnnualIncome_Trg" />
<cc1:SliderExtender ID="SliderExtender2" runat="server" BehaviorID="txtAnnualIncome_Trg"
TargetControlID="txtAnnualIncome_Trg" BoundControlID="txtAnnualIncome" Orientation="Horizontal"
EnableHandleAnimation="true" />

now in txtAnnualIncome text box i want formated currancy text as '$150,000' and able to change so that slider will change.
Albin Abel 17-Mar-11 7:03am    
Why don't just deformat your currency in to number to that textbox?
rakeshpatil1234 17-Mar-11 7:34am    
i do applay javascript onchange event on text box and deformate string but before that slider event is call so i fail to call
can you give some sort of code for me.

thanks for replay

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900