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

ASP.NET

Îå¡¢ViewCollection Àà
      ViewCollection Àà±íʾһ¸ö¼¯ºÏÈÝÆ÷£¬¸ÃÈÝÆ÷ʹ MultiView ¿Ø¼þ¿ÉÒÔά»¤Æä×ӿؼþÁÐ±í¡£MultiView ¿Ø¼þÖ»Äܰüº¬ View ¿Ø¼þ×÷Ϊ×ӿؼþ¡£
ʹÓà Add ·½·¨¿ÉÒÔ½«Ð嵀 View ¿Ø¼þÌí¼Óµ½ ViewCollection ¼¯ºÏÖеÄÐòºÅË÷ÒýÊý×éĩβ¡£Ê¹Óà AddAt ·½·¨¿ÉÒÔ½«Ð¿ؼþÌí¼Óµ½Ìض¨µÄË÷ÒýλÖá£Ê¹Óà Item Ë÷ÒýÆ÷¿ÉÒÔÓüòµ¥µÄÊý×é±íʾ·¨£¬´Ó ViewCollection ¼¯ºÏÖеÄÖ¸¶¨Ë÷ÒýλÖûñÈ¡ View ¿Ø¼þ¡£
 
ʾÀý
ÏÂÃæµÄ´úÂëʾÀýÑÝʾÈçºÎÒÔ±à³Ì·½Ê½½« View ¿Ø¼þÌí¼Óµ½ MultiView ¿Ø¼þÖС£´´½¨Ã¿¸ö View ¿Ø¼þºó£¬Ê¹Óà AddAt ·½·¨½« View ¿Ø¼þÌí¼Óµ½ MultiView ¿Ø¼þµÄ ViewCollection ¼¯ºÏÖеÄÖ¸¶¨Ë÷ÒýλÖá£Ê¹Óà Item Ë÷ÒýÆ÷·ÃÎÊ´æ´¢ÔÚ ViewCollection ¼¯ºÏÖÐµÄ View ¿Ø¼þµÄ ID ÊôÐÔ²¢ÏòÓû§ÏÔʾÕâЩÊôÐÔ¡£
<%@ Page Language="VB"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html  >
<head>
    <title>ViewCollection example</title>
<script runat="server">
 
        Sub Button1_Click(ByVal Sender As Object, ByVal e As EventArgs)
            ' Create a MultiView control.
            Dim MultiView1 As New MultiView
 
            ' Create a ViewCollection for the View
            ' controls contained in MultiView1.
            Dim myViewCollection As New ViewCollection(MultiView1)
 
            ' Create a View control.
            Dim View1 As New View
            ' Use a helper function to create the view.
    &nb


Ïà¹ØÎĵµ£º

asp.netʵÏÖα¾²Ì¬


webconfigα¾²Ì¬
<system.web>
<httpHandlers>
<add verb="*" path="*.aspx" type="URLRewriter.RewriterFactoryHandler, URLRewriter"/>
<add verb="*" path="*.html" type="URLRewriter.RewriterFactoryHandler, URLRewriter"/>
</httpHandlers>
</system.web> ......

½â¾öASP.NETϵÄMENU¿Ø¼þÔÚIE8Öв»ÏÔʾµÄÎÊÌâ

Ô­µØÖ·£ºhttp://blogs.msdn.com/giorgio/archive/2009/02/01/asp-net-menu-and-ie8-rendering-white-issue.aspx
ASP.NET Menu and IE8 rendering white issue
If you are using the ASP.NET Menu control, you might encounter under certain circumstances an issue where the menu appears as a white box in IE8 Stan ......

ASP.NET¶¯Ì¬¼ÓÔØÓû§¿Ø¼þµÄÒ³ÃæÉú³É¹ý³Ì

 MainPageÎļþ£ºWebForm1.aspx
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="TestMasterPage.WebForm1" enableViewState="False"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
    <HEAD>
&n ......

ASP.NET

      MultiView ºÍ View Web ·þÎñÆ÷¿Ø¼þÓÃ×÷ÆäËû¿Ø¼þºÍ±ê¼ÇµÄÈÝÆ÷£¬²¢ÌṩÁËÒ»ÖÖ¿É·½±ãµØÏÔʾÐÅÏ¢µÄÌæ»»ÊÓͼµÄ·½Ê½¡£
 
Ò»¡¢·½°¸
¿ÉÒÔʹÓà MultiView ºÍ View ¿Ø¼þÖ´ÐÐÈçÏÂÈÎÎñ£º
·¸ù¾ÝÓû§Ñ¡Ôñ»òÆäËûÌõ¼þÌṩ±¸Ñ¡¿Ø¼þ¼¯¡£ÀýÈ磬Äú¿ÉÄÜÔÊÐíÓû§´ÓÒ»¸öÔ´ (feed) ÁбíÖÐÑ¡Ôñ£¬ÆäÖ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ