ÔÚasp.netÖÐÉú³ÉhtmlÎļþ´úÂëÈçÏÂ
ÔÚasp.netÖÐÉú³ÉhtmlÎļþ´úÂëÈçÏÂ
public static bool CreatHtmlPage(string[] strNewsHtml, string[] strOldHtml, string strModeFilePath, string strPageFilePath)
{
bool Flage = false;
StreamReader ReaderFile = null;
StreamWriter WrirteFile = null;
//ÐÞ¸Ämode.htmµ½incĿ¼ÏÂ
strModeFilePath = "../inc/" + strModeFilePath;
string FilePath = HttpContext.Current.Server.MapPath(strModeFilePath);
Encoding Code = Encoding.GetEncoding("gb2312");
string strFile = string.Empty;
try
{
ReaderFile = new StreamReader(FilePath, Code);
strFile = ReaderFile.ReadToEnd();
}
catch (Exception ex)
{
throw ex;
}
finally
 
Ïà¹ØÎĵµ£º
Ê×Ò³£º
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!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 ......
ƽ̨:vs2005,ecc6 ,orcale Êý¾Ý¿â
1.Ê×ÏÈÓÃse37,½¨Á¢Ò»¸ö¶ÁÈ¡º¯Êý,Èçͼ
2.ÏÈÌí¼ÓÈý¸öcom×é¼þInterop.SAPFunctionsOCX.dll,Interop.SAPLogonCtrl.dll,Interop.SAPTableFactoryCtrl.dll
ÏÂÃæµÄ´úÂëÎÒÊÇ×ªÔØÆäËûÍøÕ¾,
ÒÔwebÐÎʽ¶Ôfunction module½øÐе÷ÓÃÓëformÐÎʽ»ù±¾Ò»Ñù,ΨһֵµÃ×¢ÒâµÄµØ·½¾ÍÊÇ:"An ActiveX control ......
»ù±¾½á¹¹£º
µÚÒ»²½×¼±¸ÊµÌåÀࣺ
[Serializable]
public class Person
{
/// <summary>
/// 񅧏
/// </summary>
&n ......
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
/// <summary>
/// Pub µÄժҪ˵Ã÷
/// </summa ......
1¡¢¿ØÖÆGridView¿Ø¼þÖÐÄÚÈݵĻ»ÐÐ
GridView1.Attributes.Add("style","word-break:keep-all;word-wrap:normal");//Õý³£»»ÐÐ
GridView1.Attributes.Add("style","word-break:break-all;word-wrap:break-word");//×Ô¶¯»»ÐÐ
2¡¢É¾³ýGridView¿Ø¼þÐÐÐÅÏ¢µ¯³öÈ·ÈÏÌáʾ¿ò
ÔÚGridViewµÄRowDataBound()ʼþÖÐÌ ......