Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

telerik -- supercharge your DNN websites
  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  "admin\Modules\modulesettings" Control Seems to fail when the culture is "ar-SA"
Previous Previous
 
Next Next
New Post 7/28/2008 3:16 PM
User is offline Anas Ghanem
40 posts
10th Ranked


"admin\Modules\modulesettings" Control Seems to fail when the culture is "ar-SA"  

Hi all ,

When i set the DNN culture to arabic - saudi arabia , the DNN DateEdit control doesn't work proeprly , it seems that the DNN is not working well with Hijri calendar

Because the "Website\admin\Modules\modulesettings.ascx" control will not insert the Datas correctly to the database !

for example , when you go to module settings ,and under advanced settings , and when you try to set the module start date and End date , an invalid date will be parsed and inserted to the database , something like 1987 ....

I looked at the source code and the way they are parsing the date from  Textboxes , They sed Convert.ConvertToDateTime(.....

And it seems that funcion will fail in hijri calendar ,

I tried this code in my custom modules and it wokred well for both en-US and arabic saudi arabia ( ar-SA)

       public static DateTime ParsedateString(string DateStr)
       {
       return DateTime.ParseExact(DateStr, DateTimeformatInfo.CurrentInfo.ShortDatePattern,  new  CultureInfo("en-US"));
       }

I'm using it by passing the DateTimeEdit Control value to that function , and it correctly returns the correct date object .

I also tried to pass a custom format for the DateTimeEdit Control (Via its Custom Attributes property) and i didn't get any positive result ,I'm not sure if its a bug or there is something I'm missing !

Thanks for any help .

 


Anas Ghanem | My blog
 
New Post 8/6/2008 7:34 AM
User is offline Anas Ghanem
40 posts
10th Ranked


Re: "admin\Modules\modulesettings" Control Seems to fail when the culture is "ar-SA"  

I feel its a bug in the portal ,can anyone check that thing ?


Anas Ghanem | My blog
 
New Post 8/15/2008 6:45 AM
User is offline Johnny Li
87 posts
10th Ranked


Re: "admin\Modules\modulesettings" Control Seems to fail when the culture is "ar-SA"  

You can try overridding it with your own datetime conversion function.

 
New Post 8/15/2008 8:04 AM
User is offline Arash
17 posts
10th Ranked


Re: "admin\Modules\modulesettings" Control Seems to fail when the culture is "ar-SA"  

Dear Anas,

I'm not sure if it helps, but sometimes when you put for example arabic names for your pages in DNN strange problems happens until you disable the friendly URL functionality, try to disable it and see if it helps.

Arash

www.eyval.com

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  "admin\Modules\modulesettings" Control Seems to fail when the culture is "ar-SA"
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Get Smarter Mail, SmarterStats, SmarterTickets
Windows mail server, web log analytics, and customer service management software - Free Editions Available!
www.smartertools.com
DotNetNuke Modules, Skins, Training and Consulting
If you want DotNetNuke done right then look no further. Developed Solutions provides module development, skin design, user and developer training and consulting. Based in Adelaide, Australia, we offer our services worldwide.
www.developedsolutions.com.au
Venexus, Inc.
Need custom a custom DotNetNuke module? From module planning to deployment, including training and support, Venexus developers deliver end-to-end web solutions on time and on budget.
www.venexus.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP