AutoPostBack in a User Control

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
11/14/2008 9:55:10 PM
Gravatar
Total Posts 21

AutoPostBack in a User Control

I followed the hello wold tutorials to create a custom site module but I cannot seem to get Autopostback to work.

I created a form with a few textboxes, a few checkboxes, a dropdownlist, and a submit button.  I want the checkboxes and the dropdownlist to force a postback when they are changed but it does not seem to be working.  Is there something special I need to do to get autopostback to work other than setting it to true for the individual web controls?

I also created an OnClick event for the submit button and that seems to work great.

11/15/2008 4:37:02 AM
Gravatar
Total Posts 18439

Re: AutoPostBack in a User Control

If you download the hello world zip again I've added an autopostback checkbox and autpostback dropdown list to the HellowMojoUserControl.ascx example.

They work on Windows, I haven't tried them on Mono.

Hope it helps,

Joe

11/21/2008 1:41:04 PM
Gravatar
Total Posts 21

Re: AutoPostBack in a User Control

Thanks Joe.

I cannot explain why my original code was not working but I scrapped it and tried again with a new file and it worked beautifully.  I can only assume a shadowy typo or some other madness.  Your example file at least showed me that it would work on my setup.

Anyway, I can confirm that AutoPostBack works great on Mono 2.0.  Thank you again for mojoPortal.  I bought you a beer (a Guinness I hope).

11/21/2008 1:46:34 PM
Gravatar
Total Posts 18439

Re: AutoPostBack in a User Control

Thanks so much for the beer!

Today is my birthday so I will definitely raise my glass to you this evening with a nice Guiness!

Cheers,

Joe

You must sign in to post in the forums. This thread is closed to new posts.