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

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ѹËõÎļþÀà

½ñÌìÑо¿ÁËÒ»ÏÂÔÚasp.netÏÂÓÃC#ÓïÑÔѹËõÎļþ£¬ºÍ½âѹÎļþ£¬ÔÚÍøÉϺÃÁ˺þòÅÕÒµ½Ô´´úÂ룬£¬Õæ²»ÈÝÒ×°¡£¡£¡
ÔÚ ASP.NET ÖÐÓÐÁ½¸öÀࣺDeflateStream ºÍ GZipStream ÓÃÓÚ´¦ÀíѹËõºÍ½âѹËõ£¬ÕâÁ½¸öÀà·Ö±ðʹÓõÄÊÇ DEFLATE ºÍ gzip ѹËõËã·¨£¬ÕâÁ½¸öËã·¨±»Ò»Ð©Ñ¹ËõÈí¼þÖ§³Ö£¬±ÈÈç WinRAR ¾ÍÖ§³Ö gzip¡£ÕâÁ½¸öÀàµÄÃû³Æ¿Õ¼ä¾ùΪ£ ......

Asp.NetÐÔÄÜÓÅ»¯

(Ò»).Ñ¡Ôñ»á»°×´Ì¬´æ´¢·½Ê½
    ÔÚWebconfigÎļþÅäÖÃ:
    <sessionState mode="???" stateConnectionString="tcpip=127.0.0.1:42424"
         sqlConnectionString="data source=127.0.0.1;Trusted_Connection=y ......

asp.netºǫ́¼Ó½Å±¾µÄ¼¸ÖÖ·½Ê½

1. 
ClientScript.RegisterStartupScript(this.GetType(), "js1", "alert('ɾ³ý³É¹¦');window.location='QuerySortList.aspx';", true);
2.
 this.cmdSave.Attributes.Add("onclick", "return f_StringCheck()"); ......

asp.net TextBoxÖ»¶Áʱ²»ÄÜͨ¹ýºǫ́¸³ÖµÈ¡Öµ½â¾ö°ì·¨


¸øÒ³ÃæµÄTextBoxÉèÖÃReadOnly="True"ʱ,ÔÚºǫ́´úÂëÖв»Äܸ³ÖµÈ¡Öµ,ϱ߼¸ÖÖ·½·¨¿ÉÒÔ±ÜÃâ:
1¡¢²»ÉèÖÃReadOnly,ÉèÖÃonfocus=this.blur()
C#´úÂë
<asp:TextBox ID="TextBox1" runat="server" onfocus=this.blur()></asp:TextBox>  
<asp:TextBox ID="TextBox1" runat="serve ......

ASP.NETÓëJavaScript½»»¥

1.asp.netºô½Ðjs
view
plain
copy
to clipboard
print
?
Response.Write("<mce:script language=javascript><!--  
");  
Response.Write("alert('»¶Ó­Äú ');"
 );  
Response.Write("location.href='login.aspx';"
)& ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ