Last post Jul 27, 2006 05:35 PM by jwadsworth
Jul 25, 2006 02:11 AM|gridview|LINK
I want to create the dynamic theme dropdown on Personal website ( i am using VB.net)
Could anybody help me to do this step by step or provide me any guidance to do this.
I searched and found that there are two ways to do this(from
1)using different master file for each theme
2) the same master file and load theme on the fly.
But i could not follow steps there as they were in C#.
I also find help from http://www.jeremywadsworth.com/ and currently using all my energy to understand codes on this website.
Are there any suggestions to do it in simple way ?
Jul 25, 2006 08:50 PM|jwadsworth|LINK
If you find a good piece of code in C# and you want vb.net, you can try using an online language conversion tool to covet the language and then work from there. I have done this several times with a pretty high success rate. You will find that the code does
not always get converted correctly, but once you get most of the code in your language, it is easier to fix.
Here is one that converts several different languages.
I am neck deep in a project and don't have time to go back and look at my code and explain to you the steps to implement it. If I find a little extra time this week, I may post something here.
Jul 25, 2006 08:54 PM|jwadsworth|LINK
The only reason to use my method of different masters for each theme would be if you want each theme to have an entirely different layout.
Jul 25, 2006 11:01 PM|gridview|LINK
Thanks a lot Jeremy for your time.
I downloaded codes from your website but when i start going through the codes , i must confess , they were really of high level ...for me ,Sure, I will wait for your post where you can explain me the steps to implement it .
Honestly, myself will need large amount of time to understand them and then only i can think of implementing it.
Thanks for the link to convert different language, sure it will ease my work.
In the meantime while searching the forum for Dynamic Themes , i found this thread(u also posted in this forum , so i am sure u can help me , yes if you get time ):
i am trying to do what rgibson69 in the same thread did but the problems i am facing are:
1. How to write ThemeManager
class in VB.net , i tried conversion link but it failed.
2.Where to place this code and How to write this code in VB.net ?
protected void lstTema_DataBound(object sender,
lstTema.SelectedValue = Page.Theme;
protected void lstTema_SelectedIndexChanged(object sender,
I currently placing the above method under Default.aspx.vb.
I also dont know what the ThemeManager class and above method are doing.
Any help from you as per your time permits , will greatly help me to move towards my goal .
Jul 26, 2006 12:22 AM|gridview|LINK
In the mean time , i was able to write ThemeManager class in VB.NET(see below) ,hopefully its correct
but still not sure what this class does ? :
Jul 26, 2006 12:55 AM|gridview|LINK
yes, still working to attain the goal .......
in the mean time i was able to figure out how to write methods (which i asked in previous post) in vb.net (hopefully its correct ) as:
PS: 1. i also realized that dropdownthemes is the ID attribute of drowpdownlist control :(
2. But still i am not sure where to place these methods ?
i think it shd be in default.aspx.vb as dropdownlist is default.aspx
dropdownthemes.SelectedValue = Page.Theme
Protected Sub lstTema_SelectedIndexChanged(ByVal sender
ByVal e As EventArgs)
Jul 26, 2006 01:25 AM|jwadsworth|LINK
Jul 26, 2006 01:25 AM|gridview|LINK
getting error on these lines :
1: ERROR : Reference to a non-shared member requires an object reference
2.ERROR : Server,Session,Request is not declared
:( Still trying if i can load dynamic themes on my website by tonight ,looks difficult
Jul 26, 2006 01:28 AM|gridview|LINK
Ok, so one question solved.
thanks jeremy !
Jul 26, 2006 02:28 AM|gridview|LINK
the 2 errors (Reference to a non-shared member requires an object reference and Server,Session,Request is not declared) are gone now
now i am facing a weird problem,
inspite of declaring dropdownlist button on default.aspx , when i run website
dropdownlist button just shows all options as "Theme" .
Please help ........
my dropdownlist button is like this :
Jul 26, 2006 02:36 AM|jwadsworth|LINK
Jul 26, 2006 03:13 AM|gridview|LINK
thanks Jeremy for pointing out that , i removed datasource binding on dropdownlist control,
and now....dynamic theme is working fine.
Thank you for your time and prompt help , which made me achieve the goal before morning [:D]
tomorrow i will start adding next feature on my website : Guest Book
sure will need your help for that as well ,thanks a lot !!
Jul 27, 2006 05:35 PM|jwadsworth|LINK