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
11 years ago.

Hello from Brazil!

I need a help from you, guys!
Im using the example 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

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 3 months old and has been closed. Please create a new question if you have anything to add.