asp.net 中的动态主题
我想以用户可以选择主题的方式开发我们的网站。当用户选择主题时,我想以各种外观显示我们网站主页的图像,用户只需选择图像,我们网站的主题就会改变。我知道如何从后面的代码更改主题。
我的问题是,如何以用户选择的不同外观显示网站主页的各种图像。请告诉我出去的路。如果可能的话,给我一个小代码来生成我的网站主页的图像,并附上用户将选择的不同主题。如果有人根据我的要求知道此类内容的任何样本,请给我可以下载样本的网址。
谢谢
i want to develop our site in such a way user can choose theme. when user will choose theme then i want show the images of our site' home page with various look and user will just choose the images and theme of our site will be change. i know how to change theme from the code behind.
my question is that how could i display the various images of my site's home page with different look which user choose. please tell me the way out. if possible give me a small code to generate the images of my site's home page with different theme attach which user will choose. if anyone know any sample of such things according to my requirement then please give me the url from where i can download the sample.
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我想我知道你想说什么,我会这样处理:
对每个主题执行这些步骤后,请执行以下操作将每个预览应用到按钮
。应用 ID、ImageURL、ImageAlign、runat、高度和宽度。该控件应根据按钮的高度和按钮调整图像大小。宽度。我希望这对您有所帮助
编辑:我还会寻找《Beginning ASP.NET in C# & ASP.NET in C#》一书。 VB。出版商是 Wrox。我在 www.wowebook.com 上发现了这一点以及更多内容:)
I think I know what you're trying to say, and I would go about it like this:
Once you have followed these steps for each of your themes, do the following to apply each preview to a button
<asp:ImageButton>
for each theme. Apply ID, ImageURL, ImageAlign, runat, Height, and Width. The control should resize the image based on the button's height & width.I hope this helps you out
EDIT: I would also look for the book Beginning ASP.NET in C# & VB. Wrox is the publisher. I have found that and a lot more at www.wowebook.com :)
您可以使用 ASP.NET 主题,它可能是 在运行时动态更改。
You could use ASP.NET Themes which could be changed dynamically at runtime.