¹ØÓÚasp.netÒ»ÖÖʵÏÖÑéÖ¤ÂëµÄ¼òµ¥·½·¨
ÏÂÃæÊÇÓÃÀ´²âÊÔÑéÖ¤ÂëµÄǰ̨ÏÔʾ´úÂ룺ÆäÖнű¾º¯ÊýchangeµÄ×÷ÓÃÊÇʵÏÖ“¿´²»Çå³þ£¬»»Ò»ÕŵÄЧ¹û”
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CheckTest.aspx.cs" Inherits="SecurityCodeTest.CheckTest" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title></title>
<mce:script type="text/javascript" ><!--
function Change() {
var d = document.getElementById("image1");
d.src = d.src + '?';
}
// --></mce:script>
</head>
<body>
<form id="form1" runat="server">
<img src="MyCode.aspx" mce_src="MyCode.aspx" id="image1" /><asp:LinkButton ID="link1" runat="server" Text="¿´²»Ç壬»»Ò»ÕÅ" OnClientClick="Change()"></asp:LinkButton>
<div><br />
<asp:TextBox ID="input1" runat="server"></asp:TextBox>
<asp:Button ID="button1" runat="server" Text="submit" onclick="button1_Click" />
</div>
</form>
</body>
</html>
ÏÂÃæÊÇÓÃÀ´Éú³ÉÑéÖ¤ÂëͼƬµÄaspxÎļþ´úÂ룺
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Drawing;
using System.Drawing.Imaging;
namespace SecurityCodeTest
{
public partial class MyCode1 : System.Web.UI.Page
{
private int _imageWidth = 88;//λͼ¿í¶È
private int _imageHeight = 25;//λͼ¸ß¶È
private Bitmap _bitmap = null;//λͼ¶ÔÏó
private List<Brush> _colorList = null;//ÑÕÉ«µÄÒ»¸öÁбí
private char[] _charGroup = null;//×Ö·ûÊý×é
private string fontFamily = "Times New Roman";
/// <summary>
/// Ëæ»ú»ñÈ¡×ÖÌå´óС
/// </summary>
/// <returns></
Ïà¹ØÎĵµ£º
TreeView ¿Ø¼þµÄ³ÊÏÖÊÇ¿ÉÍêÈ«×Ô¶¨ÒåµÄ£¬ÕâʹµÃ¿ÉÒÔʹÓöàÖÖ¶àÑùµÄÏÔʾÑùʽ¡£
ÈôÒª×Ô¶¨Òå TreeView ¿Ø¼þµÄÍâ¹Û£¬¿ÉÒÔÖ´ÐÐÒÔϲÙ×÷£º
·Ö¸¶¨Ó°Ïì¿Ø¼þÏÔʾºÍ³ÊÏÖµÄ TreeView ¿Ø¼þÊôÐÔ¡£
·Ö¸¶¨Ò»¸ö ImageSet ÊôÐÔ£¬¸ÃÊôÐÔÑ¡ÔñÒ»×éÔÚÔËÐÐʱͬ¿ ......
//2007Äê4ÔÂ24ÈÕ
this.TextBox6.Text = System.DateTime.Now.ToString("D");
//2007-4-24
this.TextBox7.Text = System.DateTime.Now.ToString("d");
//2007Äê4ÔÂ24ÈÕ 16:30:15
this. ......
1. ´ò¿ªvs 2008µÄ¹¤¾ß>Ñ¡Ïî>HTMLÉè¼ÆÆ÷ʱÌáʾ:¼ÓÔØ´ËÊôÐÔҳʱ³ö´í
2. ´ò¿ª .aspx ÎļþÊÇ, Ö»ÓÐHTML±à¼ÊÓͼ,ûÓÐÊÓͼÇл»Ñ¡Ïî
ÔÚÃüÁîÐÐÖÐÔËÐУºdevenv /ResetSkipPkgs ¼´¿É½â¾ö¸ÃÎÊÌâ.
http://www.cnblogs.com/S.Sams/archive/2009/06/06/1414500.html ......
1£®Ê÷ÐνṹµÄÉè¼Æ
ÔÚ¿ª·¢ASP.NETµÄÏîÄ¿ÖУ¬ÓÐÐí¶àÏîÄ¿Óõ½µÄÊ÷Ðνṹ£¬ÆäÖÐÓÐЩÊ÷ÐνṹÏà¶Ô¸´ÔÓ£¬Ò²Óмòµ¥µÄ£¬µ«ÎÞÂÛÊǼòµ¥µÄÊ÷Ðνṹ»¹ÊǸ´ÔÓµÄÊ÷Ðνṹ£¬ÓÐןõĽṹ¶ÔÓÚÐÔÄܺÍÎȶ¨ÐÔ¶¼ÓÐןܴóµÄ×÷ÓᣱÈÈçÄãµÄÊ÷½á¹¹µÄÊý¾ÝºÜ´ó£¬Èç¹ûÊDzÉÓñȽÏËÀµÄ·½Ê½Ò»´ÎÐÔ¼ÓÔØ½øÀ´ÄÇôÄãÔÚ¼ÓÔØÕâ¿ÃÊ÷µÄʱºò¾ÍÊÇÏ൱µÄºÄ ......