473,752 Members | 8,851 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

GridView, AutoGenerateEdi tButton - changing language

1 New Member
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").

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 1724

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

Similar topics

0
1233
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 gridview bound to a sqldatasource, with a SelectQuery = SELECT , , , FROM That all works fine. . . but what I want to do next is this: Users clicks on button "Customers and Suppliers By City", and the code for the button simply sets SelectCommand =...
5
2807
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 = ObjectDataSource1.ID; GridView1.DataBind(); What's missing? --
1
1130
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 that. John
0
986
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. Ive already created my data connection, Ive included two tableadapters one for each of my db tables. After these i configure my gridview data source and i selected an objectdatasource and i assigned it one of the tableadapters to the business...
0
1027
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 relationship between datasources and gridviews? when I switch datasources - deletes don't happen and I get erros like this when I try to page or sort:
2
3873
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 any of the columns. Below is the code that I am using. Any help would be appreciated. Thanks, sck10
4
2724
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 problems? Thanks. Here is an example of what I believe is a bug in ASP.NET 2.0 GridView paging without postbacks (or at least not documented how to fix it). Once the GridView is displayed, clicking on any of the paging tools causes the
2
3684
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 appericiated, im really stuck on this.
2
1381
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 selectcommand and selectparameter of the sqldatasource. I get the desired result in the gridview but when i enable paging and sorting I get an empty grid when i try to page or sort. Another thing: when I click on a link field in the grid for detail...
1
1645
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 messages Turkish! when needed to search internet sources, this becomes a big problem. what can i do to change the language to English? thanks
0
9031
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8867
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9429
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9383
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6116
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4738
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3354
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2839
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2243
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.