Click here to Skip to main content
16,005,120 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: dynamically adding rows in gridview Pin
Mogaambo5-Nov-08 5:35
Mogaambo5-Nov-08 5:35 
QuestionJavascript String Matching problem! Pin
mr_muskurahat5-Nov-08 1:18
mr_muskurahat5-Nov-08 1:18 
AnswerRe: Javascript String Matching problem! Pin
N a v a n e e t h5-Nov-08 1:27
N a v a n e e t h5-Nov-08 1:27 
GeneralRe: Javascript String Matching problem! Pin
mr_muskurahat5-Nov-08 2:04
mr_muskurahat5-Nov-08 2:04 
QuestionDraggable Sorting in HTML Select Pin
Tiger4565-Nov-08 1:09
Tiger4565-Nov-08 1:09 
AnswerRe: Draggable Sorting in HTML Select Pin
whatUrunning.com5-Nov-08 1:36
whatUrunning.com5-Nov-08 1:36 
QuestionData type mismatch error in asp.net using ms access Pin
sanjay305-Nov-08 0:42
sanjay305-Nov-08 0:42 
Questionwhere is the problem of my code? Pin
strawberrysh5-Nov-08 0:41
strawberrysh5-Nov-08 0:41 
Hi I wrote these code for changing the language of my site.the default language of site is Farsi,and i put two link button in master page for switching the language , and i have two css ,one for Farsi and one for English.when the page load and when i click on en link button ,the language change but the css doesn't change ,I don't know why?
in all page except master page i wrote:
protected override void InitializeCulture()
    {
        if (Session["lang"] != null)
        {
            string selectedlang = Session["lang"].ToString();
            UICulture = selectedlang;
            Culture = selectedlang;
            Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(selectedlang);
            Thread.CurrentThread.CurrentUICulture = new CultureInfo(selectedlang);

        }
        base.InitializeCulture();
    }

in masterpage in click event of link buttons
protected void LinkButton1_Click(object sender, EventArgs e)
    {
        Session["lang"] = "en-US";
        Server.Transfer(Request.Url.PathAndQuery, false);
       type='text/css' />";
       
    }
    protected void LinkButton2_Click(object sender, EventArgs e)
    {
        Session["lang"] = "fa-IR";
        Server.Transfer(Request.Url.PathAndQuery, false);
       type='text/css' />";
    }

and in page load of master page:
protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Session["lang"] == null)
            {
                
                this.Literal1.Text = "<link href="fa.css" rel="stylesheet" type="text/css" />";
            }
            else
                if (Session["lang"].ToString() == "en-US")
                {
                    this.Literal1.Text = "<link href="fa.css" rel="stylesheet" type="text/css" />";
                }
                else
                    if (Session["lang"].ToString() == "fa-IR")
                    {
                        this.Literal1.Text = "<link href="fa.css" rel="stylesheet" type="text/css" />";
                    }
        }

asp:Literal ID="Literal1" runat="server">

AnswerRe: where is the problem of my code? Pin
Sandeep Akhare5-Nov-08 19:23
Sandeep Akhare5-Nov-08 19:23 
Questionhow to retrive image from database Pin
raghvendrapanda5-Nov-08 0:30
raghvendrapanda5-Nov-08 0:30 
AnswerRe: how to retrive image from database Pin
eyeseetee5-Nov-08 1:24
eyeseetee5-Nov-08 1:24 
Questionsample project Pin
santhoshasokan5-Nov-08 0:20
santhoshasokan5-Nov-08 0:20 
GeneralRe: sample project PinPopular
cyber-drugs5-Nov-08 0:36
cyber-drugs5-Nov-08 0:36 
AnswerRe: sample project Pin
Ashfield5-Nov-08 1:53
Ashfield5-Nov-08 1:53 
Questionusing web user control in asp.net 2.0 Pin
vijaylumar5-Nov-08 0:06
vijaylumar5-Nov-08 0:06 
AnswerRe: using web user control in asp.net 2.0 Pin
Parwej Ahamad5-Nov-08 0:26
professionalParwej Ahamad5-Nov-08 0:26 
Questiondoes show update and cancel on a first click Pin
Mamphekgo Bahula5-Nov-08 0:01
Mamphekgo Bahula5-Nov-08 0:01 
QuestionProblem with order by in aspx page Pin
eyeseetee4-Nov-08 23:03
eyeseetee4-Nov-08 23:03 
AnswerRe: Problem with order by in aspx page Pin
Abhishek Sur4-Nov-08 23:09
professionalAbhishek Sur4-Nov-08 23:09 
GeneralRe: Problem with order by in aspx page Pin
eyeseetee4-Nov-08 23:11
eyeseetee4-Nov-08 23:11 
GeneralRe: Problem with order by in aspx page Pin
Abhishek Sur5-Nov-08 20:31
professionalAbhishek Sur5-Nov-08 20:31 
AnswerRe: Problem with order by in aspx page Pin
balaji.t5-Nov-08 0:36
balaji.t5-Nov-08 0:36 
QuestionHiding URL in IE 7.0 Pin
balaji.t4-Nov-08 23:02
balaji.t4-Nov-08 23:02 
AnswerRe: Hiding URL in IE 7.0 Pin
NeverHeardOfMe4-Nov-08 23:39
NeverHeardOfMe4-Nov-08 23:39 
GeneralRe: Hiding address bar and title bar in IE7.0 - browser security settings Pin
balaji.t5-Nov-08 0:32
balaji.t5-Nov-08 0:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.