Click here to Skip to main content
16,017,745 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Select Only one checkbox in a gridview Pin
AlexeiXX323-Sep-08 7:59
AlexeiXX323-Sep-08 7:59 
QuestionPagination Pin
nhss23-Sep-08 0:39
nhss23-Sep-08 0:39 
QuestionGridView Updating Pin
#realJSOP22-Sep-08 23:35
professional#realJSOP22-Sep-08 23:35 
AnswerRe: GridView Updating Pin
N a v a n e e t h22-Sep-08 23:50
N a v a n e e t h22-Sep-08 23:50 
GeneralRe: GridView Updating Pin
#realJSOP23-Sep-08 2:37
professional#realJSOP23-Sep-08 2:37 
GeneralRe: GridView Updating Pin
Paul Conrad23-Sep-08 6:20
professionalPaul Conrad23-Sep-08 6:20 
GeneralRe: GridView Updating Pin
N a v a n e e t h23-Sep-08 17:45
N a v a n e e t h23-Sep-08 17:45 
QuestionHow to get blank card reader drive Name Pin
Piyush Vardhan Singh22-Sep-08 23:32
Piyush Vardhan Singh22-Sep-08 23:32 
hello friend
i am working on card reader detection.Card reader have multiple port.
i found all the port names(ex:-A,C,D,E)
which have Memory Card. but blank Card reader drive name not detected.
How i find blank card reader drive Name.Please Help me

cODE:-

public string[] getLogicalUsbDisks()
{

int i = 0;

string[] lista;

Console.WriteLine("fetching logical disks...");

try
{

ManagementObjectCollection drives = new ManagementObjectSearcher(

"SELECT Caption, DeviceID,Name FROM Win32_DiskDrive WHERE InterfaceType='USB'").Get();

foreach (ManagementObject k in drives)
{
string ddd = k["DeviceName"].ToString();
Core.DriveManager _DManager = new Core.DriveManager();
_DManager.GetDriveLetterFromDisk(ddd);
}

lista = new string[drives.Count];

// browse all USB WMI physical disks

foreach (ManagementObject drive in drives)
{

// browse all USB WMI physical disks

foreach (ManagementObject partition in new ManagementObjectSearcher(

"ASSOCIATORS OF {Win32_DiskDrive.DeviceID='"

+ drive["DeviceID"]

+ "'} WHERE AssocClass = Win32_DiskDriveToDiskPartition").Get())
{

string dd = partition["Name"].ToString(); // browse all USB WMI physical disks

foreach (ManagementObject disk in new ManagementObjectSearcher(

"ASSOCIATORS OF {Win32_DiskPartition.DeviceID='"

+ partition["DeviceID"]

+ "'} WHERE AssocClass = Win32_LogicalDiskToPartition").Get())
{


string djd = partition["DeviceID"].ToString();
string gg = disk["Name"].ToString();


lista[i] = disk["CAPTION"].ToString();

i++;

}

}

}

return lista;

}

catch (Exception e)
{

Console.WriteLine("error: " + e.ToString());

return null;

}


Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com



QuestionLarge file upload with progress bar Pin
mkalyan198022-Sep-08 23:11
mkalyan198022-Sep-08 23:11 
Questionshowing google ads Pin
Prashant B. Lavate22-Sep-08 22:39
Prashant B. Lavate22-Sep-08 22:39 
AnswerRe: showing google ads Pin
N a v a n e e t h22-Sep-08 22:41
N a v a n e e t h22-Sep-08 22:41 
GeneralRe: showing google ads Pin
Prashant B. Lavate22-Sep-08 22:55
Prashant B. Lavate22-Sep-08 22:55 
GeneralRe: showing google ads Pin
J4amieC23-Sep-08 0:11
J4amieC23-Sep-08 0:11 
AnswerRe: showing google ads Pin
Ashfield23-Sep-08 1:39
Ashfield23-Sep-08 1:39 
QuestionFormsAuthentication problem [modified] Pin
SreejithAchutan22-Sep-08 22:33
SreejithAchutan22-Sep-08 22:33 
AnswerRe: FormsAuthentication problem Pin
J4amieC23-Sep-08 0:16
J4amieC23-Sep-08 0:16 
QuestionDisabling all fields in new way?? using asp.net?? Pin
Karan_TN22-Sep-08 22:13
Karan_TN22-Sep-08 22:13 
AnswerRe: Disabling all fields in new way?? using asp.net?? Pin
Sneha Bisht22-Sep-08 22:39
Sneha Bisht22-Sep-08 22:39 
GeneralRe: Disabling all fields in new way?? using asp.net?? Pin
Karan_TN22-Sep-08 22:51
Karan_TN22-Sep-08 22:51 
GeneralRe: Disabling all fields in new way?? using asp.net?? Pin
Ashfield23-Sep-08 1:41
Ashfield23-Sep-08 1:41 
AnswerRe: Disabling all fields in new way?? using asp.net?? Pin
N a v a n e e t h22-Sep-08 22:40
N a v a n e e t h22-Sep-08 22:40 
GeneralRe: Disabling all fields in new way?? using asp.net?? Pin
Karan_TN22-Sep-08 23:03
Karan_TN22-Sep-08 23:03 
GeneralRe: Disabling all fields in new way?? using asp.net?? Pin
N a v a n e e t h22-Sep-08 23:52
N a v a n e e t h22-Sep-08 23:52 
GeneralRe: Disabling all fields in new way?? using asp.net?? Pin
simsen23-Sep-08 3:41
simsen23-Sep-08 3:41 
GeneralRe: Disabling all fields in new way?? using asp.net?? Pin
Karan_TN25-Sep-08 18:27
Karan_TN25-Sep-08 18:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.