asp.netÀïµ¼³öexcel±í»òWordµÄ·½·¨
¶ÔÓÚ´óÁ¿µÄÊý¾Ý£¬ÓÐʱºòµ¼³öµ½ExcelÖн«¸ü¼Ó·½±ã½øÐÐÊý¾Ýͳ¼Æ·ÖÎö£¬¶ø¶ÔÓÚÅŰæ´òÓ¡Ôòµ¼³öµ½WorldÎĵµÖиü¼Ó·½±ã¡£ÔÚASP.NET¿ÉÒÔͨ¹ýÉÙÁ¿´úÂëʵÏÖÕâÁ½ÖÖµ¼³ö¡£
н¨Ò»Ò³Ã棬¸ÃÒ³Ãæ²¼¾ÖHtmlÔ´ÂëÈçÏ£º
<form id="form1" runat="server"><div>
<asp:Button ID="cmdOpen" runat="server" Text="ÔÚÏß´ò¿ª" CommandName="open"
OnCommand="Button_Click" /> <asp:Button ID="cmdSave"
runat="server" Text="±¾µØ±£´æ" CommandName="save"
OnCommand="Button_Click" />
<asp:DropDownList ID="listType" runat="server">
<asp:ListItem Value="excel">Excel</asp:ListItem>
<asp:ListItem Value="word">Word</asp:ListItem>
</asp:DropDownList><br />
<br />
Êý¾ÝÔ´£º<br />
<br />
<asp:GridView ID="myGW" runat="server">
</asp:GridView>
</div></form>
ÕâÀïûÓÐÊ²Ã´ÌØ±ðµÄ£¬Ö»ÐèҪעÒâÔÚÏß´ò¿ªÓë±¾µØ±£´æÁ½¸ö°´Å¥Í¨¹ýCommandName½øÐмìÑé²¢´¥·¢ÏàÓ¦µÄ¶¯×÷
£¬DropDownList¿Ø¼þ´æ·ÅÁË¿ÉÒÔµ¼³öµÄ¸ñʽ£¬¿ÉÒÔ×Ô¼ºÌí¼ÓÈçtxt¡¢htmlµÈ¸ñʽ¡£×¼±¸¹¤×÷¾ÍÐ÷ÒԺ󣬿ÉÒÔ½øÐдúÂëµÄÊéд£¬ÒÔÍê³ÉÎÒÃÇÐèÒªµÄ¹¦ÄÜ£º
protected void Page_Load(object sender, EventArgs e)
{
&
Ïà¹ØÎĵµ£º
ÉèÖÃ×é¼þ
<configSections>
<section name="rewriter" requirePermission="false" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter"/>
</configSections>
ÉèÖÃÄ£¿é
<httpModules>
&n ......
ʲôÊÇCache¶ÔÏó?
ÄãÔÚÉú³É¸ßÐÔÄÜÍøÂçÓ¦ÓóÌÐòʱËùÓöµ½µÄÒ»¸öÎÊÌâ¾ÍÊÇÐèÒª±ÜÃâÖØ¸´¡£Ò»¸öCache¶ÔÏóÔÊÐíÔÚËüÃǵÚÒ»´Î±»ÇëÇóʱÔÚÄÚ´æÖлº´æÏȻºó½«±»»º´æµÄ¸±±¾ÓÃÓÚÒÔºóµÄÇëÇó¡£Ê¹Óñ»»º´æµÄ¸±±¾ÔÊÐíÄã±ÜÃâÖØ½¨Âú×ãÒÔǰÇëÇóµÄÐÅÏ¢£¬ÌرðÊÇÄÇЩÿ´Î´´½¨Ê±¶¼ÐèÕ¼ÓÐÃ÷ʾµÄ·þÎñÆ÷ÉϵĴ¦ÀíÆ÷ʱ¼äµÄÃüÁî¡£
³ý»º´æ¸ö±ðÏÈç» ......
string[] files = Directory.GetDirectories(Server.MapPath("Themes/"));
ÏÈÉùÃ÷ÁËÒ»¸ö×Ö·ûÊý×飬mapPath·½·¨µÃµ½µÄÊÇÒ»¸ö¾ø¶Ô·¾¶¡£
ÒòΪGetFiles·µ»ØµÄÊÇÒ»¸östring[]Êý×飬ËùÒÔÓà filesÀ´½ÓÊÕËü¡£
È»ºóÎÒÃÇÔÚÓÃÒ»¸öforeachÑ»·À´±éÀúÕâ¸öÊý×飬ȡ³öËùÓÐÖµ¡£
foreach (string file in files)
{
Response.W ......
Here is the full list of all events that occur in an ASP.NET application, from the standard modules, to the page, master page, page controls and master page controls.
I have not included the IIS 7 specific events (Log, for example).
What
When
HttpApplication.BeginRequest
HttpApplication.Auth ......