asp.netÏòÎļþдÈëÈÕÖ¾
using System;
using System.IO;
namespace WriteLog
{
/// <summary>
/// WriteInLog µÄժҪ˵Ã÷¡£
/// </summary>
public class WriteInLog
{
private string logFileName;
private int logFileSizes;
/// <summary>
/// дÈëÈÕÖ¾Îļþ
/// </summary>
public WriteInLog()
{
logFileName = @"d:\logfile.txt";
}
/// <summary>
/// ×Ô¶¯É¾³ýÈÕÖ¾Îļþ´óС,´Ë·½·¨ÒѾÖØÔØ.
/// </summary>
/// <param name="fileSize">ÈÕÖ¾Îļþ´óС,µ¥Î»KB</param>
public WriteInLog(int fileSize):this()
{
if(fileSize != 0)
{
this.logFileSizes = fileSize * 1024;
}
&nb
Ïà¹ØÎĵµ£º
Èç¹ûÊÇaccess ¾ÍÓÃÕâ¸öSQLHELPER http://hi.csdn.net/link.php?url=http://blog.csdn.net/zzxap
Èç¹ûÊÇMSSQL ¾ÍÓÃÕâ¸ösqlhelper http://www.cnblogs.com/zzxap/archive/2009/11/05/1596773.html
ǰ̨ Èç¹ûÄãÓõÄÊÇ gridview ¾Í°ÑRepeaterÌæ»»³Égridview ¡£Ò»ÑùµÄ¡£¡£
<form id="frm01" action="" method="pos ......
ÔÚÍøÕ¾µÄʹÓÃÖУ¬ÓÐʱºòÐèÒª°ÑÊý¾Ý¿âÀïÃæµÄÄÚÈÝÉú³Éµ½wordÎĵµÀïÃ棬ȻºóÏÂÔص½±¾µØ½øÐв鿴£¬Ê¹ÓÃVS.NET¾Í¿ÉÒÔʵÏÖÕâ¸ö¹¦ÄÜ£¬ÏÂÃæÕâ¸öÀý×Ӿͼòµ¥µ½ÊµÏÖÁË·þÎñÆ÷¶ËÉú³ÉwordÎĵµ²¢ÌṩÏÂÔصŦÄÜ£¬ËäȻûÓг¹µ×µØ°ÑÕû¸ö²Ù×÷д³öÀ´£¨ÓÈÆäÊÇдÉú³ÉwordµÄʱºò£©£¬µ«Õû¸öÁ÷³ÌÊÇÍê³ÉÁ˵ģ¬ÖÁÓÚÆäÖиüÏêϸµÄÄÚÈÝ£¬Çë²ÎÔÄMSDN ......
JavaScriptʵÏÖ£º
<mce:script type ="text/javascript" ><!--
function readWord()
{
var div1=document .getElementById ("div1");
var WordApp,WordDoc,Str;
WordApp =new ActiveXObject ("Word.application");
WordDoc =WordApp.Documents.Open("F:\\¹¤×÷ÈÕÖ¾.doc");
......
ÓÃasp.net µÄ»ØÖ´(postback)ÊǺÜˬ£¬µ«ÈôÒ»¸ö³¤³¤µÄÒ³Ã棬һ»ØÖ´ºó£¬Ìøµ½ÁËÒ³Ê×£¬ÌåÑ鲻ˬ¡£ µ«ÔÚasp.netµÄpageÒ³ÃæÀïÃæÓÐÒ»¸öºÜˬµÄÊôÐÔPage.MaintainScrollPositionOnPostBack ÊôÐÔ£¬ÉèΪtrue¼´¿É¡£ »ñÈ¡»òÉèÖÃÒ»¸öÖµ£¬¸Ãֵָʾ»Ø·¢ºóÊÇ·ñ½«Óû§·µ»Øµ½¿Í»§¶Ëä¯ÀÀÆ÷ÖеÄͬһλÖᣠ<%@ Page Title="" Lang ......
µ±Ò»¸öÍøÒ³ÖмÈÓÐÊý¾ÝÑéÖ¤¿Ø¼þ£¬ÓÖÓÐÒ»¸ö°´Å¥ÔÚµã»÷ʱ³öÏÖÌáʾ°´Å¥¡£
Èç¹ûÖ±½ÓÔÚÒ³ÃæµÄºǫ́´úÂëµÄPage_Loadº¯ÊýÖÐдÈëbtn.Attributes["Onclick"] = "return confirm('È·¶¨Òª±£´æÊý¾Ý£¿')"£¬ÄÇôÑéÖ¤¿Ø¼þ¾Í»áʧЧ£¬ÒòΪÑéÖ¤¿Ø¼þÒ²ÊÇͨ¹ýjsʵÏֵģ¬ÕâÑùµÄ»°return confirm('È·¶¨Òª±£´æÊý¾Ý£¿')ÏÈÓÚÔÀ´µÄjs´úÂëÖ´ÐУ¬Ì ......