Peformance when using User Controls (ascx) in ASP.NET Webforms

Last Reply 14 days ago By dharmendr

Posted 19 days ago

In my webforms application I'm using several .ascx user controls. I'm loading these in the code behind on the OnLoad method of the page. I tried loading them in response to a button click, but controls weren't be recognized as being created yet. So I read that the user controls should be loaded on the Page Load or OnLoad events. I'm worried about performance though. It doesn't seem obviously slow yet but I'm worried that once more people are using the application that it could get slow. Does anyone have any advice or suggestions on how or what to do about this issue?

You are viewing reply posted by: dharmendr 14 days ago.
Posted 14 days ago

Will you please share your html?

Also let me lnow where you have written the Button Click event. Is it inside User control?