I understand server / client side difference ... but as hope dies last, I had to come here and ask a question.
In my app, at some point I am generating report for lots of users, during that generation of report, I have label that says % complete. So far I have tried multiple stuff in my back side of code
Newest thing
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("~/Klijenti/Klijenti.aspx");
request.Headers.Add("ReportPercentage", Value.ToString());
Creating cookie ...
var myCookiePerc = Response.Cookies["ReportPercentage"];
if (string.IsNullOrWhiteSpace(myCookiePerc.Value) ||
string.IsNullOrEmpty(myCookiePerc.Value))
{
myCookiePerc = new HttpCookie("ReportPercentage");
}
Response.Cookies.Remove("ReportPercentage");
myCookiePerc.Values["ReportPercentage"] = Value.ToString();
myCookiePerc.Expires = DateTime.UtcNow.AddMinutes(2);
Response.Cookies.Add(myCookiePerc);
And reading cookie by answer I got from here
And before that, calling javascript with
ClientScript.RegisterStartupScript(GetType(), "nyScript", "updateCompletePercent(" + percent + ", true);
ScriptManager.RegisterStartupScript(GetType(), "nyScript", "updateCompletePercent(" + percent + ", true);
But as everything failed so far ... Anyone got any idea, how I can update that label from codebehind, during runtime? Or does anyone have any other way how this can be accomplished? I just want to have something like "Progress bar" or "label increasing from 1 to 100%" in my asp.net app, during this report creation