如何发送皮肤主题到另一个页面 [英] how to send skins & themes to another page

查看:64
本文介绍了如何发送皮肤主题到另一个页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨...
我想为大学的finall项目编写一个cms(内容管理系统)..
但是..我有问题...
我想要在程序中,用户可以在下拉列表中选择我准备的主题
然后选择您喜欢的主题...然后点击按钮
我如何将他或她的选择发送到另一页并在该页上使用..
例如(css文件和皮肤文件)

hi...
i want to write a cms (content managment system)..for finall project in college
but..i have a problem...
i want in my program , user can select a themes that i prepared them in drop down list
and select your favorite theme...then after click on the button
how i send him or her selection to another page and use it on the page..
for example(css file and skin file)

推荐答案

有很多方法:-
1.用于查询应用主题的字符串.
2.找到上一页下拉列表控件的控件,并应用选定的值.
there are many way:-
1.You use to query string for apply themes.
2.You find control of previous page dropdownlist control and selected value apply.
dropdownlist dropdown1=(dropdownlist)PreviousPage.FindControl("dropdown1");


3.使用会话的最佳方式.当用户更改时,下拉列表值存储在会话变量中.现在您可以在任何页面中检索会话值并应用主题.

4.您将用户主题存储在数据库中.当用户登录然后检索值表单数据库并在每个页面中应用时.//用于编写身份验证基础程序的程序.

希望我的建议对您有所帮助.


3.Best way you use session. when user change the dropdownlist value is store in session variable. now you retrieve session value in any page and apply the themes.

4.you store the user themes in database. and when user login then retrieve value form database and apply in each page.//this use for when you write a program for authentication base program.

I hope my suggestion is helpful for you.


您好,
不要为您的问题而烦恼.这很容易
由于在您的应用程序级别下出现的所有主题和外观仅意味着所有内容都将仅在网站下.

因此,如果将主题名称发送到其他网页,您的问题将得到解决.
为此,您可以使用asp.net中的任何状态管理技术

寻求帮助,请复习答案1.

谢谢.
Hi,
Don''t bother about your problem. it''s very easy
Since all the themes and skins present under your application level only means everything will be under the website only.

so if you''ll send the theme name to other webpage your problem will be solved.
For this you can use any of the state management technique in asp.net

for assistance review answer 1.

Thank You.


这篇关于如何发送皮肤主题到另一个页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆