Showing posts with label usercontrol. Show all posts
Showing posts with label usercontrol. Show all posts

Wednesday, March 28, 2012

System.Web.UI.UserControl does not have a public property named Title.

The controls work but I cannot view them in designer I get an error:

Error 1 Content1:Type 'System.Web.UI.UserControl' does not have a public property named 'Title'. D:\asp.net\Atlas\SampleWebSite\ModalPopup\ModalPopup.aspx D:\...\SampleWebSite\

I saw another post that said to rebuild, but I tried that and it didn't work.

thanks!

Nevermind... found the answer to remove the collapible panels. Wait until next release.

Wednesday, March 21, 2012

TabContainer drawing issue

I have TabContainer within a panel that is on a usercontrol. The user control is on a page that houses everything in an UpdatePanel. I have many user controls all activated/de-activated when a value changes in a dropdownlist control.

When the page containing the usercontrol is first rendered I have the panel visibility set to false so I see noting from this control as expected. When I trigger the need for the usercontrol I then set the panel visibility to true. This works for all other controls but I wanted to put the new tabs on this control.

The problem is that the TabContainer on this control does not draw anything except the bare controls that are on the first tab with NO styles, colors etc. I maintain a page state enum so that I know what to show the user if they refresh the page completely. If I refresh (F5) the page at this point I now see everything correctly and can use the tabs. Does anyone have a fix for this issue? I am sure it has something to do with my setting the containing panel visibility false to begin with but I cannot seem to find a solution.

The user control setup is basically what I have below, nothing special.

<asp:PanelID="pnlCardSearch"runat="server" visibility="false">
<ajaxToolkit:TabContainerrunat="server"ID="Tabs"Height="150px"OnClientActiveTabChanged="ActiveTabChanged">
<ajaxToolkit:TabPanelrunat="Server"ID="Panel1"HeaderText="Signature and Bio">
<ContentTemplate>
<asp:UpdatePanelID="UpdatePanel1"runat="server">
</asp:UpdatePanel>
<asp:UpdatePanelID="UpdatePanel2"runat="server">
</asp:UpdatePanel>
</ContentTemplate>
</ajaxToolkit:TabPanel>
</ajaxToolkit:TabContainer>
</asp:Panel
I'm just trying to get it to work using the tab example at this point.

I know posts like this aren't helpful, but i've got a very similar setup to that described above (usercontrol, updatepanel, tabcontainer), and i'm experiencing the same issue.

I'm adding a tabcontainer programatically, and when it first appears, it has no borders, no tab images, no anything really, yet the functionality still works. When you refresh the page, it appears as normal. In my case, it seems that if you add the tabcontainer during the OnInit event, it renders properly, yet if you add it as the result of a postback event, later in the page cycle, it renders improperly as described above.

If anyone could shed any light on this then i'd be grateful.

Cheers


Hello,

Did you find a solution to your problem? I am having the same problem with the same setup. Could you share the code on how you are mainting state of the page with the Enum and how you activating and deactivating your controls.

Thanks

TabContainer is just invisible

Hi,

this is the first time I work with the Ajax toolkit.


I want to put a TabContainer on my Usercontrol, with three tabs.

It works, it is rendered but it just doesn't show.

It keeps having the inline style definition 'visibility:hidden'.

Does anyone know how to remove this?

Thx

This happened to me awhile ago and I hated it! In IE6/7 the tab renders fine but in FF it is hidden.

I managed to find the culprit for my situation, not sure will it help you.

Basically my tab container had 3 panels, in each tab panel I added a user control. My problem was one of the user controls have a calendar extender toolkit control that had a ondateselection client side event added. Once i removed that event it worked.


I don't think the tabcontainer is to blame... Tested, used with firefox here..

But, I have seen stuff disapeering when using rounded corners extender sometimes. Maybe you have that or something else wrapped around your tabcontainer?


I'm also having this problem. If anyone has the solution it would be greatly appreciated.

<div id="ctl02" class="ajax__tab_xp" style="visibility:hidden;"><div id="ctl02_header"><span id="__tab_ctl02_ctl00">Test Header</span></div><div id="ctl02_body" style="height:150px;"><div id="ctl02_ctl00"> Test Content </div></div></div>

Ive just solved this problem. I simply removed 'OnClientActiveTabChanged="ClientFunction" ' which was still in there from when I took the code from the Sample Website. boonaap, I hope this solves your problem too. It sounds like it might since youre having an identical problem.


well eh it didn't,Confusedit was even a bit more eh stupid

Forgot to add all the info in the web.config...

Yes Iknow :)=)

don't ask