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  |  

PortalWebHosting
  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
Verndale
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
 


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.

 


Ultra Media Gallery & Video Gallery
The most popular photo gallery and video gallery module. with Flash interface.
www.bizmodules.net
WDK Solutions
Quality modules for the DotNetNuke community. Check out our 'wild' modules!
wdkns.com
UK - DotNetNuke providers
UK providers of DNN module development and skin package design. Oxford Information Labs provides cost-effective solutions for businesses and organisations specialising in Skin design and bespoke module development.
www.oxil.co.uk

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