Problem with custom webpart

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
7/17/2008 10:02:33 PM
Gravatar
Total Posts 9

Problem with custom webpart

I have an absolutely baffling problem with a very simple webpart I created.  Its not very compliated, just a text box, a button, and a label.  Its a demo control who's source code I found online.

The way the control works is  stupid simple - you type something in the text box, press the button, and it changes the text in the label to whatever you just typed.  Basically a 'hello world' kinda thing.

When I am on the actual page which a user would see and I fill in the text box and press the button..the label gets no value.  Its as if the text box doesnt have any text in it. 

If I go into the page edit, however, and click 'view page', the control works exactly as expected!

This is my first attempt at using webparts with anything, so I am sure I am doing something stupid at a low level.  Can anyone point me in the right direction?

 

7/18/2008 10:57:37 AM
Gravatar
Total Posts 18439

Re: Problem with custom webpart

Hi,

WebParts are not a great choice for developing mojopportal features. You can add a WebPart to a page but its not interactive. Best place to use WebParts is on the MyPage feature of mojoPortal because My Page has the web part manager and normal pages do not. Web part manager is needed for personalization that makes web parts interactive.

This is not a bug report, but a development question.

Best,

Joe

7/18/2008 11:00:30 AM
Gravatar
Total Posts 9

Re: Problem with custom webpart

Thanks for the reply.  I realized that after I had posted it and then crossposted (Hope no one minds) a more detailed version of the question in the development forum. 

My appologies for using the wrong space.

Tony

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