Hello,
I am creating a application which display student details in one grid one by one. When user click on btnDetails then I need to start a thread which display next student details after few seconds (this is not hardcoded) I need to generate details realtime so it will take time i.e. 2-3 minutes, So I would like to wait.
I have done this code but getting exception "Response is not available in this context" so how to solve that.
<pre>
protected void btnNext_Click(object sender, ImageClickEventArgs e)
{
Response.Status = "301 Moved Permanently";
Response.AddHeader("Location", "http://localhost:2653/WebSite1/Default.aspx");
}
public void NextStudent()
{
try
{
int iCont = 0;
while (true)
{
Thread.Sleep(3000);
iCont++;
&nb ...
Go to the complete details ...