Récupérer variable code behind dans ma page aspx
Bonjour à tous!
J'ai un soucis, je n'arrive pas a récuperer une donnée de mon code behind (.aspx.vb) dans ma page .aspx...
voici le code aspx:
Code:
1 2 3 4 5 6 7 8 9 10
| Imports System.Drawing
Imports System.Data.OleDb
Public Class MasterPage
Inherits System.Web.UI.MasterPage
Dim buffers As String
Dim page_niveaux As String
Dim page_niveaux_int As Integer
Dim page_titrex As String
End Class |
Et mon aspx.vb
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| <%@ Master Language="VB" AutoEventWireup="false" CodeBehind="MasterPage.master.vb" Inherits="ApplicationWeb1.MasterPage" %>
<%@ import namespace = Cyberprox %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title><%=page_titrex%></title>
<asp:ContentPlaceHolder ID="head" runat="server">
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
<LINK REL="SHORTCUT ICON" HREF="<%=page_niveaux%>commun/iconintragroupe.ico">
<link type='text/css' rel='stylesheet' href='<%=page_niveaux%>CSS.css'>
</asp:ContentPlaceHolder> |
J'ai cette erreur : 'ApplicationWeb1.MasterPage.page_niveaux' n'est pas accessible dans ce contexte, car il est 'Private'. '
Merci a ceux qui m'aideront!