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,whenever the "myCulture" session is "pl-PL").
Expand|Select|Wrap|Line Numbers
- 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";
- }
- }
- }