search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

after CultureInfo change, no data is inserted on Database!

Asked by Otavio
14 years ago.

Hello from Brazil!


I need a help from you, guys!
Im using the example TutorialDayPilotSqlServer.zip and everything is working fine but if I change the CultureInfo no data is inserted on my database, but Update data works fine

My codes:

On page load

System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("pt-BR");


Event Detail

protected void EventDetail_ItemUpdating(object sender, DetailsViewUpdateEventArgs e)
{
// example as a response to http://forums.daypilot.org/Topic.aspx/583/changing_culture_from_enus_in_sqldemo_breaks_update

e.NewValues["eventstart"] = Convert.ToDateTime(e.NewValues["eventstart"], new CultureInfo("pt-BR"));
e.NewValues["eventend"] = Convert.ToDateTime(e.NewValues["eventend"], new CultureInfo("pt-BR"));

}

Web Config

<globalization uiCulture="pt-BR" culture="pt-BR"/>


This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.