PDA

View Full Version : نمایش فارسی اعداد در dropdownlist



Monad.
یک شنبه 13 آذر 1384, 09:18 صبح
بیشتر کنترل ها در webform بعد از تغییر align سلولی که داخلش هستن و یا تغییر dir صفحه ، اعداد را به فارسی نمایش می دهند اما dropdownlist چه وقتی که bind شده به databasae و چه وقتی که item هاش به صورت دستی بهش اضافه شده ، اعداد را فارسی نمایش نمی ده،راه حلی براش وجود داره ؟

اَرژنگ
یک شنبه 13 آذر 1384, 18:49 عصر
<asp:DropDownList ID="DropDownList1" runat="server" OnPreRender="DropDownList1_PreRender">

<asp:ListItem Value="0">٠</asp:ListItem>

<asp:ListItem Value="1">١</asp:ListItem>

<asp:ListItem Value="2">٢</asp:ListItem>

<asp:ListItem Value="3">٣</asp:ListItem>

<asp:ListItem Value="4">٤</asp:ListItem>

<asp:ListItem Value="5">٥</asp:ListItem>

<asp:ListItem Value="6">٦</asp:ListItem>

<asp:ListItem Value="7">٧</asp:ListItem>

<asp:ListItem Value="8">٨</asp:ListItem>

<asp:ListItem Value="9">٩</asp:ListItem>

</asp:DropDownList></div>

Monad.
یک شنبه 13 آذر 1384, 20:34 عصر
باتشکر،اما کدی که نوشتید برای اطلاعاتی که به صورت دستی وارد شده جواب میده،نیاز اصلی من در زمانی هست که داده ها از database میان ،که اونوقت نمیتونم از listItem استفاده کنم.در PreRender از Action مربوط به dropdownlist چیزی مربوط به این سوال نوشته بودید که اینجا جا افتاده ؟