Page_load filling data after loading UserControl ASP.net
Posted
by
msytNadeem
on Stack Overflow
See other posts from Stack Overflow
or by msytNadeem
Published on 2012-04-14T11:25:27Z
Indexed on
2012/04/14
11:29 UTC
Read the original article
Hit count: 171
I have an aspx Page that contain a userControl that contains textboxes.
in the page_load method, it reads from the database, and i want to fill the textboxes of the usercontrol with the data been read.
the problem i am facing, that the flow of page loading is
Page_Load of the page, where i am assigning the text field, then it page_load of the userControl, so here all the data will be erased, then it will show the page.
how i can fix this.
© Stack Overflow or respective owner