Click here to Skip to main content
15,887,485 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Response.Write in aspx file Pin
Viral Upadhyay13-Apr-10 19:26
Viral Upadhyay13-Apr-10 19:26 
AnswerRe: Response.Write in aspx file Pin
Martin Jarvis13-Apr-10 20:38
Martin Jarvis13-Apr-10 20:38 
GeneralRe: Response.Write in aspx file Pin
Abdul Rahman Hamidy16-Apr-10 18:37
Abdul Rahman Hamidy16-Apr-10 18:37 
QuestionError WebForm_InitCallback and WebForm_DoCallback is not defined Pin
Tridip Bhattacharjee13-Apr-10 8:21
professionalTridip Bhattacharjee13-Apr-10 8:21 
AnswerRe: Error WebForm_InitCallback and WebForm_DoCallback is not defined Pin
daveyerwin13-Apr-10 9:44
daveyerwin13-Apr-10 9:44 
AnswerRe: Error WebForm_InitCallback and WebForm_DoCallback is not defined Pin
T M Gray13-Apr-10 10:21
T M Gray13-Apr-10 10:21 
GeneralRe: Error WebForm_InitCallback and WebForm_DoCallback is not defined Pin
Tridip Bhattacharjee13-Apr-10 19:52
professionalTridip Bhattacharjee13-Apr-10 19:52 
QuestionApplying theme to User Control. Pin
paper6713-Apr-10 3:43
paper6713-Apr-10 3:43 
I have a User Control that has a custom property, which I want to set by a theme.
The custom property is used in javascript that is injected into the page by a
Page.ClientScript.RegisterStartupScript method in Page_Load.
Basically I do the following :

- Placed a [Themeable(true)] attribute above my user control class.
- I register my user control in web.config.

<pages styleSheetTheme="Sunset">
  <controls>
     <add tagPrefix="UC" src="~/UserControls/MyUserControl.ascx" tagName="MyUserControl"/>
  </controls>
</pages>


- Placed a skin file under Sunset directory in App_Themes with content :

<UC:MyUserControl runat="server" CustomColor="#FF0000" />



At runtime everything works fine, but in the designer I keep getting the error :

Error Rendering Control
An unhandled exception has occured.
There was an error parsing the theme: The control type "System.Web.UI.UserControl" cannot be themed.

What am I missing here ?

tia
AnswerRe: Applying theme to User Control. Pin
buaaytt15-Jul-10 23:11
buaaytt15-Jul-10 23:11 
Questionclickable gridview Pin
tek 200913-Apr-10 1:50
tek 200913-Apr-10 1:50 
AnswerRe: clickable gridview Pin
Sneha Bisht13-Apr-10 2:10
Sneha Bisht13-Apr-10 2:10 
GeneralRe: clickable gridview Pin
tek 200913-Apr-10 4:24
tek 200913-Apr-10 4:24 
GeneralRe: clickable gridview Pin
tek 200913-Apr-10 5:04
tek 200913-Apr-10 5:04 
AnswerRe: clickable gridview Pin
Abhijit Jana13-Apr-10 6:18
professionalAbhijit Jana13-Apr-10 6:18 
GeneralRe: clickable gridview Pin
tek 200913-Apr-10 7:45
tek 200913-Apr-10 7:45 
Questioncheck if flash plugin intalled on browser Pin
gottimukkala13-Apr-10 1:12
gottimukkala13-Apr-10 1:12 
AnswerRe: check if flash plugin intalled on browser Pin
Martin Jarvis13-Apr-10 9:14
Martin Jarvis13-Apr-10 9:14 
AnswerRe: check if flash plugin intalled on browser Pin
T M Gray13-Apr-10 10:28
T M Gray13-Apr-10 10:28 
QuestionReg: language Pin
sowjanya313-Apr-10 1:09
sowjanya313-Apr-10 1:09 
AnswerRe: Reg: language Pin
Gaurav Dudeja India13-Apr-10 1:19
Gaurav Dudeja India13-Apr-10 1:19 
AnswerRe: Reg: language Pin
The Man from U.N.C.L.E.13-Apr-10 1:26
The Man from U.N.C.L.E.13-Apr-10 1:26 
GeneralRe: Reg: language Pin
J4amieC13-Apr-10 2:10
J4amieC13-Apr-10 2:10 
GeneralRe: Reg: language Pin
The Man from U.N.C.L.E.13-Apr-10 2:49
The Man from U.N.C.L.E.13-Apr-10 2:49 
AnswerRe: Reg: language Pin
Brij13-Apr-10 2:10
mentorBrij13-Apr-10 2:10 
AnswerRe: Reg: language Pin
farogh haider13-Apr-10 3:13
farogh haider13-Apr-10 3:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.