Click here to Skip to main content
15,921,694 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Calling a web form as a class Pin
pmarfleet22-Mar-08 3:20
pmarfleet22-Mar-08 3:20 
GeneralRe: Calling a web form as a class Pin
abdelhameed8122-Mar-08 3:27
abdelhameed8122-Mar-08 3:27 
GeneralRe: Calling a web form as a class Pin
pmarfleet22-Mar-08 3:51
pmarfleet22-Mar-08 3:51 
GeneralRe: Calling a web form as a class Pin
abdelhameed8122-Mar-08 4:01
abdelhameed8122-Mar-08 4:01 
GeneralRe: Calling a web form as a class Pin
Colin Angus Mackay22-Mar-08 3:23
Colin Angus Mackay22-Mar-08 3:23 
GeneralRe: Calling a web form as a class Pin
abdelhameed8122-Mar-08 3:30
abdelhameed8122-Mar-08 3:30 
QuestionAdding user control at runtime Pin
indian14322-Mar-08 1:59
indian14322-Mar-08 1:59 
GeneralRe: Adding user control at runtime Pin
Colin Angus Mackay22-Mar-08 3:21
Colin Angus Mackay22-Mar-08 3:21 
In order to dynamically add a user control (or any control for that matter) to the page you need to add it to an appropriate controls collection. Each control has a controls collection as does the page.

So, create your user control then add it to the controls collection you want (probably the page, or possibly the controls collection of the other user control)

Remember dyanmically created controls will not be recreated at each postback. It is your responsibility to recreate the control on each post back. So long as you create the control during the page load event then you will get the viewstate along with it. (Although, maybe not in during the Page Load event itself).

Upcoming FREE developer events:
* Developer Day Scotland

Recent blog posts:
* Mixins in C#3.0

My website | Blog

Generalthat assembly does not allow partially filled callers Pin
Nishad8522-Mar-08 0:40
Nishad8522-Mar-08 0:40 
GeneralCrytal reports vt asp.net Pin
slSoftware21-Mar-08 23:54
slSoftware21-Mar-08 23:54 
QuestionASP.NET Divs Pin
jonhbt21-Mar-08 22:50
jonhbt21-Mar-08 22:50 
GeneralRe: ASP.NET Divs Pin
N a v a n e e t h21-Mar-08 23:16
N a v a n e e t h21-Mar-08 23:16 
GeneralRe: ASP.NET Divs Pin
jonhbt25-Mar-08 21:36
jonhbt25-Mar-08 21:36 
GeneralSend Mail & Error Pin
mehrdadc4821-Mar-08 22:38
mehrdadc4821-Mar-08 22:38 
GeneralRe: Send Mail & Error Pin
N a v a n e e t h21-Mar-08 22:54
N a v a n e e t h21-Mar-08 22:54 
GeneralSystem.NotSupportedException: Collection is read-only. Pin
saltcode21-Mar-08 21:54
professionalsaltcode21-Mar-08 21:54 
GeneralRe: System.NotSupportedException: Collection is read-only. Pin
N a v a n e e t h21-Mar-08 21:59
N a v a n e e t h21-Mar-08 21:59 
GeneralRe: System.NotSupportedException: Collection is read-only. Pin
saltcode21-Mar-08 22:53
professionalsaltcode21-Mar-08 22:53 
GeneralRe: System.NotSupportedException: Collection is read-only. Pin
N a v a n e e t h21-Mar-08 23:11
N a v a n e e t h21-Mar-08 23:11 
QuestionHow to disable prompts for ActiveX controls Pin
Anuradha61221-Mar-08 19:56
Anuradha61221-Mar-08 19:56 
AnswerRe: How to disable prompts for ActiveX controls Pin
Christian Graus21-Mar-08 19:57
protectorChristian Graus21-Mar-08 19:57 
GeneralEditable combobox in ASP.Net Pin
new2pgrmg21-Mar-08 19:51
new2pgrmg21-Mar-08 19:51 
GeneralRe: Editable combobox in ASP.Net Pin
Christian Graus21-Mar-08 19:57
protectorChristian Graus21-Mar-08 19:57 
Generalaccess server controls using javascript in web user controls Pin
indian14321-Mar-08 18:38
indian14321-Mar-08 18:38 
GeneralRe: access server controls using javascript in web user controls Pin
Christian Graus21-Mar-08 19:32
protectorChristian Graus21-Mar-08 19:32 

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.