相关文章推荐
风流倜傥的大蒜  ·  Apache NiFi: ...·  8 月前    · 
痴情的可乐  ·  小课堂 | ...·  1 年前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

I am using Master pages for my ASP.NET website and in one of the content pages I upload a file which requires a bigger timeout value than the default 90 seconds. For other content pages I want to leave the default timeout value as it is.

Is it possible to set the timeout just for a specific content page? I checked the ScriptManagerProxy component, but it doesn't have a AsyncPostBackTimeout property.

You should be able to set it in your code-behind in the Page_Load event:

protected void Page_Load(object sender, EventArgs e) {
   ScriptManager.GetCurrent(this).AsyncPostBackTimeout = 300;
                thanks, I don't understand why this property is not available on ScriptManagerProxy so this property can be set in the mark-up, not in Page_load event handler.
– RKP
                Jan 17, 2011 at 16:31
        

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.