happysmile
happysmile

Reputation: 7777

issue in Response.Write issue in .aspx page

this is my Flash file

 <param name="movie" value="Flash/HomeMaster.swf?SID=<%Response.Write(strSess);%>" />

in .cs file
in i have declare an varaiable called= strSess

in page load i have assisgned an value

strSess ="1234"; 

but when i run this page i get an error telling

the name strSess would not be found

what is the issue. an any one tell me thank you

Upvotes: 0

Views: 215

Answers (2)

Younes
Younes

Reputation: 4823

In the cs file:

public string strSess = "1234"

In your presentation:

<param name="movie" value="Flash/HomeMaster.swf?SID=<%=strSess%>" />

Good luck with it!

Upvotes: 2

Oded
Oded

Reputation: 498972

Your variable needs to be public in order to be seen by the .aspx page.

Upvotes: 0

Related Questions