how to write the code for the buttons

Last post 06-24-2009 11:34 PM by Nai-Dong Jin - MSFT. 5 replies.

Sort Posts:

  • how to write the code for the buttons

    06-22-2009, 8:18 AM
    • Member
      1 point Member
    • imranwahabit
    • Member since 06-15-2009, 8:08 AM
    • Posts 15

    hello sir i am mohammed imran working as a software engineer,my project is on .net,while developing a website application,i got a task of placing two button on the master page and by clicking those buttons,the existing table in masterpage should change from right to left and viseversa,and while changing the table the content of the table should change into arabic and english,can any one of u plz solve my proble

  • Re: how to write the code for the buttons

    06-22-2009, 9:58 AM
    Answer
    • Star
      10,270 point Star
    • chintanpshah
    • Member since 11-19-2008, 5:39 AM
    • Ahmedabad
    • Posts 1,833

    If you need to translate only master page, use 2 master page for different language.

    Change the master page file in code behind in Button click.

    But, if you need to translate while application, Use globalization.

    Refer to:

    http://msdn.microsoft.com/en-us/library/c6zyy3s9.aspx

    http://www.codeproject.com/Kb/aspnet/localizationByVivekTakur.aspx

    http://weblogs.asp.net/scottgu/archive/2006/05/30/ASP.NET-2.0-Localization-_2800_Video_2C00_-Whitepaper_2C00_-and-Database-Provider-Support_2900_.aspx

    http://aspalliance.com/821

    Hope this helps...

    Don't forget to mark as answer, if it helps
  • Re: how to write the code for the buttons

    06-23-2009, 3:07 AM
    Answer
    • Member
      1 point Member
    • imranwahabit
    • Member since 06-15-2009, 8:08 AM
    • Posts 15

    how to write the code for the

  • Re: how to write the code for the buttons

    06-23-2009, 3:08 AM
    • Member
      1 point Member
    • imranwahabit
    • Member since 06-15-2009, 8:08 AM
    • Posts 15

    brother how to wirte the code for the button click,can i get the code of it

  • Re: how to write the code for the buttons

    06-23-2009, 3:10 AM
    • Member
      1 point Member
    • imranwahabit
    • Member since 06-15-2009, 8:08 AM
    • Posts 15

    i am not able to get the code with the following site which u gave me,just explai me in deatils the code for the button click

  • Re: how to write the code for the buttons

    06-24-2009, 11:34 PM
    Answer

     Hi,

    Just as chintanpshah said, using two master pages is a good practise. Besides, you also can add Globalization&Localization feature in your code, and adding local resource with different languages for your control on your page.

    As for the table's postion, actually you can use RegisterStartupScript method to adjust the style attribute of that table element through JavaScript code. In this way, you can change the layout from the event of server side button control.

    For codes or samples, it's hard to provide the whole code according to your requirement in support forum, I suggest that you should go to QuickStarts (http://quickstarts.asp.net), it will help you further.

    Thanks.

    Michael Jin.
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Page 1 of 1 (6 items)