Asp.netÖÐÔËÓÃcss
ÔÚweb¿ª·¢Öо³£»áÅöµ½cssÑùʽµÄÔËÓã¬ÎÒ¾ÍÔÚasp.netÖÐÔËÓÃÑùʽ½øÐÐÁË×ܽᣡ
1¡¢Ê¹ÓÃstyleÊôÐÔÉèÖÃÑùʽ
•
nʵÀý
•StyleÊôÐÔÉèÖÃ
<asp:TextBox ID="TextBox1" runat="server"
style="background-color:Red; font-size:15px">
</asp:TextBox>
2¡¢Ê¹ÓÃCssclassÊôÐÔÉèÖÃÑùʽ²½Öè
•´´½¨cssÑùʽ±í
<style type="text/css">
.textStyle { BORDER-LEFT-COLOR: red; BORDER-BOTTOM-COLOR: red; FONT: 14pt verdana; WIDTH: 300px; BORDER-TOP-STYLE: dashed; BORDER-TOP-COLOR: red; BORDER-RIGHT-STYLE: dashed; BORDER-LEFT-STYLE: dashed; BACKGROUND-COLOR: yellow; BORDER-RIGHT-COLOR: red; BORDER-BOTTOM-STYLE: dashed }
</style>
•ÉèÖÃCssClassÊôÐÔ
<asp:TextBox ID="TextBox1" runat="server" CssClass="textStyle">
3¡¢Ê¹ÓÃStyleÀà
nÉùÃ÷StyleÀàµÄ²½Öè
•ÉùÃ÷Style¶ÔÏó
•ÉèÖÃStyle¶ÔÏóµÄÊôÐÔ
•
Style style = new Style();
style.BorderColor = System.Drawing.Color.Red;
style.BorderStyle = BorderStyle.Dotted;
style.BorderWidth = 1;
TextBox1.ApplyStyle(style);
½«Style¶ÔÏóÓ¦Óõ½Web·þÎñÆ÷¿Ø¼þ
Ïà¹ØÎĵµ£º
asp.net ѧϰ×ÊÔ´
¹ØÓÚ´ËÖ÷Ìâ½öÓÐ 1 ¸öÌû×Ó - Ê÷ʽä¯ÀÀ
astin...@gmail.com
9ÔÂ26ÈÕ ÉÏÎç12ʱ41·Ö ÏÔʾѡÏî
·¢¼þÈË£º astin...@gmail.com - ²éÕÒ´Ë×÷ÕßµÄÌû×Ó
ÈÕÆÚ£ºSun, 25 Sep 2005 09:41:54 -0700
µ±µØʱ¼ä£º2005Äê9ÔÂ26ÈÕ(ÐÇÆÚÒ») ÉÏÎç12ʱ41·Ö
Ö÷Ì⣺asp.net ѧϰ×ÊÔ´
´ð¸´×÷Õ ......
http://blog.csdn.net/chengking/archive/2005/10/27/518079.aspx
(Ò»).Ñ¡Ôñ»á»°×´Ì¬´æ´¢·½Ê½
ÔÚWebconfigÎļþÅäÖÃ:
<sessionState mode="???" stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString ......
1¡¢Ìí¼ÓÒ»¸öÍøÕ¾µØͼÏî Web.sitemapÏî
2¡¢ÔÚ Web.sitemapÏîµÄд·¨ÈçÏ£º
<?xml version="1.0" encoding="utf-8"?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0
">
<siteMapNode url="default.aspx" title="Ê×Ò³&qu ......
ĬÈÏÇé¿öÏ£¬ÄäÃûÓû§²»ÄÜÐÞ¸ÄprofileÊôÐÔ£¬ÎÊÌâÔÚÓÚASP.NET FrameworûÓа취¹ØÁªProfileÊý¾ÝºÍÌض¨µÄÓû§£¬³ý·ÇÓû§ÊǾ¹ýÉí·ÝÑéÖ¤µÄ¡£
Èç¹ûÏ£ÍûÄäÃûÓû§ÐÞ¸ÄprofileµÄÊôÐÔ£¬±ØÐëÆôÓÃASP.NET FrameworkµÄÄäÃûÈÏÖ¤£¨Anonymous Identification£©µÄ¹¦ÄÜ¡£µ±¿ªÆôÕâ¸ö¹¦ÄÜʱ£¬Ò»¸ö±êʶ£¨Ò»¸öGUID£©±»·ÖÅä¸øÄäÃûÓû§£¬²¢ ......
ÕâÊÇÎÒ´Ó±ð´¦Õª³µÄһƪÎÄÕ£¬ÏàÐÅ´ó¼Ò¶¼ºÜÊìϤµÄ£¬½²µÄºÜÃ÷°×£¬µ«ÊÇÎÒ¶ÔÆäÖÐÒ»µã´æÓÐÒÉ»ó£¬Ðí¾ÃҲûÓÐÕÒµ½´ð°¸¡£
µ÷ÓÃwebserviceʱ¿ÉÒÔ·µ»ØdatatableµÈ¸´ÔÓÊý¾ÝÀàÐÍ£¬ÏÂÃæÀý×ÓÖÐÒ²Óеģ¬ÔÚǰ̨µ÷ÓÃʱ£¬ÆäʵÕâЩÊý¾ÝÀàÐ;¹ýÁËת»»Æ÷´¦Àí¡£ÏÂÃæµÄÀý×ÓÖУ¬·µ»ØµÄdatatable±»Ò»ÏîÒ»ÏîÌí¼Óµ½selectÉÏÈ¥ÁË£¬ÆäʵÎÒ¿´ÁË¾Í ......