hi all I want create Key for my web. everyone computer only one key.
AnhTin
Posts
-
Create Licence Key for web -
Get SerialNumber Disk DriverThanks Reply my app is asp.net check LicenesKey With DriveInfo i dont get SerialNumber HDD disk !!!!
-
Get SerialNumber Disk DriverHi all I am bulding application web. I have problem with Licenes key I check key by SerialNumber Disk Driver on Server. HardDrive hd = null; ManagementObjectSearcher searcher; ArrayList hdCollection = new ArrayList(); searcher = new ManagementObjectSearcher("SELECT * FROM Win32_DiskDrive"); foreach (ManagementObject wmi_HD in searcher.Get()) { hd = new HardDrive(); hd.Model = wmi_HD["Model"].ToString(); hd.Type = wmi_HD["InterfaceType"].ToString(); if (wmi_HD["SerialNumber"] == null) hd.SerialNo = "None"; else hd.SerialNo = wmi_HD["SerialNumber"].ToString(); hdCollection.Add(hd); } But have problem when i insert usb, the system get SerialNo of USB. How can i get only SerialNo HDD on Computer.
-
vs 2005 and windows vista untimatehi all my windows is vista untimate. and i develop web on vs2005. But have problem with debug when use IIS 7. I choose IIS SERVER is default run. In iis i enable window authentication. But have error. "Unable to stat debugging on web server". So i were install user asp.net. But when i set security i dont see this user. Some body help me ????
-
visible column girdviewHi all i have gird view set auto generate fields is true How can i visible column on gridview. So dont remove column on Datatable.
-
debug asp.net vs2005 on window vistahi all I have problem when debug with vs2005 on window vista untimate I set my web project use IIS web server when run on vs2005 But when i bug have error "Unable start debugging on web server. An authendicate error occurred while communicating with web server" Some body help me ???
-
Config IIS7Hi all My computer use windows vista untimate and II7 How can i config my web site in IIS7 use .net framework 2.0. And IIS7 many difference with IIS6 So some body show for me?
-
add innerHTML div by javacripthi all I have some code but have problem when add "html" to tag div by javacript <!-- function addEvent() { var strHTML = '<a href="javascript:posttreeview('39,28', '4');">demo</a>'; document.getElementById('myDiv').innerHTML = strHTML; } //-->
[Add Some Elements](javascript:addEvent();)
But it error javacipt when click to text?? I think it error in href="javascript:posttreeview('39,28', '4');" Some body help me ??
-
RegularExpressionValidatorhi all I need validator file upload only file gif,jpg,png if orther file have messbox error
-
UpLoad FileHi all I am developing function upload file by asp.net But have problem when i choose file > 5MB after that click submit My IE or Firefox have error: Firefox: The connection to the server was reset while the page was loading. * The site could be temporarily unavailable or too busy. Try again in a few moments. * If you are unable to load any pages, check your computer's network connection. * If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web. IE : Most likely causes: You are not connected to the Internet. The website is encountering problems. There might be a typing error in the address. Diagnose Connection Problems
-
Remove item in arrayHi all i have array [0,1] = "abc" [0,2] = "dfd" [0,3] = null [0,4] = "abc" [0,5] = "abc" [0,6] = null How can i remove item have value is null ?
-
Left Join 2 DatatableHi all I have 2 Datatable the fist (dtUser): have column UserID, Name, Address (10 rows) the second(dtOrder): have column OrderID, UserID (5) And 2 datatable haven't relationship How can i "Select * from dtOrder A LEFT JOIN dtUser B ON A.UserID = B.UserID" in new datatable by Asp.net ??
-
get serial hard disk asp.netthanks I get Serial on server !
-
get serial hard disk asp.nethi all How can i get serial hard disk by asp.net(C#).
-
RegexThanks reply But if my character is "â" or "â". that all is nvarchar but i want my string only varchar
-
Regexhi all How can i use Regex character to A-Z, a-z 0-9 If my string is utf-8 is error ex "â bo" will is error
-
Manager SQLEXPRESS 2005Hi all Now i need to import access to sqlexpress but i haven't sqlserver 2005 so i have sql2000 but it dont run with sqlexpress. Some body show for me? Download tool or programd manager sqlexpress.
-
Problem with unziphi all I read article http://www.codeproject.com/KB/cs/Zip_UnZip.aspx[^] But I have problem when i run function unzip My file zip containt six file and two folder and in there folder containt some file When i run Fuction < code> public void UnZip(string SrcFile, string DstDir) { FileStream fileStreamIn = new FileStream(SrcFile, FileMode.Open, FileAccess.Read); ZipInputStream zipInStream = new ZipInputStream(fileStreamIn); ZipEntry entry; int size; byte[] buffer = new byte[BUFFERSIZE]; while ((entry = zipInStream.GetNextEntry()) != null) { FileStream fileStreamOut = new FileStream(DstDir + @"\" + entry.Name, FileMode.Create, FileAccess.Write); while((size = zipInStream.Read(buffer, 0, buffer.Length)) > 0) { fileStreamOut.Write(buffer, 0, size); } fileStreamOut.Close(); } zipInStream.Close(); fileStreamIn.Close(); } < /code> But have exception when it unzip to folder name "folderdemo". System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Inetpub\wwwroot\DacNong\Atlas\Data\folderdemo\'. Some body help me. How could i unzip when in file zip contain file and folder ???
-
Delete file fontHi all I have problem with delete file font In my folder web contain some file and folder "fontE" and this folder contain some font so this file font don't used for my web And i use Function Directory.Delete(strFolder,true); so some file in my webfolder deleted but have expeption with file font Access to the path 'arial.ttf' is denied. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.UnauthorizedAccessException: Access to the path 'arial.ttf' is denied. so this parth to this folder is okay Note: i set all permission for user (ASP.net AND IUSR_NamePC) this folder Some body tell me? How can i delete that file ?
-
file being used by another processhi all i have problem with file i move file but this file being used by another process. How can i shutdow process used this file ??