Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

Ok so I have a user control with a button and a label. When you click the button, it writes something into the label's .text field. Nothing unusual up 'till now.

 

I load this control dynamically in a page, on a button_click event.

 

When I click the button in the control, it doesn't change the label text.

 

If I load it on page_load, instead of the button's Click event, it works.

 

I have never been familiar with aspn's postbacks and all...

 

Please help me, see attached files.

 

 

Later Edit: You may also use Ajax Extensions as a resolution for this.

WebApplication2.zip

Edited by PlausiblyDamp
Development & Research Department @ Elven Soft
Posted

You don't appaer to have a definition for Panel1...

 

Protected WithEvents Panel1 As Web.UI.WebControls.Panel

 

Could this be the cause?

 

(I'm afraid I'm only using 2003, so I can't run your app).

 

Paul.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...