Programming
ä»åã¯TextBoxã³ã³ããã¼ã«ã®ãããããã TextBox.ReadOnlyããããã£ãtrueã«è¨å®ããã¦ããã¨ãJavaScriptããå¤ãè¨å®ãã¦ããã¹ãããã¯ããããã¨TextBoxã®å¤ãå ã«æ»ã£ã¦ãã¾ãã ãªããtxtBox.Attributes.Add("ReadOnly", "true")ï¼ã ã¨å¤§ä¸å¤«ã¿ããâ¦
ããããï½ï½ï½èº«è¿ã§ãã£ãã®ã¯ãã¯ã¨ãªæååã§æ¸¡ããããã©ã¡ã¼ã¿ããã®ã¾ã¾SQLåã®æ¡ä»¶ã«æãè¾¼ãå¦çãSQL Injectionã®ãææ¬ã«ãªããããªã³ã¼ãããããã¨ããã«ã»ã»ã» ãã¨ããããåãã¦ããªãç´ããªãã§ã ãã¯ãã»ã»ã»ã»('A`)ã
TextBoxã³ã³ããã¼ã«ã®MaxLengthããããã£ã£ã¦ãã¤ãæ°ãããªãã¦æåæ°ã§å¶éãããã¦ãã®ãªãæ°ã¥ããªãã§ããªãã§MaxLengthè¨å®ãã¦ãã®ã«æå®ãã¤ãæ°ä»¥ä¸å ¥åã§ãããã ã¼ã½(*ï½Ð´)ããã¨ãªã£ã¦ãï½ æååã®ãã¤ãæ°ãå¾ãã«ã¯Encoding.GetByteCount(â¦
NUnitã使ã£ã¦å¹çãããã¹ããè¡ãããã«ã¯ããã¹ãããããè¨è¨ã«ãã¦ããã®ã大äºã ã¨ããããæ¬å½ã¯ãã¹ãã³ã¼ããä¸çªæåã«æ¸ãã¹ããªãã ãªãã¡ããã¡ã¢ DBé¢é£ã®ã³ã¼ãããã¹ãããå ´åã«ã¯ãã©ã³ã¶ã¯ã·ã§ã³ããã¹ãã³ã¼ãå´ã§ä¿æãã¦ããï¼ãã¹ãâ¦
http://d.hatena.ne.jp/itaosan/20061225/1167025092 ã§ç´¹ä»ããã¦ãã¢ã¹ãã¯ãã使ãææ³ããæ軽ã§ï¼ï½¥âï½¥ï¼ï½²ï½²!ã¨æã£ããã ãã©ãä½æ ãæ¼ãã®ç°å¢ã ã¨ã³ã³ããã¼ã«ã®OnClientClick()ã使ããªããªã£ã¦ãã¾ãããªãã ã»ã»ã»ï¼Â´ã»Ïã»`ï¼ï½¼ï½®ï¾ï¾ï½°ï¾ãã¨ã¯JavaScripâ¦
HTMLEncodeãfalseã«ããªãã¨DataFormatStringã®æ¸å¼ãæå¹ã«ãªããªãããã«ãã¥ããæ°æéãç¡é§ã«éããã orz
ãã¹ãé§åéçºã¨ãã¢ã¸ã£ã¤ã«ã®è¨èã«æ½ããã¦NUnit/NUnitAspã«ææ¦ãã¦ã¿ããã¨ã«ãããNUnit-Guiãããã¹ãã³ã¼ãã®DLLãèªã¿è¾¼ããã¨ããã¨ãNUnit-GuiãBadImageFormatExceptionãåãã¦ã¤ã¡ã¼ã¸ãèªã¿è¾¼ãã§ãããªãã 調ã¹ã¦ã¿ãã¨ãNUnitAspã®ææ°ãâ¦
æ¨æ¥ã®ç¶ãæ¹ãã¼ã¸ãèªåã§è¡ãããã¨å«ãªå ´åã¯æ®µçµããã¹ã表示ç¨ã®ColumnTextã使ãã¨ããã¿ãããèªåçã«å³ç«¯ã§æ¹è¡ããã¦ããã¦ãä¸ããããé åå ã§ããã¹ããåã¾ããããªãã¨ãã¯ColumnText.go()ã®æ»ãå¤ã§æ¤åºã§ããã溢ããããã¹ãã¯ä»»æã®Coluâ¦
Webã¢ããªã±ã¼ã·ã§ã³ã§PDFå½¢å¼ã§ã®å¸³ç¥¨åºåæ©è½ãå¿ è¦ã«ãªã£ãã®ã§ãPDFã©ã¤ãã©ãªã§ããiTextã調ã¹ã¦ã¿ãã Javaç¨ã®PDFåºåã³ã³ãã¼ãã³ãiTextãå ã§ã.NETã§ä½¿ç¨å¯è½ãªPortãããã¤ãããã http://www.lowagie.com/iText/docs.html æ¬å®¶Javaç http://â¦
id:halo_w2:20070111ã®Excelã®å°å·ç¯å²ãç»åã«å¤æããæ©è½ãªã®ã ãã©ãã©ããExcelã®ãã¼ã¸ã§ã³ã«ãã£ã¦ã¯ä½åããªãã¿ãããåç §è¨å®ã®COMãããMicrosoft Excel Object Library 11.0ãé¸æãã¦ããã®ã ããã©ãããã ã¨DLLãEarly Bindingã«ãªã£ã¦ãã¾ãâ¦
åèï¼Visual Studio .NET 2003 C#ãExcel COM æä½ - goungounæè¡ç³»éè¨å¸³ãããªãã»ã©ãScriptControl.ExecuteStatement()ã§ç´æ¥VBSãå®è¡ãã¦ããã°ããã®ãã ãããªãExcel.Applicationãªãã¸ã§ã¯ãã®Quit()ã¨COMéæ¾ã ããã£ã¡ããã£ã¦ããã°COMã®åâ¦
ã¦ã¼ã¶ã¼ã®è¦æ±ã¯ãWebãã©ã¼ã ã§å ¥åãããã¼ã¿ã帳票表示ãã¦å°å·ããããExcelã§ä½ã£ãå³è¡¨ã帳票ã«ã¯ããããããã«ã ('A`)Excelã®ã¹ãã¬ããã·ã¼ãé¨åã®ãã¼ã¿ã ããªãADO.NETã¨ããä»ãã¦åãè¾¼ããã¨ã¯ã§ãããã ãã©ã°ã©ããããªã¼ãã·ã§ã¤ãããâ¦
http://support.microsoft.com/default.aspx?scid=kb;ja;257757 ASPããWebãã©ã¼ã ã«å ¥åããå 容ãExcelãWordã«åæ ãã¦ã»ã»ã»ã¨ãéã«Excelããµã¼ãã¼å´ã§èªã¿è¾¼ãã§é ç®ãWebãã©ã¼ã ã«åæ ã¨ãã»ã»ã»ããããè¦æ±ã¯ããªãå¤ãã¨æããããã ãã£ããâ¦
ã¸ã§ããªãã¯ã»ã¯ã©ã¹ã§å¤ããC#ã¨VBã®ã³ã¬ã¯ã·ã§ã³ â ï¼ IT http://www.atmarkit.co.jp/fdotnet/special/generics01/generics01_01.html Ver1.1ã®é ã«C#ã«templateãç¡ãã®ãç¥ã£ã¦ããªãã§C++ããéåãã¦ããã ã½(*ï½Ð´)ãコï¾ï¾ï½§!ãã¨æã£ã¦ããã ãã©ããã¤â¦
ãããã¿ãã©ãããC#ã«ã¯^æ¼ç®åãç¡ãããããSystem.Math.Pow()ã使ãã®ãæ£ããã¿ããåèï¼C#ãVB.NETã§ã¹ãä¹ï¼ç´¯ä¹ï¼ãè¨ç®ããã«ã¯ï¼ http://www.atmarkit.co.jp/fdotnet/dotnettips/290mathpow/mathpow.html
ä½ç³»çã«C#ãå¦ãã ãã¨ããªãããã§ããããããä»äºã§ä½¿ã£ã¦è¡ãã®ã¯ä¸å®ãããã ãããã°ã©ãã³ã°C#âC#2.0/.NET2.0/Visual Studio2005対å¿ãã¨ãç¬ç¿C#ï¼½ã¯ã©ã¡ãããããã ãããã¢ãã¾ã³ã®ã¬ãã¥ã¼ã¨ãè¦ã㨠ãããã°ã©ãã³ã°ï¼£ï¼ç¬¬ï¼çãâçµé¨è åãâ¦
ãã¨ã¨ãã®æ¥è¨ã§ãä¾å¤ã¯çºçãããã¨ãäºæã§ããªãã¨ã©ã¼ã«ã®ã¿ä½¿ããã¨æ¸ããããã©ããããããã¨JAVAã®ClassCastExceptionã¯ã©ããªããã ã¨èããããã¦ã³ãã£ã¹ããè¡ã以ä¸ããã¦ã³ãã£ã¹ãã«å¤±æãããã¨ã¯å½ç¶ãäºæã§ãããã¯ãã§ã¯ã»ã»ã»ã»ï¼JAVâ¦
ä»ã¾ã§ã¨ã©ã¼å¦çã«ã¤ãã¦ã¯ å¤å ¸çãªã¨ã©ã¼å¦çæ¹æ³ ã¡ã½ããã®æ»ãå¤ã§ã¨ã©ã¼ã³ã¼ããè¿ããå¼ã³åºãå ã§ã¯ifæã§ã¨ã©ã¼ã³ã¼ãã«å¿ããå¦çããã OOPçãªã¨ã©ã¼å¦çæ¹æ³ ã¨ã©ã¼çºçæã«ã¯ã¡ã½ãããä¾å¤ãªãã¸ã§ã¯ããthrowããå¼ã³åºãå ã§ã¯ãããcatchâ¦
ä¸ã§ããäºæã§ãããããäºæã§ããªããã§ã¨ã©ã¼å¦çã®æ¹éãåããã¨æ¸ããããã©ãããããã¨SQLExceptionã¿ãããªä¾å¤ã®æ±ãã«ã¤ãã¦æ°ã«ãªããåç´ã«SQLExceptionã¨ãã£ã¦ãã¨ã©ã¼ã®å 訳㯠ãã¼ãã«orãã¥ã¼ãç¡ãï¼äºæ¸¬ä¸è½ï¼ ä¸æå¶ç´ã¨ã©ã¼ï¼äºæ¸¬å¯â¦
WEBã¢ããªã±ã¼ã·ã§ã³ã«ããã¦ãããå¦çãããã¦ããæä¸ã«ï¼¤ï¼¢ã®ã¬ã³ã¼ããããã¯ãã¦ãããããã¨ã¯ããããã帳票æ å ±ã®ç·¨éç»é¢ã§å¸³ç¥¨ã¬ã³ã¼ããããã¯ãã¦ããã¦ãå¦çãçµäºããã¨ããã¯ã解é¤ãããã¨ãã風ã«ãããã大ä½ã®å ´åããã¼ã¸ã®ãã©ã¼ã ä¸â¦
Windowsãã©ã¼ã ã¢ããªã±ã¼ã·ã§ã³ã§ãéããå¦çãããããå ´åãã¡ã¤ã³ã¹ã¬ããã¨ã¯å¥ã®ã¹ã¬ãããä½ã£ã¦ããã£ã¡ã«å¦çããããããã§ãããã¨ããã.NETã§ã¯ãã©ã¼ã ã®ã³ã³ããã¼ã«ã®æä½ã¯ããã©ã¼ã ãææãã¦ããã¹ã¬ããããããè¡ããªãããããå¥ã¹â¦
ãªãã ããããã¨ããã«æãå±ãçãªå¿æãã¯ã©ã¹ string path = @"c:\JOJO\Dio.txt"; //ãã¡ã¤ã«ãã¹ if( Path.HasExtension(path) ) // æ¡å¼µåãã¤ãã¦ããããè¿ã Console.Write("{0}ã¯æ¡å¼µåã¤ã",path); Path.GetFileName(path); //Dio.txtã帰ãã Paâ¦
æãåãããããã ã¨ããããAutoCommitã¯ããã©ã«ãã§trueãªã®ã§æ°ãã¤ããã
Blog.C# å®è¡æä¾å¤ã¨ã¯ä½ã dW : Java technology : Javaã®çè«ã¨å®è·µ: ä¾å¤ããããè°è«Blog.C#ããã®è¨äºã¯è¡æçã§ããã ãããè¦ãã¾ã§å®è¡æä¾å¤ã®æå³ãå®ç§ã«åéããã¦ããã ç¡çç¢çæ¥æ¬èªã«è¨³ãã¦ãã¾ãã¨å ã®è¨èã®æå³ããããã¥ãããªãããâ¦
ã¬ã¸ã¹ã㪠Microsoft.Win32.RegistryKeyã使ããã¨ã§ã¬ã¸ã¹ããªã¸ã®ã¢ã¯ã»ã¹ãã§ããããããè©³ç´°ã¯ ï¼ ITï¼.NET TIPS ã¬ã¸ã¹ããªã®å¤ãåå¾ããã«ã¯ï¼ - C# VB.NET ï¼ ITï¼.NET TIPS ã¬ã¸ã¹ããªã®å¤ãè¨å®ããã«ã¯ï¼ - C# VB.NET ï¼ ITï¼.NET TIPS ã¬ã¸ã¹ããªâ¦
VBã¨ãã ã¨INIãã¡ã¤ã«ã«è¨å®ã®æ å ±ãä¿åããã®ãå®ç³ã ãã©ã.NET Frameworkã§ã¯INIãã¡ã¤ã«ã®ã¢ã¯ã»ã¹ã¯ãµãã¼ããããªããããã ã¢ããªã±ã¼ã·ã§ã³è¨å® IDEã®ãã©ã¼ã ã®ããããã£ãéãã¦ãApplicationSettingsãâãPropertyBindingãã¨ããã 使ãæ¹ã¯â¦
usingã¹ãã¼ãã¡ã³ãã®ä½¿ãæ¹ ãªãã¸ã§ã¯ããéæ¾ããã¿ã¤ãã³ã°ãæå®ã§ããã using (StreamWriter file = new StreamWriter("DIO.txt")) { file.WriteLine("MudaMuda"); }ãããã¯ãæãã段éã§èªåçã«fileãéæ¾ãããããã¡ãã¡finally{}å ã§file.Cloâ¦
ä»äºã§Apacheã®ã¢ã¯ã»ã¹ãã°ã®è§£æããå¿ è¦ãåºã¦ãã¦èª¿æ»ã ã¾ãã¯ãã°ãé ç®ãã¨ã«ãã©ãã¦ããå¿ è¦ããããã ãã©ãæ£è¦è¡¨ç¾ã使ãã¨æ¥½ãããªãã¨ãå¤æã.NET Frameworkã§ã¯System.Text.RegularExpressionã®RegExï¼Matchãæ£è¦è¡¨ç¾ãæ±ãããã®ã¯ã©ã¹ã â¦
http://pc2.2ch.net/tech/kako/1045/10457/1045746245.html 293 ååï¼ 284 æ稿æ¥ï¼ 03/02/27 19:46 >>286 basic_stringãããªããã¦ã¿ã¾ãã gcc(3.2)ã¯ãªãã¡ã¬ã³ã¹ã«ã¦ã³ããiterator!=pointer stlportã¯ããã¼ã«ç¢ºä¿ãNUL terminated. vcãããã¼ã«ç¢ºä¿â¦
ä»ã¾ã§std::stringã¯ããããã«ç¬ç«ããæååã®ãããã¡ãæã£ã¦ãã¦ã stringå士ã®ã³ãã¼ã¯èªåå°ç¨ã®ãããã¡ã確ä¿ãã¦ããã«ã³ãã¼ããããã ã¨æã£ã¦ããã©ãã©ãããéããããã åç §ã«ã¦ã³ãã§ç®¡çãããæååãããã¡ãå¥ã«æã£ã¦ãã¦ã std::stâ¦