Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

c# ¶ÁдXMLÎļþ

¡¡¡¡¡¡ÓÃc#¸øPDA×öÁËÒ»¸öPC¶ËµÄͨѶ³ÌÐò£¬ÐèÒª±£´æÁ½¸ö²ÎÊý¡£ÓÃDelphiʱ£¬ÊDZ£´æÔÚiniÎļþÖУ¬c#¶ÁдXML±È½Ï·½±ã£¬¾ÍÓÃxmlÎļþÀ´±£´æÁË¡£
¡¡¡¡¡¡
¡¡
class CXmlClass
{
private string XmlFilePath;
/// <summary>
/// ÏÂÔØµ½PDAµÄTXTÎļþ·¾¶¡¡
/// </summary>
public string strDownFile;
/// <summary>
/// PDAÊý¾ÝÎļþÉÏ´«µ½PC¶ËµÄÎļþ·¾¶
/// </summary>
public string strUploadFile;
public CXmlClass()
{
//Ö¸¶¨XMLÎļþÃû
XmlFilePath = "config.xml";
//¼ì²âXMLÅäÖÃÎļþÊÇ·ñ´æÔÚ
if (System.IO.File.Exists(XmlFilePath))
return;
CreateDefaultXml();
}
#region " ReadXML() ¶ÁÈ¡XMLÅäÖÃÎļþµÄ²ÎÊýÉèÖ㬻ñÈ¡ÏÂÔØµÄTXTÎļþ·¾¶ÓëÉÏ´«µÄÊý¾ÝÎļþ·¾¶"
/// <summary>
/// ¶ÁÈ¡XMLÅäÖÃÎļþµÄ²ÎÊýÉèÖ㬻ñÈ¡ÏÂÔØµÄTXTÎļþ·¾¶ÓëÉÏ´«µÄÊý¾ÝÎļþ·¾¶
/// </summary>
/// <returns></returns>
public bool ReadXML()
{
try
{
XmlDocument xmlDoc=new XmlDocument();
//¶ÁÈ¡XMLÅäÖÃÎļþ
xmlDoc.Load(XmlFilePath);
//¶ÁÈ¡XMLÎļþ½Úµã
XmlNode rootNode = xmlDoc.SelectSingleNode("austec°Â˹̩¿Ë").SelectSingleNode("²ÎÊýÉèÖÃ");
if ( rootNode==null )
throw( new Exception("XMLÅäÖÃÎļþÐÅÏ¢Òì³£"));
//»ñÈ¡XMLÎļþ²ÎÊýÉèÖÃϵĽڵãÖµ
XmlElement downfile = (XmlElement)(rootNode.SelectSingleNode("downTxtFilePath"));
if (downfile == null)
throw (new Exception("XMLÅäÖÃÎļþÐÅÏ¢Òì³£"));
strDownFile= downfile.InnerText;
XmlElement uploadfile = (XmlElement)(rootNode.SelectSingleNode("uploadfilePath"));
if (uploadfile == null)
throw (new Exception("XMLÅäÖÃÎļþÐÅÏ¢Òì³£"));


Ïà¹ØÎĵµ£º

C#ÓëFlash½»»¥

C#ÓëFlash½»»¥ £¨×ª×ÔСÀÚÔÚÏߣ©
C#ÓëFlash½»»¥
ǰ¶ÎÈÕ×Ó¹«Ë¾ÒªÇó×öÒ»¸öC#ÓëFlash½»»¥µÄ¶«Î÷£¬ÓÃÀ´C#Óë¶ÌÐÅèͨѶ½«Êý¾Ý´«µ½FlashÉÏÏÔʾÓë²Ù×÷µÄÓ¦Óá£
µÚÒ»²½C#Ìí¼Ó×é¼þ
´ò¿ªVS2005-¹¤¾ß-Ñ¡Ôñ¹¤¾ßÏäÏî-COM×é¼þ-Ñ¡ÔñShockwave Flash Object-È·¶¨
Ìí¼ÓºÃ×é¼þÍù³¡¾°ÉÏÍÏ·Å£¬Èç¹ûÌáʾע²áÐèÇó×¢²á
c# ×¢²á¿Ø¼þ-ÔÚÔËÐÐÊä ......

asp.net(C#)×Ö·û´®¼ÓÃÜ

asp.net(C#)×Ö·û´®¼ÓÃÜ
2010-03-12 09:59
using System;   
using System.Collections.Generic;   
using System.Text;   
using System.Security.Cryptography;//CryptographyÃÜÂëÊõ   
namespace DAL   
{   
......

mssqlÖÐÓÃxmlµÄ·½·¨²ð·ÖÒÔ²»¶¨¿Õ¸ñΪ·Ö¸î·ûºÅµÄ×Ö·û´®

---xml²ð·ÖÒÔ²»¶¨¿Õ¸ñΪ·Ö¸î·ûºÅµÄ×Ö·û´®
--²âÊÔÊý¾Ý
if object_id('[tb]') is not null drop table [tb]
create table [tb]([a] varchar(200))
go
insert [tb]
select 'aaaa  bbbb cccc        dddd'
insert [tb]
select 'eeeeee  ffff hhhh     ......

Asp.Net C#ÖÐSession ÈçºÎ´¢´æÈ¡ÐÅÏ¢

ÒòΪ¸Õ¸Õ½Ó´¥C#ÓïÑÔ²»¾Ã,ÓÚÊÇÎÒ°Ñ¿ØÖÆÌ¨¸øÈÓÁË,ÒòΪÎÒÌÖÑá¿ØÖÆÌ¨!
¶øÊÂʵÉÏÎÒÖ»¶ÔWinForm¼¼Êõ¸ÐÐËȤ,µ«ÊÂʵÉϵ½ÏÖÔÚÎÒ·¢ÏÖASP.Net C#µÄWeb¼¼ÊõÊÇÈÕÏÔÖØÒªÆðÀ´!
ÓÚÊÇ¿ªÊ¼½Ó´¥,¸Õ¸ÕÆð²½ÓÚËùÖª,ÓÈÆäÊÇһЩ×î¼òµ¥µÄ¶«Î÷,µ½ÍøÉÏËÑË÷Á˺ܾÃ,²»ÊÇÌ«ÂÒ¾ÍÊÇ˵²»Çå³þ!
¾Ù¸öÀý×ÓÀ´Ëµ,¾Í˵SessionºÃÁË,²»ÖªµÀÍøÉϵÄÄÇЩ¼Ò»ïµ½µ×ÔÚ½²Ê ......

JavaScriptÖзÃÎÊC#±äÁ¿¼°·½·¨

1.ÈçºÎÔÚjavascript·ÃÎÊC#±äÁ¿
·½·¨Ò»£ºÊ¹ÓÃ<%=%>
 <input id="Button3" type="button" value="jsµ÷ÓÃc#±äÁ¿" onclick="return Button3_onclick()" />
function Button3_onclick()
{        
    alert('ÎÒµÄÃû×Ö£º'+ '<%=name %>'); ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ