This is a migrated thread and some comments may be shown as answers.

[Solved] CSS style not applied after postback

3 Answers 391 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Andy
Top achievements
Rank 1
Andy asked on 22 Jun 2009, 11:53 AM
Hello!

I'm experiencing weird issue with RadUpload control. When the page initially loads, everythings looks fine, but after I click "Load" button, the postback occures and "Browse..." button of the RadUploader seems to lose it's css style.
I'm stuck with this one, so I really hope you guys can help me out. Thanx a lot in advance!

Here's the content of my aspx page:

<

 

asp:Content ID="Content1" ContentPlaceHolderID="plcContent" runat="server">

 

<

 

style type="text/css">

 

 

.RadUpload_artUpload .ruBrowse

 

{

 

background-color: #dcf0ff;

 

 

border: solid 2px #aadcff;

 

 

height: 23px;

 

 

width: 86px;

 

}

 

</

 

style>

 

 

 

 

<asp:Button ID="btnLoad" runat="server" Text="Load"/>

 

 

<telerik:RadUpload ID="ruFileUpload" MaxFileInputsCount="1" Skin="artUpload" ControlObjectsVisibility="None" runat="server" Localization-Select="Browse..." EnableEmbeddedSkins="false" />

 

</

 

asp:Content>

 

3 Answers, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 22 Jun 2009, 12:55 PM
Hello Andy,

First off, please check if your are really using RadUpload for ASP.NET "Classic" or RadUpload for ASP.NET AJAX. We think it's the latter.

Anyway, we tried to repro the reported issue using the provided code snippet, but to no avail. Please try to provide additional detail on your implementation.

Best wishes,
Paul
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Andy
Top achievements
Rank 1
answered on 23 Jun 2009, 05:28 AM
Oh, I'm terribly sorry, my bad. Yes it's Ajax. Could you move the thread to the right place please?

As for the issue - today I've noticed that the issue occures only in Internet Explorer 7 (don't know about 8). In Mozilla it works fine.
Have you tried to repro it in IE?

Thanx a lot!
Andy.
0
Paul
Telerik team
answered on 23 Jun 2009, 02:32 PM
Yes, Andy, we've tested your code snippet under IE, FF, Chrome and Safari.

Maybe you've hit the notorious limitation of Internet Explorer - it can load up to 32 CSS files and if there are more, they will be ingnored. This problem can occur in case you are using a theme with a lot of CSS (when you register the theme, automatically all the CSS is declared) or you have declared a lot of RadControls on the page. If you are using a theme you can test my assumption by removing it and test whether the RadTabStrip CSS will load correctly.

If this is the case I suggest to either use a RadStyleSheetManager which will combine all the CSS on the page or reduce the CSS files used.

Kind regards,
Paul
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Upload (Obsolete)
Asked by
Andy
Top achievements
Rank 1
Answers by
Paul
Telerik team
Andy
Top achievements
Rank 1
Share this question
or