Hi:
I´m modifying a project already done and I can´t get the .cs files, just the .dll file. When I try to get the session in the aspx files I need to use this: Proyecto.Internacional.Idioma.idioma, but this sentence is not posible to use in the new .cs files.
I´m trying to use Page.Session["idioma"].ToString() in the .cs file but I can't. I suppouse I need to include the Juniper.dll file. Does it correct?. How can I get the session Proyecto.Internacional.Idioma.idioma in the .cs files?
Example:
.aspx file
<%@ Register TagPrefix="Proyecto" Namespace="Proyecto.MasterPages" Assembly="MasterPages" %>
<%@ Page language="c#" Codebehind="default.aspx.cs" Debug="true" AutoEventWireup="false" Inherits="thumbsnails._default" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
</HEAD>
<body MS_POSITIONING="GridLayout">
<Proyecto:MASTERPAGE id="MPContainer" runat="server">
<%= Response.Write(Proyecto.Internacional.Idioma.idioma) %>
...
In the <%= Response.Write(Proyecto.Internacional.Idioma.idioma) %> sentence i can get the session.
The .cs file
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
namespace thumbsnails
{
public class _default : System.Web.UI.Page
{
private void Page_Load(object sender, System.EventArgs e)
{
//** Internacionalizacion de la aplicacion
Response.Write(Proyecto.Internacional.Idioma.idioma);
...
I would like to show the Proyecto.Internacional.Idioma.idioma in the .cs file too.
How?
Thanks in advance
I´m modifying a project already done and I can´t get the .cs files, just the .dll file. When I try to get the session in the aspx files I need to use this: Proyecto.Internacional.Idioma.idioma, but this sentence is not posible to use in the new .cs files.
I´m trying to use Page.Session["idioma"].ToString() in the .cs file but I can't. I suppouse I need to include the Juniper.dll file. Does it correct?. How can I get the session Proyecto.Internacional.Idioma.idioma in the .cs files?
Example:
.aspx file
<%@ Register TagPrefix="Proyecto" Namespace="Proyecto.MasterPages" Assembly="MasterPages" %>
<%@ Page language="c#" Codebehind="default.aspx.cs" Debug="true" AutoEventWireup="false" Inherits="thumbsnails._default" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
</HEAD>
<body MS_POSITIONING="GridLayout">
<Proyecto:MASTERPAGE id="MPContainer" runat="server">
<%= Response.Write(Proyecto.Internacional.Idioma.idioma) %>
...
In the <%= Response.Write(Proyecto.Internacional.Idioma.idioma) %> sentence i can get the session.
The .cs file
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
namespace thumbsnails
{
public class _default : System.Web.UI.Page
{
private void Page_Load(object sender, System.EventArgs e)
{
//** Internacionalizacion de la aplicacion
Response.Write(Proyecto.Internacional.Idioma.idioma);
...
I would like to show the Proyecto.Internacional.Idioma.idioma in the .cs file too.
How?
Thanks in advance