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>
<title>WebForm1</title>
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<asp:PlaceHolder id="PlaceHolder1" runat="server"></asp:PlaceHolder></form>
</body>
</HTML>
WebForm1.aspx.cs
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
namespace TestMasterPage
{
/**//// <summary>
/// WebForm1 µÄժҪ˵Ã÷¡£
/// </summary>
public class WebForm1 : System.Web.UI.Page
{
protected System.Web.UI.WebControls.PlaceHolder PlaceHolder1;
private void Page_Load(object sender, System.EventArgs e)
{
// ÔÚ´Ë´¦·ÅÖÃÓû§´úÂëÒÔ³õʼ»¯Ò³Ãæ
string controlName = "search.ascx";
UserControl control = (UserControl)LoadControl("~/s
Ïà¹ØÎĵµ£º
Image Web ·þÎñÆ÷¿Ø¼þʹÄú¿ÉÒÔÔÚ ASP.NET ÍøÒ³ÉÏÏÔʾͼÏñ£¬²¢ÓÃ×Ô¼ºµÄ´úÂë¹ÜÀíÕâЩͼÏñ¡£
Ò»¡¢±³¾°
¿ÉÒÔÔÚÉè¼Æʱ»òÔËÐÐʱÒÔ±à³Ì·½Ê½Îª Image ¶ÔÏóÖ¸¶¨Í¼ÐÎÎļþ¡£»¹¿ÉÒÔ½«¿Ø¼þµÄ ImageUrl ÊôÐ԰󶨵½Ò»¸öÊý¾ÝÔ´£¬ÒÔ¸ù¾ÝÊý¾Ý¿âÐÅÏ¢ÏÔʾͼÐΡ£
Óë´ó¶àÊýÆäËû Web ·þÎñÆ÷¿Ø¼þ²»Í¬£ ......
Îå¡¢ImageMap Àà
ʹÓà ImageMap ¿Ø¼þ¿ÉÒÔ´´½¨°üº¬¶¨ÒåµÄ×÷ÓõãÇøÓòµÄͼÏñ¡£µ±Óû§µ¥»÷×÷ÓõãÇøÓòʱ£¬´Ë¿Ø¼þ¿ÉÒÔÉú³Éµ½·þÎñÆ÷µÄ»Ø·¢£¬Ò²¿ÉÒÔµ¼º½µ½Ö¸¶¨µÄ URL¡£ÀýÈ磬¿ÉÒÔʹÓô˿ؼþÏÔʾһ·ùµØÀíÇøÓòµÄµØͼ¡£Óû§µ¥»÷¸ÃµØͼÉϵÄÌض¨ÇøÓòʱ£¬´Ë¿Ø¼þ¾Íµ¼º½µ½Ò»¸ö URL£¬¸Ã URL ÌṩÁËÑ¡¶¨ÇøÓòµ ......
use http header
protected void Page_Load(object sender, EventArgs e)
{
string format = Convert.ToString(ViewData["format"]);
Response.AddHeader("Content-Disposition", "attachment; filename=" + HttpUtility.UrlEncode("·ÑÓñ¨Ïú±í", Encoding.UTF8) + string.Forma ......
±¾ÎÄĿ¼£º
1.membership¼ò½é
2.membershipÔÚsql serverÖеÄÉèÖÃ
3.ÅäÖÃweb.config
4.´´½¨Óû§CreateUserWizard¿Ø¼þ
5.Óû§µÇ¼login¿Ø¼þ
6.ÏÔʾµ±Ç°Óû§µÄÃû³ÆLoginName¿Ø¼þ
7.¼ì²âÓû§µÄÉí·ÝÑé֤״̬µÄLoginStatus¿Ø¼þ
8.Ϊ²»Í¬Àà±ðÓû§³ÊÏÖ²»Í¬ÄÚÈݵÄLoginView¿Ø¼þ
9.¸ü¸ÄÃÜÂëµÄChangePassword¿Ø¼þ
10 ......
ListBox Web ·þÎñÆ÷¿Ø¼þʹÓû§Äܹ»´ÓÔ¤¶¨ÒåµÄÁбíÖÐÑ¡ÔñÒ»Ïî»ò¶àÏî¡£
Ò»¡¢·½°¸
ÈôÒªÒ»´ÎÏÔʾ¶à¸öÏʹÓû§Äܹ»´ÓÔ¤¶¨ÒåÁбíÖÐÑ¡ÔñÒ»¸ö»ò¶à¸öÏÇëʹÓà ListBox Web ·þÎñÆ÷¿Ø¼þ¡£ListBox ¿Ø¼þÓë DropDownList ¿Ø¼þµÄ²»Í¬Ö®´¦ÔÚÓÚ£¬Ëü¿ÉÒÔÒ»´ÎÏÔʾ¶à¸öÏʹÓû§Äܹ»Ñ¡Ôñ¶à¸öÏî£ ......