asp.netÖÐÓÃframeset²¼¾Ö±¨´í
asp.netÖÐÓÃframeset²¼¾Ö±¨´íÊÇʲôÔÒòÄØ£¿
framesetʵÀý
Ò³Ãæ·Ö×óÓÒÁ½²¿·Ö£¬µã»÷×ó±ßµÄhtmlÎÄ×Öºó£¬ÐÂÒ³ÃæÔÚÓұ߲¿·ÖÏÔʾ¡£Ö÷Òª¼Çס¡°target¡±ÊôÐÔ¡£
main.htm
HTML code:
<html>
<head><title>³¬Á´½ÓÓë¿ò¼ÜµÄÖÆ×÷</title></head>
<frameset cols="20%,*">
<frame name="index" src="host.htm">
<frame name="content" src="htmlÓïÑԽ̳Ì1.htm">
</frameset>
</html>
host.htm
HTML code:
<html>
<head><title>³¬Á´½ÓÓë¿ò¼ÜµÄÖÆ×÷</title></head>
<body>
<a href="htmlÓïÑԽ̳Ì1.htm" target="content">htmlÓïÑԽ̳Ì1</a><br />
<a href="htmlÓïÑԽ̳Ì2.htm" target="content">htmlÓïÑԽ̳Ì2</a><br />
<a href="htmlÓïÑԽ̳Ì3.htm" target="content">htmlÓïÑԽ̳Ì3</a>
</body>
</html>
²»ÖªµÀÄã˵µÄÊDZ¨Ê²Ã´´í
asp.net ²»Ö§³ÖframesetµÄÉè¼Æ½çÃæ ľÓа취 ¿ÉÒÔÓÃdreamweaver±àºÃÈ»ºó¸´ÖƵ½ÄãÒªÓÃframesetµÄÔ´´úÂëϼ´¿É ¾ßÌå²¼¾Öµ÷Õû¿ÉÓõ÷¶È
±¨´íûÓйØÏµ£¬¿ÉÒÔÖ´ÐÐ
frameset һֱ˵ÊÇÒª±»AJAXÈ¡´ú£¬²»¹ýÎÒ¾õµÃFramesetÔÚ²¼
Ïà¹ØÎÊ´ð£º
Imports System.ComponentModel
Imports System.Web.UI
Imports System.Web.UI.Design
Imports System.Web.UI.WebControls
Namespace CBDAspNet.WebControls.HTML
''' <summary>
'' ......
Êý¾Ý¿â±íÖÐÓÐÒ»ÁУ¨TranXml£©ÀàÐÍÊÇxml£¬´æ´¢µÄÊÇÀàËÆ
<fathernode>
<a>aaa
</a>
<b>bbb
</b>
</fathernode>
µÄÐÅÏ¢£¬²¢ÇÒͨ¹ý²éѯ·½· ......
СµÜÊǽñÄê¸Õ±ÏҵѧÉúÕÒÁ˺ܳ¤Ê±¼ä¹¤×÷ÁË,×ÜÊÇʧ°Ü£¬Ò»Ð©¹«Ë¾¶¼ÒªÓй¤×÷¾ÑéµÄ£¬¶¼±ÀÀ£ÁË£¬ËùÒÔÏëÇë¸÷λ´ó¸ç°ï¸öæ
½ñÌìÎÒÈ¥ÃæÊÔÁËÒ»¼Ò¹«Ë¾£¬ËûÊÇÏë×öÒ»¸ö¡°Ò½ÁƵÄÍøÕ¾¡±Ï൱ÓÚÊÇÍÆ¹ã×Ô¼ºµÄÒ½ÁÆ·½·¨°É£¬Ëû½ÐÎ ......
3¸öradioButton
Ò»¸öButton
Ò»¸ölabel
C# code:
protected void Button1_Click(object sender, EventArgs e)
{
string str = null;
RadioButton rdo=(RadioButton)sender;
......