Click here to Skip to main content
15,913,758 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionlogOut Problem. Pin
Rahul DSG16-Jun-09 21:10
Rahul DSG16-Jun-09 21:10 
AnswerRe: logOut Problem. Pin
himanshu256116-Jun-09 21:35
himanshu256116-Jun-09 21:35 
AnswerRe: logOut Problem. Pin
Abhijit Jana16-Jun-09 22:02
professionalAbhijit Jana16-Jun-09 22:02 
AnswerRe: logOut Problem. Pin
Baran M16-Jun-09 22:33
Baran M16-Jun-09 22:33 
AnswerRe: logOut Problem. Pin
ais0716-Jun-09 23:59
ais0716-Jun-09 23:59 
QuestionExport to excel is not working on deploying server Pin
binod kumar16-Jun-09 20:50
binod kumar16-Jun-09 20:50 
AnswerRe: Export to excel is not working on deploying server Pin
Ashfield16-Jun-09 20:59
Ashfield16-Jun-09 20:59 
Questionnot getting the cookie value in next page Pin
anbusenthil16-Jun-09 20:33
anbusenthil16-Jun-09 20:33 
not getting the cookie value in next page

in my first page i am assigning a cookie a value

Protected Sub LnkEng1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LnkEng1.Click
            Dim appCookie As New HttpCookie("lang")
            Thread.CurrentThread.CurrentCulture = New CultureInfo("es-ES")
            LoadStrings(Thread.CurrentThread.CurrentCulture)
            Response.Cookies("lang").Value = Thread.CurrentThread.CurrentCulture.ToString
            Response.Cookies.Add(appCookie)
      End Sub

------------------------------------------------------
but in next pg i am not getting the value of the cookie


If Request.Cookies("lang").Value Is Nothing Then
                  Thread.CurrentThread.CurrentCulture = New CultureInfo("en-US")
                  'get the culture info to set the language
                  rm = New ResourceManager("Resources.Strings", System.Reflection.Assembly.Load("App_GlobalResources"))
                  ci = Thread.CurrentThread.CurrentCulture
                  LoadStrings(ci)

                     ElseIf Request.Cookies("lang").Value = "es-ES" Then

                  Thread.CurrentThread.CurrentCulture = New CultureInfo("es-ES")

                  'Request.Cookies("lang").Value = ci.ToString
                  'Thread.CurrentThread.CurrentCulture = Session("lang")
                  rm = New ResourceManager("Resources.Strings", System.Reflection.Assembly.Load("App_GlobalResources"))
                  ci = Thread.CurrentThread.CurrentCulture
                  'ci = Thread.CurrentThread.CurrentCulture
                  LoadStrings(ci)



tanx
-------------
AnswerRe: not getting the cookie value in next page Pin
Vimalsoft(Pty) Ltd16-Jun-09 22:25
professionalVimalsoft(Pty) Ltd16-Jun-09 22:25 
QuestionTreeview control problem Pin
CrazyCoder2616-Jun-09 20:31
CrazyCoder2616-Jun-09 20:31 
AnswerRe: Treeview control problem Pin
Abhijit Jana16-Jun-09 20:39
professionalAbhijit Jana16-Jun-09 20:39 
GeneralRe: Treeview control problem Pin
CrazyCoder2616-Jun-09 21:24
CrazyCoder2616-Jun-09 21:24 
QuestionSQL command parameters size Pin
samerh16-Jun-09 20:28
samerh16-Jun-09 20:28 
AnswerRe: SQL command parameters size Pin
Ravikumar Commuri16-Jun-09 20:34
Ravikumar Commuri16-Jun-09 20:34 
GeneralRe: SQL command parameters size Pin
samerh16-Jun-09 20:45
samerh16-Jun-09 20:45 
QuestionSpell Check Pin
Raveendar Reddy16-Jun-09 20:27
Raveendar Reddy16-Jun-09 20:27 
AnswerRe: Spell Check Pin
Abhijit Jana16-Jun-09 20:42
professionalAbhijit Jana16-Jun-09 20:42 
QuestionData Display Vertically Pin
yesu prakash16-Jun-09 20:21
yesu prakash16-Jun-09 20:21 
AnswerRe: Data Display Vertically Pin
Raveendar Reddy16-Jun-09 20:34
Raveendar Reddy16-Jun-09 20:34 
AnswerRe: Data Display Vertically Pin
Abhijit Jana16-Jun-09 20:45
professionalAbhijit Jana16-Jun-09 20:45 
QuestionCan we use vsflexgrid into asp.net Pin
Bandanenilima16-Jun-09 19:54
Bandanenilima16-Jun-09 19:54 
AnswerRe: Can we use vsflexgrid into asp.net Pin
Ashfield16-Jun-09 21:00
Ashfield16-Jun-09 21:00 
GeneralRe: Can we use vsflexgrid into asp.net Pin
Bandanenilima25-Jun-09 23:38
Bandanenilima25-Jun-09 23:38 
GeneralRe: Can we use vsflexgrid into asp.net Pin
Ashfield28-Jun-09 12:01
Ashfield28-Jun-09 12:01 
AnswerRe: Can we use vsflexgrid into asp.net Pin
Raveendar Reddy18-Aug-09 22:58
Raveendar Reddy18-Aug-09 22:58 

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.