Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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´íÎó´¦Àí

 ³öÏÖ´íÎó·¢ËÍEmail
¿ÉÒÔÔÚGlobal.asaxµÄvoid Application_Error(Object sender,EventArgs e)
{
 //Óõ½ÁËSsytem.Net.Mail
 MailMessage mail=new MailMessage();
 mail.from=new MailAddress("automated@contoso.com");
 mail.Subject="SIte Error at" +DateTime.Now;
 mail.Body="E ......

ASP.NETÖпؼþµÄÉúÃüÖÜÆÚ

 ÔÚÕÆÎÕ·þÎñÆ÷¿Ø¼þÉúÃüÖÜÆڵĹý³ÌÖУ¬¶ÁÕßÒªÌرð×¢ÒâÓйطþÎñÆ÷¿Ø¼þ״̬µÄÏà¹ØÄÚÈÝ¡£ÔÚÖصãÁ˽âÉúÃüÖÜÆÚ¸÷¸ö½×¶ÎµÄͬʱ£¬¶Ô·þÎñÆ÷¿Ø¼þµÄ״̬±ä»¯Òª×¢ÒâÒÔÏÂÎÊÌ⣺¿Ø¼þµÄÉúÃüÖÜÆÚºÎʱ±£´æ¿Ø¼þºÍ»Ö¸´Æä״̬£»ºÎʱÓëÒ³Ãæ¼°ÆäËû¿Ø¼þÖ®¼ä½øÐн»»¥£»ºÎʱִÐÐÖØÒªµÄ´¦ÀíÂß¼­£»ÔÚ¸÷¸ö½×¶Î£¬¿Ø¼þ¿ÉʹÓÃÄÄЩÐÅÏ¢¡¢±£³ÖÄÄЩÊý¾Ý¡¢ ......

ASP.NETÖзÀÖ¹Ò³Ãæ¶à´ÎÌá½»µÄ´úÂëʵÏÖ

 ´Ë´¦ÌṩµÄ´úÂëÓÃÀ´ÊµÏÖµ±asp.netÒ³ÃæÖеÄij¸öButton±»µã»÷ºódisableµô¸ÃÒ³ÃæÖÐËùÓеÄButton£¬´Ó¶ø·ÀÖ¹Ìá½»ÑÓʱµ¼ÖµĶà´ÎÌá½»¡£»ùÓÚ֮ǰµÄonceclickbutton½Å±¾.
//ASP.NETÖзÀÖ¹Ò³Ãæ¶à´ÎÌá½»µÄ´úÂë:javascript< script language="javascript"> < !-- function disableOtherSubmit() {
var obj = event.s ......

ASP.NETÌí¼ÓwebserviceÒýÓò¢²¿Êðµ½·þÎñÆ÷

¼òµ¥¾ÍÏÂÔÚ.NET¿ª·¢ÍøÕ¾ÖÐÒýÓÃwebservice²¢ÇÒ·¢²¼µ½·þÎñÆ÷µÄ×ö·¨£¬ÕâÀï²»½ØͼÁË¡£
1¡¢ÔÚÍøÕ¾ÏîÄ¿ÉÏ£¬ÓÒ¼ü-->Ìí¼ÓwebÒýÓà £¬½«webÒýÓõĵØÖ·Õ³Ìù£¬ÀýÈç http://192.168.14.222:6666/IbeBaseWebServicePublicWeb/IbeJourneyOdd.asmx
2¡¢¸øwebserviceÆð±ðÃû£¬Ò²¾ÍÊÇÒÔºóÄãµ÷ÓõÄÃüÃû¿Õ¼ä  ÀýÈçIbeJourneyOdd
ÕâÑùÔ ......

ASP.NET½Ì³Ì:µ÷ÓÃWebServiceµÄÔ´Âë


WebjxComÌáʾ£ºÕâÀïÒ»¶¨ÒªÌí¼ÓWEB ÒýÓò˵¥²½ÖèÈçÏÂproject->add web reference...£¬È»ºóÊäÈëÎÒÃÇWeb ServiceµÄ·¾¶£¬ÕâÀïÊÇhttp://localhost/WebService1/Service1.asmx£¬µã»÷Ìí¼Ó¾ÍOKÁË¡£ÕâʱÄ㽫ÔÚÀàÊÓͼÖп´µ½localhostÃüÃû¿Õ¼äÁË¡£
ÕâÀïÒ»¶¨ÒªÌí¼ÓWEB ÒýÓò˵¥²½ÖèÈçÏÂproject->add web reference...£¬È»ºóÊä ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ