Click here to Skip to main content
15,914,444 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: ASP.NET MVC dependency injection Pin
Nathan Minier25-Oct-18 1:21
professionalNathan Minier25-Oct-18 1:21 
QuestionRadGrid hierarchy parentID using command-template Pin
jsegreti9-Oct-18 18:03
jsegreti9-Oct-18 18:03 
AnswerRe: RadGrid hierarchy parentID using command-template Pin
Vincent Maverick Durano11-Oct-18 11:28
professionalVincent Maverick Durano11-Oct-18 11:28 
Questioncreate dynamic textBoxes Pin
Member 933127825-Sep-18 3:30
Member 933127825-Sep-18 3:30 
AnswerRe: create dynamic textBoxes Pin
Dar Brett25-Sep-18 4:55
Dar Brett25-Sep-18 4:55 
AnswerRe: create dynamic textBoxes Pin
F-ES Sitecore26-Sep-18 22:43
professionalF-ES Sitecore26-Sep-18 22:43 
QuestionHow to Complete Angular/Typescript-Based Web Development Workflow in Restricted Environment Pin
Christopher Koeber23-Sep-18 10:36
Christopher Koeber23-Sep-18 10:36 
AnswerRe: How to Complete Angular/Typescript-Based Web Development Workflow in Restricted Environment Pin
jkirkerx25-Sep-18 8:07
professionaljkirkerx25-Sep-18 8:07 
QuestionMessage Closed Pin
23-Sep-18 9:16
Christopher Koeber23-Sep-18 9:16 
AnswerRe: Using Latest Angular/Typescript Web Development Pipeline within Restricted Environment Pin
Nelek23-Sep-18 9:17
protectorNelek23-Sep-18 9:17 
GeneralRe: Using Latest Angular/Typescript Web Development Pipeline within Restricted Environment Pin
Christopher Koeber23-Sep-18 10:23
Christopher Koeber23-Sep-18 10:23 
QuestionTry to dynamic text box Pin
Member 933127821-Sep-18 11:09
Member 933127821-Sep-18 11:09 
AnswerRe: Try to dynamic text box Pin
Richard Deeming21-Sep-18 13:10
mveRichard Deeming21-Sep-18 13:10 
You didn't tell us which line the exception was thrown from, so this is a guess.

Page_PreInit is too early. The other controls haven't been created yet, so pn1TextBoxes is null when you try to add the controls to it.

Move your control creation code to the page's Init event instead.

Have a read of this series of blog posts - they're from 2006, but they still apply today:
Infinities Loop - TRULY Understanding Dynamic Controls (Part 1)[^]
Infinities Loop - TRULY Understanding Dynamic Controls (Part 2)[^]
Infinities Loop - TRULY Understanding Dynamic Controls (Part 3)[^]
Infinities Loop - TRULY Understanding Dynamic Controls (Part 4)[^]



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

QuestionAccepting application/x-www-urlencode format data Pin
R191119-Sep-18 23:52
R191119-Sep-18 23:52 
AnswerRe: Accepting application/x-www-urlencode format data Pin
Richard Deeming20-Sep-18 0:45
mveRichard Deeming20-Sep-18 0:45 
GeneralRe: Accepting application/x-www-urlencode format data Pin
R191120-Sep-18 2:12
R191120-Sep-18 2:12 
QuestionMVC: Can a controller know its URL without being called? Pin
Foothill18-Sep-18 9:22
professionalFoothill18-Sep-18 9:22 
AnswerRe: MVC: Can a controller know its URL without being called? Pin
Richard Deeming18-Sep-18 10:49
mveRichard Deeming18-Sep-18 10:49 
GeneralRe: MVC: Can a controller know its URL without being called? Pin
Foothill18-Sep-18 11:45
professionalFoothill18-Sep-18 11:45 
AnswerRe: MVC: Can a controller know its URL without being called? Pin
F-ES Sitecore18-Sep-18 23:43
professionalF-ES Sitecore18-Sep-18 23:43 
GeneralRe: MVC: Can a controller know its URL without being called? Pin
Foothill19-Sep-18 3:18
professionalFoothill19-Sep-18 3:18 
QuestionASP.Net MVC4 Razor Pin
jvrao8283bca13-Sep-18 6:25
jvrao8283bca13-Sep-18 6:25 
QuestionHow to Implement AD Login(ADFS) with existing asp.net 2015 website(C#) Pin
Kenneth Menor4-Sep-18 19:10
Kenneth Menor4-Sep-18 19:10 
QuestionAsp.net mvc Pin
Member 139714663-Sep-18 7:26
Member 139714663-Sep-18 7:26 
AnswerRe: Asp.net mvc Pin
Richard Deeming3-Sep-18 10:45
mveRichard Deeming3-Sep-18 10:45 

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.