CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 8/29/2007 7:56:12 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 38 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
sani723
Asp.Net User
Theme Implementation with RadiobuttonList Problem8/29/2007 7:56:12 AM

0/0

i have made a user control of RadioButtonList to select the diffrent Themes and accessing all the themes from App_Theme folder and binding to the RadioButtonList like this

 

if (Globals.ThemesSelectorID.Length == 0)

Globals.ThemesSelectorID = rbl.UniqueID;

rbl.DataSource = Helpers.GetThemes();

rbl.DataBind();

rbl.SelectedValue = this.Page.Theme;

 

it is binding fine but the problem comes when i run the page and select the different Themes from RadioButtonList it does no apply that theme, only page posts back.

 

and this is my BasePage Class

 

public class BasePage : System.Web.UI.Page

{

protected override void OnPreInit(EventArgs e)

{

string id = Globals.ThemesSelectorID;if (id.Length > 0)

{

// if this is a postback caused by the theme selectors RadioButtonListdownlist,

// retrieve the selected theme and unse it for the current page request

if (this.Request.Form["__EVENTTARGET"] == id &&!string.IsNullOrEmpty(this.Request.Form[id]))

{

this.Theme = this.Request.Form[id];

this.Session["CurrentTheme"] = this.Theme;

}

else

{

if (this.Session["CurrentTheme"] != null)this.Theme = this.Session["CurrentTheme"].ToString();

}

}

base.OnPreInit(e);

}

}

 

how i can resolve this

Amanda Wang - M
Asp.Net User
Re: Theme Implementation with RadiobuttonList Problem8/31/2007 4:39:13 AM

0/0

Hi,

You want to enable your end-uses to change the application theme?

We cannot reproduce your probelm with the code that you provided.

You can refer this article of the ScottGu: Recipe: Dynamic Site Layout and Style Personalization with ASP.NET

Hope it helps


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Professional Community Server Themes Authors: Wyatt Preul, Benjamin Tiedt, Pages: 337, Published: 2007
Practical Apache Struts 2 Web 2.0 Projects Authors: Ian Roughley, Pages: 338, Published: 2007
Beginning Jboss Seam: From Novice to Professional Authors: Joseph Faisal Nusairat, Joseph Nusairat, Pages: 350, Published: 2007
Advances in Universal Web Design and Evaluation: Research, Trends and Opportunities Authors: Sri Kurniawan, Panayiotis Zaphiris, Pages: 304, Published: 2006

Web:
[#WW-2400] ajax theme doesnt work for ajax ... WW-2403 ajax theme doesnt work for ajax validations .... Nabble - Struts - Dev - [jira] Created: (WW-2400) [jira] Created: (WW-2400) ajax theme doesnt work for ajax validations. ajax theme doesnt work for ajax...
Override Skin file in CheckBoxList item The problem is that we use a master.skin file that overrides any classes I add to ... Are you using the Theme or StylesheetTheme attribute? ...
MSDN Windows Presentation Foundation (WPF) Setting IsChecked ... Just to clarify - when using the Luna / Classic theme a disabled RadioButton only renders as "Checked" if the IsChecked value is set to *null*. ...
Strange behaviour with CSS & checkboxlist - ASP.NET Forums I have a simple page with a checkboxlist and I am using themes in my project. I have used a css file within the theme. My problem is - The ...
is icon source available for addons manager radiobutton icons ... is icon source available for addons manager radiobutton icons? ... i'm working on a bon echo version of my theme. i'm wondering if it's ...
[#WW-2403] ajax theme doesnt work for ajax ... . ...
CodeProject: Enhanced RadioButtonList web control. Free source ... Aug 10, 2006 ... NET RadioButtonList web control you properbly know about it's left margin ( wrapping) problem (see left picture below). ...
[jira] Created: (WW-2400) ajax theme doesnt ... ... [jira] Resolved: (WW- 2400) ajax theme doesnt work for ajax validations Ted Husted (JIRA) (2k) ...
Standard Radio Button List Component - Sun Java Studio Creator 2 ... You can drag the Standard JavaServer Faces Radio Button List component radio ... is a JavaServer Faces reference implementation that cannot use themes. ...




Search This Site:










best approach for using content place holder and setting up master page

master pages and menu causes problem with styles

formatting tree view control in asp.net 2.0

stuck stuck stuck

applying css to content page

master page problem

c# linkbutton with masterpage

navigation drop down menu

how to access master page datalist from a content page ?

the controls collection cannot be modified because the control contains code blocks ...

web.site map and asp menu control

sitemap structure help

skin for html control

<%= %> script blocks inside of a <style> tag in header

print preview of a page different from what it comes out after printing...... css issue

menu subitems being hid

app_themes in a child application

adding image to menuitem, how??

no default member found for type 'guid'

theme css file + url rewriting = bug

accessing a master page public variable from user control

about treeview control in asp.net 1.1

bredcrumbs question?

tweaking the treeview navigation control - perhaps???

load page parts based on postbacks

maximizing contentplaceholder

scrolling to a treeview node

sidebar and content area layout problem

wizard sidebar skips validation - any way to prevent?

unable to access property from master page

  Privacy | Contact Us
All Times Are GMT