473,387 Members | 1,619 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

GridView, AutoGenerateEditButton - changing language

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,whenever the "myCulture" session is "pl-PL").

Expand|Select|Wrap|Line Numbers
  1. protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
  2. {
  3.    if((string)Session["myCulture"] == "pl-PL")
  4.    {
  5.           if(e.Row.RowIndex > -1)
  6.           {
  7.                ((LinkButton)(e.Row.Controls[0].Controls[0])).Text = "Edytuj";
  8.           } 
  9.    }
  10. }
  11.  
Please, give me any tip. I've seen, that this topic was already in bytes.com, but there wasn't any asnwer.
Dec 15 '10 #1
0 1670

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Greg Ramsey | last post by:
Hi - I'm a real newbie to ASP . . so please forgive me. . . and please point me in the right direction for how to do this "the right way" . . :) Using Northwind DB as an example, I have a...
5
by: GaryDean | last post by:
I have a GridView that works fine when I bind it to an ObjectDataSource at design time. But if I bind it at run time nothing happens. On a button click event I say... GridView1.DataSourceID =...
1
by: Bruintje Beer | last post by:
Hi, I am new to javascript. How can I change the language in javascript when I click on a hyperlink. The idea is that people can change langugae on my index page but I have no idea how to to do...
0
by: Gabriel León | last post by:
Hi, Im developing a web site. i have a couple of tables in my sql server 2000 and i want them to be displayed by the same gridview by changing the objectdatasource or tableadapter or whatever. ...
0
by: jobs | last post by:
Is there a correct way to change the datasourceId of a gridview in codebehind so that things like sorting, paging and deleting actually work? Or will have have to have one one to one...
2
by: sck10 | last post by:
Hello, I have a GridView that I built to show the files in a directory. The problem that I am having is that when I click on the second page (2), the GridView disappears. Also, I can't sort by...
4
by: Don Miller | last post by:
This is a repost of a reproducible problem/bug with GridView with dynamic SQL and binding. Is there a better ASP.NET newsgroup I should post to where MS techs or MVPs take an interest in such...
2
by: jph | last post by:
Hello, can anyone tell me how to change text to Gridviews automatic edit/update buttons. By default its in english but i need to switch the text for whatever user has selected. Any tips really...
2
by: Jan Erik Hansen | last post by:
I have a gridview with a sqldatasource and an aspx web form that enables the user to search on different criterias. Based upon that I generate dynamic sql and programmitically feed this into...
1
by: Tahir | last post by:
hi all, I am using Visual Studio 2005 as ASP.NET and C# developer. I have a problem with language. My operating system is Vista Home Professional Turkish and i am getting the compilation error...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.