Seth, thanks a lot. It did solve my problem.
Instead of
Me.Main.Controls.Add(Me.LoadControl("usercontrol/
myusercontrol.ascx"))
I have specified the ID for the dynamically added control:
mDynamicCtl = Me.LoadControl("usercontrol/
myusercontrol.ascx")
mDynamicCtl.ID = "kbCont"
Me.Main.Controls.Add(mDynamicCtl)
Now it works. Much apreciate your help!!!!!!!
xke
On Feb 1, 11:49 am, "rowe_newsgroups" <rowe_em...@yahoo.comwrote:
On Feb 1, 11:39 am, xke...@gmail.com wrote:
Yes it does PostBack into Page_Load event on both usercontrol and the
winform.aspx parent page.
On Feb 1, 10:19 am, "rowe_newsgroups" <rowe_em...@yahoo.comwrote:
On Feb 1, 9:42 am, xke...@gmail.com wrote:
I'm working in VS2003 VB.NET environment.
I created a based class template (BasePage) and there is a new aspx
win form (winform1.aspx)
inheriting BasePage.
In winform1.aspx I have added a new usercontrol uc1 and in uc1 I have
a textbox and a
save button (btn_Save).
When I click the save button the btnSave_Click event doesn't fire.
Only second time I click it does.
What am I doing wrong? I need to save the usercontrol data and I was
thinking to put the
code inside my uc1.
Thanks,
xke
Is it PostingBack on the first click?
Thanks,
Seth Rowe- Hide quoted text -
- Show quoted text -
Is this UC dynamically added? If so this is a fairly common problem
and is covered multiple times in the asp.net newsgroup. Try out the
below link for some solutions (hopefully) to the problem:
http://groups.google.com/group/micro...framework.aspn...
Thanks,
Seth Rowe- Hide quoted text -
- Show quoted text -