SilverlightÓ¦ÓóÌÐòÖлñÈ¡ASP.NETÒ³Ãæ²ÎÊý
·½·¨Ò»£ºÊ¹ÓÃInitParameters
´«µÝ²ÎÊýÒ³Ãæ:
´«µÝÒ»¸ö²ÎÊý
string url = "index.aspx?UserID=" +userId;
//×î´ó»¯
string refUrl = "<Script>window.self.open('" + url + "', '', 'fullscreen=yes,scrollbar=no,toolbar=no,location=no,status=no, menubar=no, resizable=no', true);</script>";
this.Response.Write(refUrl);
Silverlight Host Ò³Ãæ:
string UserID= Request.QueryString["UserID"].ToString();
//½«²ÎÊý´«µ½Silverlight Àï
this.Xaml1.InitParameters = String.Format("UserID={0}",UserID);
silverlight App.xaml.csÀï
private void Application_Startup(object sender, StartupEventArgs e)
{
// »ñµÃ²ÎÊý
string userId = e.InitParams["UserID"].ToString();
this.RootVisual = new index();
}
·½·¨¶þ £ºÊ¹ÓÃSystem.Windows.Browser.HtmlPage.Document.QueryString
´«µÝ²ÎÊýÒ³Ãæ:
´«µÝÒ»¸ö²ÎÊý
string url = "index.aspx?UserID=" +userId;
//×î´ó»¯
string refUrl = "<Script>window.self.open('" + url + "', '', 'fullscreen=yes,scrollbar=no,toolbar=no,location=no,status=no, menubar=no, resizable=no', true);</script>";
this.Response.Write(refUrl);
Silverlight Host Ò³Ãæ:
ÎÞ
silverlight ³ÌÐòÀï
IDictionary<string, string> paras = System.Windows.Browser.HtmlPage.Document.QueryString;
string UserID = paras["UserID"];
±¾ÎÄÀ´×ÔCSDN²©¿Í£¬×ªÔØÇë±êÃ÷³ö´¦£ºhttp://blog.csdn.net/YanRocky/archive/2009/06/11/4
Ïà¹ØÎĵµ£º
½ñÌìÑо¿ÁËÒ»ÏÂÔÚasp.netÏÂÓÃC#ÓïÑÔѹËõÎļþ£¬ºÍ½âѹÎļþ£¬ÔÚÍøÉϺÃÁ˺þòÅÕÒµ½Ô´´úÂ룬£¬Õæ²»ÈÝÒ×°¡£¡£¡
ÔÚ ASP.NET ÖÐÓÐÁ½¸öÀࣺDeflateStream ºÍ GZipStream ÓÃÓÚ´¦ÀíѹËõºÍ½âѹËõ£¬ÕâÁ½¸öÀà·Ö±ðʹÓõÄÊÇ DEFLATE ºÍ gzip ѹËõËã·¨£¬ÕâÁ½¸öËã·¨±»Ò»Ð©Ñ¹ËõÈí¼þÖ§³Ö£¬±ÈÈç WinRAR ¾ÍÖ§³Ö gzip¡£ÕâÁ½¸öÀàµÄÃû³Æ¿Õ¼ä¾ùΪ£ ......
ASP.NET Cookie ¸ÅÊö
Cookie ÌṩÁËÒ»ÖÖÔÚ Web Ó¦ÓóÌÐòÖд洢Óû§Ìض¨ÐÅÏ¢µÄ·½·¨¡£ÀýÈ磬µ±Óû§·ÃÎÊÄúµÄÕ¾µãʱ£¬Äú¿ÉÒÔʹÓà Cookie ´æ´¢Óû§Ê×Ñ¡Ïî»òÆäËûÐÅÏ¢¡£µ±¸ÃÓû§ÔٴηÃÎÊÄúµÄÍøվʱ£¬Ó¦ÓóÌÐò±ã¿ÉÒÔ¼ìË÷ÒÔÇ°´æ´¢µÄÐÅÏ¢¡£
ʲôÊÇ Cookie£¿
Cookie ÊÇһС¶ÎÎı¾ÐÅÏ¢£¬°éËæ×ÅÓû§ÇëÇóºÍÒ³ÃæÔÚ Web ·þÎñÆ÷ºÍä¯ÀÀÆ÷Ö® ......
Ò»¡¢·µ»Ø¶à¸öÊý¾Ý¼¯
¼ì²éÄãµÄ·ÃÎÊÊý¾Ý¿âµÄ´úÂ룬¿´ÊÇ·ñ´æÔÚ×ÅÒª·µ»Ø¶à´ÎµÄÇëÇó¡£Ã¿´ÎÍù·µ½µµÍÁËÄãµÄÓ¦ÓóÌÐòµÄÿÃëÄܹ»ÏìÓ¦ÇëÇóµÄ´ÎÊý¡£Í¨¹ýÔÚµ¥¸öÊý¾Ý¿âÇëÇóÖзµ»Ø¶à¸ö½á¹û
¼¯£¬¿ÉÒÔ¼õÉÙÓëÊý¾Ý¿âͨÐŵÄʱ¼ä£¬Ê¹ÄãµÄϵͳ¾ßÓÐÀ©Õ¹ÐÔ£¬Ò²¿ÉÒÔ¼õÉÙÊý¾Ý¿â·þÎñÆ÷ÏìÓ¦ÇëÇóµÄ¹¤×÷ ......
/// <summary>
/// Ìṩ¾³£ÐèҪʹÓõÄһЩÑéÖ¤Âß¼¡£ ±ÈÈç ÓÊÏäÊÇ·ñºÏ·¨
/// </summary>
public class Validator
{
/// <summary>
&nbs ......
ÎÒÃÇÔÚASP.NET³ÌÐòµÄ¿ª·¢¹ý³ÌÖУ¬³£³£ÐèÒªÏòÓû§¸ø³öÌáʾÐÅÏ¢£¬±ÈÈçÊÇ·ñ“²Ù×÷³É¹¦”£¬“È·¶¨”»¹ÊÇ“È¡Ïû”²Ù×÷¡£
(1) µã»÷Ò³ÃæÉϵİ´Å¥£¬µ¯³öÒ»¸ö¶Ô»°¿òÌáʾÊÇ“È·¶¨”»¹ÊÇ“È¡Ïû”²Ù×÷£¬ÎÒÃDzÉÓÃÔÚ°´Å¥ÖÐÌí¼ÓÊôÐÔÀ´Íê³É£º
......