It works fine using the Page_Init event instead od Page_PreInit, i dont know why i didn“t try that before post lol xD
thx for the answers guys!
User Profile
Collapse
Profile Sidebar
Collapse
Sergio Scotto
Last Activity: Mar 15 '13, 05:48 PM
Joined: Nov 23 '12
Location:
-
Page_PreInit User Control NullReferenceException
Hi, i am new in the forum ^^
I have an issue
I got a webpage that uses a UserControl wich create dynamic controls on him, i need to create the controls on the Page_PreInit event so i can access to them in the postback when the user do a click, but when i am at the PreInit event the UserControl is null so i cant create any control.
Can someone explain how to do this?
in my specific case my...
No activity results to display
Show More
Leave a comment: