Re: HTML not generated on client
- From: "Steven" <someone@xxxxxxxxxxxxx>
- Date: Fri, 7 Mar 2008 15:00:21 -0000
Alexey,
Perhaps something else that may be relevant. In Page_Load , the code sets
the visible properties of the ImagePrim and ImageSec to either true or
false, depending on which image is to be displayed.
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Session["ImageUrl"] =
ConfigurationManager.AppSettings["ImageUrl"];
string f = GetExistingFile();
Session["ImageUrl"] = Session["ImageUrl"] + f;
this.ImagePrim.Visible = true;
this.ImageSec.Visible = false;
Session["flag"] = null;
Session["Updating"] = 1;
StartFileSystemWatcher();
}
if (Session["flag"] != null)
{
switch (Convert.ToInt32(Session["flag"]))
{
case 0:
this.ImagePrim.Visible = true;
this.ImageSec.Visible = false;
Session["flag"] = 1;
break;
case 1:
this.ImageSec.Visible = true;
this.ImagePrim.Visible = false;
Session["flag"] = 0;
break;
default:
break;
}
}
else
{
Session["flag"] = 1;
}
Page.DataBind();
}
"Alexey Smirnov" <alexey.smirnov@xxxxxxxxx> wrote in message
news:c800c00f-cf9c-4ada-ad93-25fb1df98fb7@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Mar 6, 9:41 pm, "Steven" <some...@xxxxxxxxxxxxx> wrote:
GetData2() is a function that returns the same string that GetData()
returns. GetData() sets a property with it's return string, GetData2()
gets
that property. It appears to be working in the codebehind; I have verified
that the strings are exactly the same. I don't want the code to execute
GetData() twice. Should not this work?
Steven, when your code of the GetData2() function does not generate
the html for ImageSec, you should check the function. If you cannot
find the error, post the code of the function here.
.
- References:
- HTML not generated on client
- From: Steven
- Re: HTML not generated on client
- From: Alexey Smirnov
- Re: HTML not generated on client
- From: Steven
- Re: HTML not generated on client
- From: Alexey Smirnov
- HTML not generated on client
- Prev by Date: Re: Environment.SpecialFolder.ApplicationData problem
- Next by Date: Answer to 2 questions
- Previous by thread: Re: HTML not generated on client
- Next by thread: Re: HTML not generated on client
- Index(es):
Relevant Pages
|