asp.netÉú³É¾²Ì¬Ò³Ãæ
ASP.NETÉú³É¾²Ì¬Ò³
ºËÐļ¼Êõ£º
HTMLPageÎļþ¼Ð£¬ModelHTML.htmÎļþÖеÄArticleTitle,ArticleContent¶¼ÊÇÒªÌæ»»µÄÇøÓò
WriteFile(dr["ArticleTitle"].ToString(), dr["ArticleContent"].ToString(), dr["ID"].ToString());
1.ǰ̨
<head runat="server">
<title>ASP.NETÉú³É¾²Ì¬ÍøÒ³</title>
</head>
<body style="text-align: center" mce_style="text-align: center">
<form id="form1" runat="server">
<div style="text-align: center" mce_style="text-align: center">
<table style="width: 601px" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3" style="height: 85px; text-align: center;"><strong>ASP.NETÉú³É¾²Ì¬ÍøÒ³</strong></td>
</tr>
<tr>
<td colspan="3" rowspan="2" style="vertical-align: top; height: 67px; text-align: center">
<asp:DataList ID="DataList1" runat="server" BackColor="White" BorderColor="#E7E7FF"
BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Horizontal" OnItemCommand="DataList1_ItemCommand">
<FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
<SelectedItemStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
<ItemTemplate>
<table cellpadding="0" cellspacing="0" style="font-size: 9pt; width: 563px">
<tr>
<td style="width: 30px; height: 17px">ID£º</td>
<td style="width: 60px; height: 17px"><%#DataBinder.Eval(Container.DataItem,"ID") %></td>
<td style="width: 50px; height: 17px">Ö÷Ì⣺</td>
<td colspan="3" style="width: 354px; height: 17px; text-align
Ïà¹ØÎĵµ£º
×ܽá³öÒÔϼ¸¸ö´«µÝ²ÎÊýµÄ·½·¨£º
µÚÒ»ÖÖ·½·¨£º
ͨ¹ýURLÁ´½ÓµØÖ·´«µÝ
send.aspx:
protected void Button1_Click(object sender, EventArgs e)
{
Request.Redirect("Default2.aspx?username=honge");
}
receive.aspx:
s ......
ÔÚ½øÐÐASP.NETµ÷ÊÔµÄʱºò£¬ÎÒÃǾ³£ÐèÒª½èÖúһЩÍⲿ¹¤¾ßÀ´¸¨ÖúÎÒÃÇ¡£Ë×»°Ëµ£¬¹¤ÓûÉÆÆäÊ ±ØÏÈÀûÆäÆ÷¡£¿É±ðС¿´ÁËÕâЩ¹¤¾ß£¬ËüÊÇÄã½â¾ö¸´ÔÓÎÊÌâµÄ±Ø±¸ÀûÆ÷¡£±È½Ï³£ÓõÄÓÐÕâЩ£º
HTTP×¥°ü¹¤¾ß£º Microsoft Network Monitor£¬Fiddler2£¬HttpWatcher µÈ£¬Ö÷ÒªÓÃÀ´²é¿´HTTPÏûÏ¢µÄheader£¬ÒÔ¼°body¡£ http://www.mscto.com
´ ......
public string NoHTML(string Htmlstring) //È¥³ýHTML±ê¼Ç
{
//ɾ³ý½Å±¾
Htmlstring = Regex.Replace(Htmlstring, @" <mce:script[^><!--
]*?>.*?
// --></mce:script>", "", RegexOptions.IgnoreCase);
//ɾ³ýHTML
Htmlstring = Re ......
µÚÒ»£º
private void Button1_Click( object sender, System.EventArgs e )
{
Response.Redirect( Request.Url.ToString( ) );
}
µÚ¶þ£º
private void Button2_Click( object sender, System.EventArgs e )
{ ......
ÔÚMembership±íÖпÉÒԴ洢һЩÓû§µÄ»ù±¾ÐÅÏ¢£¬µ«ÓеÄʱºò£¬ÎÒÃÇÐèÒª¼Ç¼µÄÓû§ÐÅÏ¢Ô¶Ô¶²»Ö¹Membership±íÖÐÌṩµÄÕâЩ£¬ÈçQQ¡¢MSN¡¢¼Òͥסַ¡¢ÁªÏµµç»°µÈµÈ¡£ÄÇÈçºÎ°ÑÕâЩÓû§ÐÅÏ¢¼Ç¼µ½Êý¾Ý¿âÖÐÄØ£¿ÔÚasp.net2.0ÖÐΪÎÒÃÇÌṩÁ˸öÐÔÉèÖõŦÄܨD¨DProfile¡£ÏÂÃæ¿´Ò»ÏÂProfileµÄ¼¸¸öÌØÕ÷£º
1) Profile¸ù¾Ýÿ¸öÓû§´æ´¢¸÷×Ôµ ......