Click here to Skip to main content
15,915,093 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHuge config file causing very long first-time load Pin
Psytherium16-Jul-07 9:29
Psytherium16-Jul-07 9:29 
AnswerRe: Huge config file causing very long first-time load Pin
Dave Kreskowiak16-Jul-07 10:25
mveDave Kreskowiak16-Jul-07 10:25 
GeneralRe: Huge config file causing very long first-time load Pin
Psytherium16-Jul-07 10:46
Psytherium16-Jul-07 10:46 
GeneralRe: Huge config file causing very long first-time load Pin
Paul Conrad16-Jul-07 12:21
professionalPaul Conrad16-Jul-07 12:21 
GeneralRe: Huge config file causing very long first-time load Pin
Psytherium16-Jul-07 12:51
Psytherium16-Jul-07 12:51 
GeneralRe: Huge config file causing very long first-time load Pin
Paul Conrad16-Jul-07 13:07
professionalPaul Conrad16-Jul-07 13:07 
GeneralRe: Huge config file causing very long first-time load Pin
Psytherium16-Jul-07 13:35
Psytherium16-Jul-07 13:35 
QuestionHowto let the server resend a Page [modified] Pin
ezazazel16-Jul-07 8:47
ezazazel16-Jul-07 8:47 
Hi! Can anyone explain me how in c# code-behind coding the server can be instructed to resend a page.
Can it be initiated by the Server or is it necessary that the client requests for it?
Example given: Click on Button starts a Thread, ProgressChanged should resend the Page and the actual output. (Click starts a dict search, the output is shown in a table. After 10 seconds the server should resend the Page to the Client automatically, the actual output included)

I tried it with Response.Flush() but it cannot be done out of the running thread. I think a kind of invoke is required, but don't know how to do it in aspx either, didn't work the same way I would do it in c# (InvokeRequired and Delegate)

Thx in advance for your proposals




Here an approach done with a Timer
<br />
public class Class1<br />
{<br />
  public Class1(Page page)<br />
  {<br />
    Timer tim = new Timer(5000);<br />
    tim.Elapsed += ElapsedEventHandler(delegate(object o, ElapsEventArgs e)<br />
    {<br />
      page.Response.Flush();<br />
    }<br />
    tim.Start<br />
  }<br />
}<br />


<br />
public partial class _Default : System.Web.UI.Page<br />
{<br />
  protected void Page_Load(object sender, EventArgs e)<br />
  {<br />
    Class1 cls = new Class1(this);<br />
  }<br />
}<br />


Error: System.Web.HttpException: Answer not available in this context
HelpLink null
InnerException null
ErrorCode -2147467259

-- modified at 15:45 Monday 16th July, 2007
AnswerRe: Howto let the server resend a Page Pin
Dave Kreskowiak16-Jul-07 10:24
mveDave Kreskowiak16-Jul-07 10:24 
QuestionASP.NET Upgrade Process 1.1 to 2.0 : Best Practices Pin
N a v a n e e t h16-Jul-07 6:29
N a v a n e e t h16-Jul-07 6:29 
QuestionDatagrid - Template column Pin
phpatel16-Jul-07 6:25
phpatel16-Jul-07 6:25 
AnswerRe: Datagrid - Template column Pin
amit_8317-Jul-07 4:43
amit_8317-Jul-07 4:43 
GeneralRe: Datagrid - Template column Pin
phpatel17-Jul-07 6:01
phpatel17-Jul-07 6:01 
Questionmigrate from .Net 2.0 to .Net 3.0 Pin
George_George16-Jul-07 5:10
George_George16-Jul-07 5:10 
AnswerRe: migrate from .Net 2.0 to .Net 3.0 Pin
martin_hughes16-Jul-07 7:09
martin_hughes16-Jul-07 7:09 
GeneralRe: migrate from .Net 2.0 to .Net 3.0 Pin
George_George16-Jul-07 16:38
George_George16-Jul-07 16:38 
AnswerRe: migrate from .Net 2.0 to .Net 3.0 Pin
Abisodun16-Jul-07 7:39
Abisodun16-Jul-07 7:39 
GeneralRe: migrate from .Net 2.0 to .Net 3.0 Pin
George_George16-Jul-07 16:36
George_George16-Jul-07 16:36 
GeneralRe: migrate from .Net 2.0 to .Net 3.0 Pin
Abisodun17-Jul-07 4:17
Abisodun17-Jul-07 4:17 
GeneralRe: migrate from .Net 2.0 to .Net 3.0 Pin
George_George17-Jul-07 4:37
George_George17-Jul-07 4:37 
QuestionAdding fields to CreateUserWizard control (v 2.0)?? Pin
Goalie3516-Jul-07 4:49
Goalie3516-Jul-07 4:49 
QuestionUser Details when using Login Component Pin
totocaster16-Jul-07 4:10
totocaster16-Jul-07 4:10 
AnswerRe: User Details when using Login Component [modified] Pin
ezazazel16-Jul-07 9:57
ezazazel16-Jul-07 9:57 
QuestionInstalling IIS Pin
ciacia16-Jul-07 4:03
ciacia16-Jul-07 4:03 
AnswerRe: Installing IIS Pin
N a v a n e e t h16-Jul-07 4:43
N a v a n e e t h16-Jul-07 4:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.