Re: HTML not generated on client
- From: "Steven" <someone@xxxxxxxxxxxxx>
- Date: Fri, 7 Mar 2008 14:43:45 -0000
protected string GetData()
{
try
{
Session["LastImage"] = Session["SaveImage"];
LastImage = Session["LastImage"].ToString();
string url = Session["ImageUrl"].ToString();
Session["SaveImage"] = Session["ImageUrl"];
string szUrl = url.Replace("~", @"http://" +
Request.ServerVariables["HTTP_HOST"]);
ImageUrl2 = szUrl;
return szUrl;
}
catch (Exception e)
{
RecordError(e, EventLogEntryType.Error);
return null;
}
finally
{
//Delete the previous images
Thread t = new Thread(new ThreadStart(DeleteLastFile));
t.Start();
}
}
protected string GetData2()
{
return ImageUrl2;
}
private static string _ImageUrl2;
public static string ImageUrl2
{
get { return _ImageUrl2; }
set { _ImageUrl2 = value; }
}
FWIW, I have verified that the returns are correct by setting breakpoints.
"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.
.
- Follow-Ups:
- Re: HTML not generated on client
- From: Alexey Smirnov
- Re: HTML not generated on client
- 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: Using Framework 2.0 in VS2008
- Next by Date: Re: Environment.SpecialFolder.ApplicationData problem
- Previous by thread: Re: HTML not generated on client
- Next by thread: Re: HTML not generated on client
- Index(es):
Relevant Pages
|