Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: Help!


Message #1 by "Rene Vazquez Moreno" <renevazquez@h...> on Wed, 29 May 2002 16:40:26
Rene,

	Hm. Actually it looks right to me. Even though this form of
displaying strings might not be encouraged with ASP.NET (you might want
to use the ASP:Literal control), it should still work. Where do you
declare your public string? Outside the Page_Load and outside any
method, right? I mean, it's declared at the very top right? Try another
variable.

Hope it works,
Minh.

-----Original Message-----
From: Rene Vazquez Moreno [mailto:renevazquez@h...] 
Sent: Wednesday, May 29, 2002 4:40 PM
To: ASPX_Professional
Subject: [aspx_professional] Help!


Hi, if somebody didn't unserstand my question what I want to know
exactly 
is how can I use the value of one variable in my code behind file in the

corresponding aspx page code inside a <%=%> block. 

this is the variable in my code behind file:
public string temp="xml";

and this is the code in the aspx page:
<%= temp %>

I know that this invocation may not be correct but I don't know the
right 
way to do it.

Thanks


  Return to Index