插入主题 [英] inserting theme

查看:93
本文介绍了插入主题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何插入主题是c#编程中的asp.net网页..

how to insert theme is asp.net web page in c# programming..

推荐答案


可以通过以下步骤添加主题
步骤1:

从解决方案资源管理器窗口中选择您的站点,然后右键单击以添加ASP.NET文件夹,您将轻松地看到它,并从其选择主题文件夹的最后一个选项,并命名为Radix

步骤2:

现在,在本例中,选择Radix的Theme文件夹,然后右键单击以添加皮肤文件,当皮肤文件打开时,您将看到所有注释删除这些注释并添加以下代码片段,这将更改单个文本框的前景色在一页上变成红色

Adding theme can be done with the help of following steps
step 1:

From the solution explorer window select your site and then right click to add ASP.NET Folder you will easily see it and from their select the last option thats the theme folder and give it a name say Radix

Step 2:

Now select the Theme folder in this case Radix and right click on it to add the skin file, when the skin file opens you will see all the comments remove those comments and add the following snippet of code which will change the forecolor of a single textbox to red in a single page

<asp:textbox runat="server" forecolor="Red" skinid="1" xmlns:asp="#unknown"></asp:textbox>


步骤3:

选择源代码视图,并在添加主题指令后从页面指令中的添加主题属性中,您的指令将如下所示


Step 3:

Select source view and from their add Theme attribute in the page directive after you have add the theme directive your directive will look like this

<<%@ Page Language="C#" AutoEventWireup="true" Theme="Radix"  CodeFile="Default.aspx.cs" Inherits="_Default" %>>



步骤4:

转到设计视图拖移n放下一个文本框,并从其选择的Skinid到1,然后运行您的应用程序,操作完成
有关主题的更多信息,请搜索
Google

一旦找到有用的答案,就对我的答案进行评分

谢谢&问候
基数:)



Step 4:

Go to the design view drag n drop a textbox and from their select its skinid to 1 and then run your application and you are done

For more information on themes search Google

Do rate my answer once you find it useful

Thanks & Regards
Radix :)


这篇关于插入主题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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