Hello!
If anyone can tell me how to change language of text in automatic edit button in GridView, to language which user has selected? By default its in english but i need to allow user to switch the text to polish.
Here is part of my code (it works for word: "Edit", but when it is clicked, then appears buttons: Update/Cancel, which are displayed only in english,wheneve r the "myCulture" session is "pl-PL").
Please, give me any tip. I've seen, that this topic was already in bytes.com, but there wasn't any asnwer.
If anyone can tell me how to change language of text in automatic edit button in GridView, to language which user has selected? By default its in english but i need to allow user to switch the text to polish.
Here is part of my code (it works for word: "Edit", but when it is clicked, then appears buttons: Update/Cancel, which are displayed only in english,wheneve r the "myCulture" session is "pl-PL").
Code:
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if((string)Session["myCulture"] == "pl-PL")
{
if(e.Row.RowIndex > -1)
{
((LinkButton)(e.Row.Controls[0].Controls[0])).Text = "Edytuj";
}
}
}